File tree Expand file tree Collapse file tree 2 files changed +23
-3
lines changed Expand file tree Collapse file tree 2 files changed +23
-3
lines changed Original file line number Diff line number Diff line change 1111 "scripts" : {
1212 "bower" : " bower install" ,
1313 "build" : " python setup.py js css" ,
14- "build:webpack" : " webpack --mode development " ,
14+ "build:webpack" : " webpack --mode production " ,
1515 "build:watch" : " npm run watch" ,
1616 "watch" : " onchange 'notebook/static/**/!(*.min).js' 'notebook/static/**/*.less' 'bower.json' -- npm run build"
1717 },
1818 "devDependencies" : {
19+ "@babel/preset-env" : " ^7.15.0" ,
1920 "@jupyterlab/apputils" : " ^3.1.3" ,
21+ "babel-loader" : " ^8.2.2" ,
22+ "babel-polyfill" : " ^6.26.0" ,
2023 "bower" : " ^1.8.8" ,
2124 "less" : " ~2" ,
2225 "onchange" : " ^6.0.0" ,
Original file line number Diff line number Diff line change 11const path = require ( 'path' ) ;
22
33module . exports = {
4- entry : ' @jupyterlab/apputils/lib/sanitizer',
4+ entry : [ 'babel-polyfill' , ' @jupyterlab/apputils/lib/sanitizer'] ,
55 output : {
66 filename : 'index.js' ,
77 path : path . resolve ( __dirname , 'notebook/static/components/sanitizer' ) ,
8- libraryTarget : "amd"
8+ libraryTarget : "amd" ,
9+ } ,
10+ devtool : false ,
11+ optimization : {
12+ minimize : false
13+ } ,
14+ module : {
15+ rules : [
16+ {
17+ test : / \. m ? j s x ? $ / ,
18+ use : {
19+ loader : 'babel-loader' ,
20+ options : {
21+ presets : [ '@babel/preset-env' ] ,
22+ }
23+ }
24+ }
25+ ]
926 }
1027}
You can’t perform that action at this time.
0 commit comments