@@ -420,50 +420,17 @@ gulp.task('editor-distro',
420420 )
421421) ;
422422
423- const bundleEditorESMTask = task . define ( 'editor-esm-bundle-webpack' , ( ) => {
424- const webpack = require ( 'webpack' ) ;
425- const webpackGulp = require ( 'webpack-stream' ) ;
426-
427- const result = es . through ( ) ;
428-
429- const webpackConfigPath = path . join ( root , 'build/monaco/monaco.webpack.config.js' ) ;
430-
431- const webpackConfig = {
432- ...require ( webpackConfigPath ) ,
433- ...{ mode : 'production' }
434- } ;
435-
436- const webpackDone = ( err , stats ) => {
437- if ( err ) {
438- result . emit ( 'error' , err ) ;
439- return ;
440- }
441- const { compilation } = stats ;
442- if ( compilation . errors . length > 0 ) {
443- result . emit ( 'error' , compilation . errors . join ( '\n' ) ) ;
444- }
445- if ( compilation . warnings . length > 0 ) {
446- result . emit ( 'data' , compilation . warnings . join ( '\n' ) ) ;
447- }
448- } ;
449-
450- return webpackGulp ( webpackConfig , webpack , webpackDone )
451- . pipe ( gulp . dest ( 'out-editor-esm-bundle' ) ) ;
452- } ) ;
453-
454- gulp . task ( 'editor-esm-bundle' ,
423+ gulp . task ( 'editor-esm' ,
455424 task . series (
456425 task . parallel (
457426 util . rimraf ( 'out-editor-src' ) ,
458427 util . rimraf ( 'out-editor-esm' ) ,
459428 util . rimraf ( 'out-monaco-editor-core' ) ,
460- util . rimraf ( 'out-editor-esm-bundle' ) ,
461429 ) ,
462430 extractEditorSrcTask ,
463431 createESMSourcesAndResourcesTask ,
464432 compileEditorESMTask ,
465433 appendJSToESMImportsTask ,
466- bundleEditorESMTask ,
467434 )
468435) ;
469436
0 commit comments