Skip to content

Commit f26376f

Browse files
committed
Removes unneeded monaco-editor-esm-bundle
1 parent a0b5488 commit f26376f

4 files changed

Lines changed: 3 additions & 100 deletions

File tree

.github/workflows/monaco-editor.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ jobs:
6565
- name: Run Monaco Editor Checks
6666
run: yarn monaco-compile-check
6767

68-
- name: Editor Distro & ESM Bundle
69-
run: yarn gulp editor-esm-bundle
68+
- name: Editor Distro & ESM
69+
run: yarn gulp editor-esm
7070

7171
- name: Editor ESM sources check
7272
working-directory: ./test/monaco

build/gulpfile.editor.js

Lines changed: 1 addition & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -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

build/monaco/esm.core.js

Lines changed: 0 additions & 21 deletions
This file was deleted.

build/monaco/monaco.webpack.config.js

Lines changed: 0 additions & 43 deletions
This file was deleted.

0 commit comments

Comments
 (0)