1- import path from ' path' ;
1+ import path from " path" ;
22
33export default {
4- target : "node" ,
5- mode : ' development' ,
6- devtool : ' inline-source-map' ,
4+ target : "node" ,
5+ mode : " development" ,
6+ devtool : " inline-source-map" ,
77
8- entry : {
9- min :path . resolve ( './lib/index.js' )
10- } ,
11- output : {
12- path : path . resolve ( './' ) ,
13- filename :'[name].js' ,
14- library : 'myanmarNotation' ,
15- libraryTarget : 'window' ,
16- assetModuleFilename : '[name][hash][ext][query]'
17- // path: path.resolve('./static'),
18- // publicPath: '/',
19- // filename:'[name].js',
20- // assetModuleFilename: '[name][hash][ext][query]'
21- } ,
22- resolve : {
23- extensions : [ '.js' ]
24- } ,
25- plugins : [ ] ,
26- module : {
27- rules : [
28- {
29- test : / \. j s $ / ,
30- exclude : / ( n o d e _ m o d u l e s | b o w e r _ c o m p o n e n t s ) / ,
31- use : [
32- {
33- loader : 'babel-loader' ,
34- options : {
35- presets : [
36- // [
37- // '@babel/preset-env',
38- // {
39- // 'modules': 'auto',//commonjs,amd,umd,systemjs,auto
40- // 'useBuiltIns': 'usage',
41- // 'targets': '> 0.25%, not dead',
42- // 'corejs': 3
43- // }
44- // ]
45- ]
46- }
47- }
48- ]
49- }
50- ]
51- }
8+ entry : {
9+ min : path . resolve ( "./lib/index.js" )
10+ } ,
11+ output : {
12+ path : path . resolve ( "./" ) ,
13+ filename : "[name].js" ,
14+ library : "myanmarNotation" ,
15+ libraryTarget : "window" ,
16+ assetModuleFilename : "[name][hash][ext][query]"
17+ } ,
18+ resolve : {
19+ extensions : [ ".js" ]
20+ } ,
21+ plugins : [ ] ,
22+ module : {
23+ rules : [
24+ {
25+ test : / \. j s $ / ,
26+ exclude : / ( n o d e _ m o d u l e s | b o w e r _ c o m p o n e n t s ) / ,
27+ use : [
28+ {
29+ loader : "babel-loader" ,
30+ options : {
31+ presets : [
32+ // [
33+ // '@babel/preset-env',
34+ // {
35+ // 'modules': 'auto',//commonjs,amd,umd,systemjs,auto
36+ // 'useBuiltIns': 'usage',
37+ // 'targets': '> 0.25%, not dead',
38+ // 'corejs': 3
39+ // }
40+ // ]
41+ ]
42+ }
43+ }
44+ ]
45+ }
46+ ]
47+ }
5248} ;
53-
54- // "babel": {
55- // "presets": [
56- // [
57- // "@babel/preset-env",
58- // {
59- // "targets": {
60- // "node": "current"
61- // }
62- // }
63- // ]
64- // ],
65- // "plugins": []
66- // },
0 commit comments