File tree Expand file tree Collapse file tree 3 files changed +22
-3
lines changed Expand file tree Collapse file tree 3 files changed +22
-3
lines changed Original file line number Diff line number Diff line change 88
88
},
89
89
"jupyterlab" : {
90
90
"extension" : true ,
91
- "outputDir" : " jupyterlab_niryo_one/labextension"
91
+ "outputDir" : " jupyterlab_niryo_one/labextension" ,
92
+ "webpackConfig" : " ./webpack.config.js"
92
93
}
93
94
}
Original file line number Diff line number Diff line change @@ -44,8 +44,8 @@ source = "nodejs"
44
44
fields = [" description" , " authors" , " urls" ]
45
45
46
46
[tool .hatch .build .targets .sdist ]
47
- artifacts = [" / jupyterlab_niryo_one/labextension" ]
48
- exclude = [" / .github" , " / binder" , " node_modules" ]
47
+ artifacts = [" jupyterlab_niryo_one/labextension" ]
48
+ exclude = [" .github" , " binder" , " node_modules" ]
49
49
50
50
[tool .hatch .build .targets .wheel .shared-data ]
51
51
"jupyterlab_niryo_one/labextension" = " share/jupyter/labextensions/jupyterlab-niryo-one"
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
+ } ) ;
18
+
You can’t perform that action at this time.
0 commit comments