File tree 2 files changed +10
-3
lines changed
2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ import rollupPluginReplace from 'rollup-plugin-replace';
6
6
import rollupPluginNodeResolve from 'rollup-plugin-node-resolve' ;
7
7
import rollupPluginString from 'rollup-plugin-string' ;
8
8
9
+ import path from 'path' ;
9
10
import version from './tools/version' ;
10
11
import packageJson from './package.json' ;
11
12
@@ -51,11 +52,12 @@ export default {
51
52
rollupPluginBabel ( {
52
53
runtimeHelpers : true ,
53
54
exclude : [
54
- '. /node_modules/**' ,
55
+ / n o d e _ m o d u l e s [ \\ / ] (? ! t h r e e ) / ,
55
56
'./vendor/js/**' ,
56
57
'./src/utils/SelectionParser' ,
57
58
'./src/utils/MiewCLIParser.js' ,
58
59
] ,
60
+ extends : path . join ( __dirname , '/.babelrc' ) ,
59
61
} ) ,
60
62
61
63
] ,
Original file line number Diff line number Diff line change @@ -22,8 +22,13 @@ const configure = (prod) => ({
22
22
module : {
23
23
rules : [ {
24
24
test : / \. j s $ / ,
25
- exclude : / ( n o d e _ m o d u l e s | v e n d o r ) / ,
26
- use : [ 'babel-loader' ] ,
25
+ exclude : / ( n o d e _ m o d u l e s [ \\ / ] (? ! t h r e e ) ) | v e n d o r / ,
26
+ use : {
27
+ loader : 'babel-loader' ,
28
+ options : {
29
+ extends : path . join ( __dirname , '/.babelrc' ) ,
30
+ } ,
31
+ } ,
27
32
} , {
28
33
test : / \. [ s p ] ? c s s $ / ,
29
34
use : [
You can’t perform that action at this time.
0 commit comments