44// Here we generate the /dist files that allow widget embedding
55
66var path = require ( 'path' ) ;
7- var webpack = require ( 'webpack' ) ;
8-
9- var version = require ( './package.json' ) . version ;
107
118var rules = [
129 { test : / \. c s s $ / , use : [ 'style-loader' , 'css-loader' ] } ,
@@ -15,13 +12,6 @@ var rules = [
1512 { test : / \. s v g $ / i, type : 'asset' } ,
1613] ;
1714
18- var plugins = [
19- new webpack . DefinePlugin ( {
20- // Needed for Blueprint. See https://github.com/palantir/blueprint/issues/4393
21- 'process.env' : '{}' ,
22- } ) ,
23- ] ;
24-
2515module . exports = [
2616 {
2717 // script that renders widgets using the standard embedding and can only render standard controls
@@ -33,7 +23,6 @@ module.exports = [
3323 devtool : 'source-map' ,
3424 module : { rules : rules } ,
3525 mode : 'production' ,
36- plugins : plugins ,
3726 } ,
3827 {
3928 // script that renders widgets using the amd embedding and can render third-party custom widgets
@@ -44,7 +33,6 @@ module.exports = [
4433 } ,
4534 module : { rules : rules } ,
4635 mode : 'production' ,
47- plugins : plugins ,
4836 } ,
4937 {
5038 // embed library that depends on requirejs, and can load third-party widgets dynamically
@@ -57,7 +45,6 @@ module.exports = [
5745 } ,
5846 module : { rules : rules } ,
5947 mode : 'production' ,
60- plugins : plugins ,
6148 } ,
6249 {
6350 // @jupyter -widgets/html-manager
@@ -71,7 +58,6 @@ module.exports = [
7158 module : { rules : rules } ,
7259 externals : [ '@jupyter-widgets/base' , '@jupyter-widgets/controls' ] ,
7360 mode : 'production' ,
74- plugins : plugins ,
7561 } ,
7662 {
7763 // @jupyter -widgets/base
@@ -84,7 +70,6 @@ module.exports = [
8470 } ,
8571 module : { rules : rules } ,
8672 mode : 'production' ,
87- plugins : plugins ,
8873 } ,
8974 {
9075 // @jupyter -widgets/controls
@@ -98,6 +83,5 @@ module.exports = [
9883 module : { rules : rules } ,
9984 externals : [ '@jupyter-widgets/base' ] ,
10085 mode : 'production' ,
101- plugins : plugins ,
10286 } ,
10387] ;
0 commit comments