mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-09-11 23:54:43 +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: [
|
presets: [
|
||||||
isTestEnv && [
|
isTestEnv && [
|
||||||
'@babel/preset-env',
|
'@babel/preset-env',
|
||||||
|
'@babel/preset-react',
|
||||||
{
|
{
|
||||||
targets: {
|
targets: {
|
||||||
node: 'current'
|
node: 'current'
|
||||||
|
@ -27,6 +28,7 @@ module.exports = function(api) {
|
||||||
],
|
],
|
||||||
(isProductionEnv || isDevelopmentEnv) && [
|
(isProductionEnv || isDevelopmentEnv) && [
|
||||||
'@babel/preset-env',
|
'@babel/preset-env',
|
||||||
|
'@babel/preset-react',
|
||||||
{
|
{
|
||||||
forceAllTransforms: true,
|
forceAllTransforms: true,
|
||||||
useBuiltIns: 'entry',
|
useBuiltIns: 'entry',
|
||||||
|
|
Loading…
Add table
Reference in a new issue