mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-09-06 05:04:35 +08:00
Add React preset
This commit is contained in:
parent
fdc65d92d3
commit
e84ef856bf
1 changed files with 2 additions and 0 deletions
|
@ -19,6 +19,7 @@ module.exports = function(api) {
|
|||
presets: [
|
||||
isTestEnv && [
|
||||
'@babel/preset-env',
|
||||
'@babel/preset-react',
|
||||
{
|
||||
targets: {
|
||||
node: 'current'
|
||||
|
@ -27,6 +28,7 @@ module.exports = function(api) {
|
|||
],
|
||||
(isProductionEnv || isDevelopmentEnv) && [
|
||||
'@babel/preset-env',
|
||||
'@babel/preset-react',
|
||||
{
|
||||
forceAllTransforms: true,
|
||||
useBuiltIns: 'entry',
|
||||
|
|
Loading…
Add table
Reference in a new issue