File tree 1 file changed +3
-33
lines changed
1 file changed +3
-33
lines changed Original file line number Diff line number Diff line change 1
1
var path = require ( 'path' ) ;
2
2
3
+ var plotlyjsConfig = require ( '../webpack.config' ) ;
4
+
3
5
module . exports = {
4
6
target : [ 'web' , 'es5' ] ,
5
7
entry : './main.js' ,
@@ -14,37 +16,5 @@ module.exports = {
14
16
optimization : {
15
17
minimize : false
16
18
} ,
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
50
20
} ;
You can’t perform that action at this time.
0 commit comments