mirror of
https://github.com/apache/superset.git
synced 2026-04-21 17:14:57 +00:00
refactor: Upgrade to React 17 (#31961)
This commit is contained in:
committed by
GitHub
parent
aa74ba3da2
commit
7e2b7941f3
@@ -39,7 +39,6 @@ module.exports = {
|
||||
{
|
||||
development: process.env.BABEL_ENV === 'development',
|
||||
runtime: 'automatic',
|
||||
importSource: '@emotion/react',
|
||||
},
|
||||
],
|
||||
'@babel/preset-typescript',
|
||||
@@ -74,12 +73,23 @@ module.exports = {
|
||||
corejs: 3,
|
||||
loose: true,
|
||||
shippedProposals: true,
|
||||
modules: 'commonjs',
|
||||
modules: 'auto',
|
||||
targets: { node: 'current' },
|
||||
},
|
||||
],
|
||||
[
|
||||
'@babel/preset-react',
|
||||
{
|
||||
development: process.env.BABEL_ENV === 'development',
|
||||
runtime: 'automatic',
|
||||
},
|
||||
],
|
||||
'@babel/preset-typescript',
|
||||
],
|
||||
plugins: [
|
||||
'babel-plugin-dynamic-import-node',
|
||||
'@babel/plugin-transform-modules-commonjs',
|
||||
],
|
||||
plugins: ['babel-plugin-dynamic-import-node'],
|
||||
},
|
||||
// build instrumented code for testing code coverage with Cypress
|
||||
instrumented: {
|
||||
|
||||
Reference in New Issue
Block a user