@@ -231,8 +231,7 @@ module.exports = {
231231 'bootstrap'
232232 ] ,
233233 cover : [
234- 'core-js/stable' ,
235- 'regenerator-runtime/runtime' ,
234+ 'babel-polyfill' ,
236235 path . join ( __dirname , 'public/js/cover.js' )
237236 ] ,
238237 'cover-styles-pack' : [
@@ -242,16 +241,14 @@ module.exports = {
242241 path . join ( __dirname , 'node_modules/select2/select2-bootstrap.css' )
243242 ] ,
244243 'cover-pack' : [
245- 'core-js/stable' ,
246- 'regenerator-runtime/runtime' ,
244+ 'babel-polyfill' ,
247245 'bootstrap-validator' ,
248246 'expose-loader?select2!select2' ,
249247 'expose-loader?moment!moment' ,
250248 path . join ( __dirname , 'public/js/cover.js' )
251249 ] ,
252250 index : [
253- 'core-js/stable' ,
254- 'regenerator-runtime/runtime' ,
251+ 'babel-polyfill' ,
255252 'script-loader!jquery-ui-resizable' ,
256253 'script-loader!codemirror' ,
257254 'script-loader!inlineAttachment' ,
@@ -299,8 +296,7 @@ module.exports = {
299296 path . join ( __dirname , 'node_modules/leaflet/dist/leaflet.css' )
300297 ] ,
301298 'index-pack' : [
302- 'core-js/stable' ,
303- 'regenerator-runtime/runtime' ,
299+ 'babel-polyfill' ,
304300 'script-loader!jquery-ui-resizable' ,
305301 'bootstrap-validator' ,
306302 'expose-loader?jsyaml!js-yaml' ,
@@ -328,8 +324,7 @@ module.exports = {
328324 path . join ( __dirname , 'public/js/index.js' )
329325 ] ,
330326 pretty : [
331- 'core-js/stable' ,
332- 'regenerator-runtime/runtime' ,
327+ 'babel-polyfill' ,
333328 'flowchart.js' ,
334329 'imports-loader?Raphael=raphael!js-sequence-diagrams' ,
335330 'expose-loader?RevealMarkdown!reveal-markdown' ,
@@ -347,8 +342,7 @@ module.exports = {
347342 path . join ( __dirname , 'node_modules/leaflet/dist/leaflet.css' )
348343 ] ,
349344 'pretty-pack' : [
350- 'core-js/stable' ,
351- 'regenerator-runtime/runtime' ,
345+ 'babel-polyfill' ,
352346 'expose-loader?jsyaml!js-yaml' ,
353347 'expose-loader?moment!moment' ,
354348 'script-loader!handlebars' ,
@@ -368,8 +362,7 @@ module.exports = {
368362 path . join ( __dirname , 'public/js/pretty.js' )
369363 ] ,
370364 slide : [
371- 'core-js/stable' ,
372- 'regenerator-runtime/runtime' ,
365+ 'babel-polyfill' ,
373366 'bootstrap-tooltip' ,
374367 'flowchart.js' ,
375368 'imports-loader?Raphael=raphael!js-sequence-diagrams' ,
@@ -387,8 +380,7 @@ module.exports = {
387380 path . join ( __dirname , 'node_modules/leaflet/dist/leaflet.css' )
388381 ] ,
389382 'slide-pack' : [
390- 'core-js/stable' ,
391- 'regenerator-runtime/runtime' ,
383+ 'babel-polyfill' ,
392384 'expose-loader?jQuery!expose-loader?$!jquery' ,
393385 'velocity-animate' ,
394386 'imports-loader?$=jquery!jquery-mousewheel' ,
@@ -422,7 +414,7 @@ module.exports = {
422414
423415 resolve : {
424416 modules : [ 'node_modules' ] ,
425- extensions : [ '.js' , '.mjs' ] ,
417+ extensions : [ '.js' ] ,
426418 alias : {
427419 codemirror : path . join ( __dirname , 'node_modules/@hackmd/codemirror/codemirror.min.js' ) ,
428420 inlineAttachment : path . join ( __dirname , 'public/vendor/inlineAttachment/inline-attachment.js' ) ,
@@ -461,42 +453,7 @@ module.exports = {
461453 module : {
462454 rules : [ {
463455 test : / \. m j s $ / ,
464- type : 'javascript/auto' ,
465- include : / n o d e _ m o d u l e s /
466- } , {
467- test : / n o d e _ m o d u l e s \/ m a r k m a p .* \/ .* \. m j s $ / ,
468- use : [ { loader : 'babel-loader' } ] ,
469456 type : 'javascript/auto'
470- } , {
471- test : / n o d e _ m o d u l e s \/ m a r k m a p .* \/ .* \. j s $ / ,
472- use : [ {
473- loader : 'babel-loader' ,
474- options : {
475- presets : [
476- [ '@babel/preset-env' , {
477- modules : 'cjs'
478- } ]
479- ]
480- }
481- } ]
482- } , {
483- test : / n o d e _ m o d u l e s \/ y a m l \/ b r o w s e r \/ d i s t \/ .* \. j s $ / ,
484- use : [ { loader : 'babel-loader' } ]
485- } , {
486- test : / n o d e _ m o d u l e s \/ @ v s c o d e \/ m a r k d o w n - i t - k a t e x \/ .* \. j s $ / ,
487- use : [ {
488- loader : 'babel-loader' ,
489- options : {
490- presets : [
491- [ '@babel/preset-env' , {
492- modules : 'cjs'
493- } ]
494- ] ,
495- plugins : [
496- '@babel/plugin-transform-optional-chaining'
497- ]
498- }
499- } ]
500457 } , {
501458 test : / \. j s $ / ,
502459 use : [ { loader : 'babel-loader' } ] ,
0 commit comments