File tree Expand file tree Collapse file tree 2 files changed +39
-1
lines changed Expand file tree Collapse file tree 2 files changed +39
-1
lines changed Original file line number Diff line number Diff line change
1
+ module . exports = {
2
+ presets : [
3
+ [
4
+ '@babel/preset-env' ,
5
+ {
6
+ modules : false ,
7
+ } ,
8
+ ] ,
9
+ '@babel/preset-react' ,
10
+ ] ,
11
+ plugins : [
12
+ '@babel/plugin-proposal-object-rest-spread' ,
13
+ '@babel/plugin-proposal-class-properties' ,
14
+ '@babel/plugin-syntax-dynamic-import' ,
15
+ ] ,
16
+ env : {
17
+ i18n : {
18
+ plugins : [
19
+ [
20
+ 'react-intl' ,
21
+ {
22
+ messagesDir : './temp/babel-plugin-react-intl' ,
23
+ moduleSourceName : '@edx/frontend-i18n' ,
24
+ } ,
25
+ ] ,
26
+ ] ,
27
+ } ,
28
+ test : {
29
+ presets : [
30
+ '@babel/preset-env' ,
31
+ ] ,
32
+ } ,
33
+ } ,
34
+ } ;
Original file line number Diff line number Diff line change @@ -14,9 +14,13 @@ module.exports = {
14
14
configFile : getConfigFilepath ( 'jest.config.js' ) ,
15
15
} ,
16
16
babel : {
17
- globSearchPattern : 'babel.config.js' ,
17
+ globSearchPattern : '( babel.config.js|.babelrc*) ' ,
18
18
configFile : getConfigFilepath ( 'babel.config.js' ) ,
19
19
} ,
20
+ 'babel-preserve-modules' : {
21
+ globSearchPattern : '(babel.config.js|.babelrc*)' ,
22
+ configFile : getConfigFilepath ( 'babel-preserve-modules.config.js' ) ,
23
+ } ,
20
24
'webpack-prod' : {
21
25
globSearchPattern : 'webpack.prod.config.js' ,
22
26
configFile : getConfigFilepath ( 'webpack.prod.config.js' ) ,
You can’t perform that action at this time.
0 commit comments