File tree Expand file tree Collapse file tree 2 files changed +19
-1
lines changed Expand file tree Collapse file tree 2 files changed +19
-1
lines changed Original file line number Diff line number Diff line change 88
88
},
89
89
"jupyterlab" : {
90
90
"extension" : true ,
91
- "outputDir" : " jupyterlab_lego_boost/labextension"
91
+ "outputDir" : " jupyterlab_lego_boost/labextension" ,
92
+ "webpackConfig" : " ./webpack.config.js"
92
93
}
93
94
}
Original file line number Diff line number Diff line change
1
+ // @ts -check
2
+
3
+ module . exports = /** @type { import('webpack').Configuration } */ ( {
4
+ devtool : 'source-map' ,
5
+ module : {
6
+ rules : [
7
+ // Load Blockly source maps.
8
+ {
9
+ test : / ( b l o c k l y \/ .* \. j s ) $ / ,
10
+ use : [ require . resolve ( 'source-map-loader' ) ] ,
11
+ enforce : 'pre'
12
+ }
13
+ ] . filter ( Boolean )
14
+ } ,
15
+ // https://github.com/google/blockly-samples/blob/9974e85becaa8ad17e35b588b95391c85865dafd/plugins/dev-scripts/config/webpack.config.js#L118-L120
16
+ ignoreWarnings : [ / F a i l e d t o p a r s e s o u r c e m a p / ]
17
+ } ) ;
You can’t perform that action at this time.
0 commit comments