File tree Expand file tree Collapse file tree 1 file changed +3
-33
lines changed Expand file tree Collapse file tree 1 file changed +3
-33
lines changed Original file line number Diff line number Diff line change 11var path = require ( 'path' ) ;
22
3+ var plotlyjsConfig = require ( '../webpack.config' ) ;
4+
35module . exports = {
46 target : [ 'web' , 'es5' ] ,
57 entry : './main.js' ,
@@ -14,37 +16,5 @@ module.exports = {
1416 optimization : {
1517 minimize : false
1618 } ,
17- module : {
18- rules : [ {
19- test : / \. j s $ / ,
20- exclude : / n o d e _ m o d u l e s / ,
21- use : {
22- loader : 'babel-loader'
23- }
24- } , {
25- test : / \. j s $ / ,
26- include : / n o d e _ m o d u l e s [ \\ \/ ] b u f f e r [ \\ \/ ] / ,
27- use : {
28- loader : 'babel-loader' ,
29- options : {
30- babelrc : false ,
31- configFile : false ,
32- presets : [
33- '@babel/preset-env'
34- ]
35- }
36- } ,
37- } , {
38- test : / \. g l s l $ / ,
39- include : / n o d e _ m o d u l e s / ,
40- use : {
41- loader : 'raw-loader'
42- }
43- } , {
44- test : / \. ( j s | g l s l ) $ / ,
45- use : [
46- 'ify-loader'
47- ]
48- } ]
49- }
19+ module : plotlyjsConfig . module
5020} ;
You can’t perform that action at this time.
0 commit comments