File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 1
- const path = require ( ' path' ) ;
2
- const TerserPlugin = require ( ' terser-webpack-plugin' ) ;
1
+ const path = require ( " path" ) ;
2
+ const TerserPlugin = require ( " terser-webpack-plugin" ) ;
3
3
4
4
const { NODE_ENV , BABEL_ENV } = process . env ;
5
5
6
- const filename = BABEL_ENV === ' modern' ? "fxd.js" : "fxd.es5.js" ;
6
+ const filename = BABEL_ENV === " modern" ? "fxd.js" : "fxd.es5.js" ;
7
7
8
8
module . exports = {
9
- target : [ ' web' , BABEL_ENV === ' modern' ? ' es6' : ' es5' ] ,
9
+ target : [ " web" , BABEL_ENV === " modern" ? " es6" : " es5" ] ,
10
10
mode : NODE_ENV || "development" ,
11
11
devtool : "source-map" ,
12
12
entry : "./src/index.js" ,
@@ -20,7 +20,7 @@ module.exports = {
20
20
rules : [
21
21
{
22
22
test : / \. j s $ / ,
23
- exclude : / n o d e _ m o d u l e s \/ (? ! f x j s \/ e s m \/ ) .* / ,
23
+ exclude : / n o d e _ m o d u l e s \/ (? ! f x j s \/ e s \/ ) .* / ,
24
24
use : {
25
25
loader : "babel-loader" ,
26
26
} ,
You can’t perform that action at this time.
0 commit comments