@@ -231,8 +231,7 @@ module.exports = {
231
231
'bootstrap'
232
232
] ,
233
233
cover : [
234
- 'core-js/stable' ,
235
- 'regenerator-runtime/runtime' ,
234
+ 'babel-polyfill' ,
236
235
path . join ( __dirname , 'public/js/cover.js' )
237
236
] ,
238
237
'cover-styles-pack' : [
@@ -242,16 +241,14 @@ module.exports = {
242
241
path . join ( __dirname , 'node_modules/select2/select2-bootstrap.css' )
243
242
] ,
244
243
'cover-pack' : [
245
- 'core-js/stable' ,
246
- 'regenerator-runtime/runtime' ,
244
+ 'babel-polyfill' ,
247
245
'bootstrap-validator' ,
248
246
'expose-loader?select2!select2' ,
249
247
'expose-loader?moment!moment' ,
250
248
path . join ( __dirname , 'public/js/cover.js' )
251
249
] ,
252
250
index : [
253
- 'core-js/stable' ,
254
- 'regenerator-runtime/runtime' ,
251
+ 'babel-polyfill' ,
255
252
'script-loader!jquery-ui-resizable' ,
256
253
'script-loader!codemirror' ,
257
254
'script-loader!inlineAttachment' ,
@@ -299,8 +296,7 @@ module.exports = {
299
296
path . join ( __dirname , 'node_modules/leaflet/dist/leaflet.css' )
300
297
] ,
301
298
'index-pack' : [
302
- 'core-js/stable' ,
303
- 'regenerator-runtime/runtime' ,
299
+ 'babel-polyfill' ,
304
300
'script-loader!jquery-ui-resizable' ,
305
301
'bootstrap-validator' ,
306
302
'expose-loader?jsyaml!js-yaml' ,
@@ -328,8 +324,7 @@ module.exports = {
328
324
path . join ( __dirname , 'public/js/index.js' )
329
325
] ,
330
326
pretty : [
331
- 'core-js/stable' ,
332
- 'regenerator-runtime/runtime' ,
327
+ 'babel-polyfill' ,
333
328
'flowchart.js' ,
334
329
'imports-loader?Raphael=raphael!js-sequence-diagrams' ,
335
330
'expose-loader?RevealMarkdown!reveal-markdown' ,
@@ -347,8 +342,7 @@ module.exports = {
347
342
path . join ( __dirname , 'node_modules/leaflet/dist/leaflet.css' )
348
343
] ,
349
344
'pretty-pack' : [
350
- 'core-js/stable' ,
351
- 'regenerator-runtime/runtime' ,
345
+ 'babel-polyfill' ,
352
346
'expose-loader?jsyaml!js-yaml' ,
353
347
'expose-loader?moment!moment' ,
354
348
'script-loader!handlebars' ,
@@ -368,8 +362,7 @@ module.exports = {
368
362
path . join ( __dirname , 'public/js/pretty.js' )
369
363
] ,
370
364
slide : [
371
- 'core-js/stable' ,
372
- 'regenerator-runtime/runtime' ,
365
+ 'babel-polyfill' ,
373
366
'bootstrap-tooltip' ,
374
367
'flowchart.js' ,
375
368
'imports-loader?Raphael=raphael!js-sequence-diagrams' ,
@@ -387,8 +380,7 @@ module.exports = {
387
380
path . join ( __dirname , 'node_modules/leaflet/dist/leaflet.css' )
388
381
] ,
389
382
'slide-pack' : [
390
- 'core-js/stable' ,
391
- 'regenerator-runtime/runtime' ,
383
+ 'babel-polyfill' ,
392
384
'expose-loader?jQuery!expose-loader?$!jquery' ,
393
385
'velocity-animate' ,
394
386
'imports-loader?$=jquery!jquery-mousewheel' ,
@@ -422,7 +414,7 @@ module.exports = {
422
414
423
415
resolve : {
424
416
modules : [ 'node_modules' ] ,
425
- extensions : [ '.js' , '.mjs' ] ,
417
+ extensions : [ '.js' ] ,
426
418
alias : {
427
419
codemirror : path . join ( __dirname , 'node_modules/@hackmd/codemirror/codemirror.min.js' ) ,
428
420
inlineAttachment : path . join ( __dirname , 'public/vendor/inlineAttachment/inline-attachment.js' ) ,
@@ -461,42 +453,7 @@ module.exports = {
461
453
module : {
462
454
rules : [ {
463
455
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' } ] ,
469
456
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
- } ]
500
457
} , {
501
458
test : / \. j s $ / ,
502
459
use : [ { loader : 'babel-loader' } ] ,
0 commit comments