File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11const path = require ( 'path' ) ;
2+ const webpack = require ( 'webpack' ) ;
23const HtmlWebpackPlugin = require ( 'html-webpack-plugin' ) ;
34const { WebpackManifestPlugin } = require ( 'webpack-manifest-plugin' ) ;
45
@@ -29,6 +30,9 @@ module.exports = (option = {}) => {
2930 template : option . template || path . join ( __dirname , '../public/webview.html' ) ,
3031 inject : false ,
3132 } ) ,
33+ new webpack . optimize . LimitChunkCountPlugin ( {
34+ maxChunks : 1 ,
35+ } ) ,
3236 ] ,
3337 } ;
3438} ;
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ module.exports = () => {
99 return {
1010 entry : {
1111 [ config . workerEntry ] : require . resolve (
12- '@opensumi/ide-extension/lib/hosted/worker.host-preload'
12+ '@opensumi/ide-extension/lib/hosted/worker.host-preload' ,
1313 ) ,
1414 } ,
1515 output : {
@@ -36,6 +36,9 @@ module.exports = () => {
3636 new webpack . ProvidePlugin ( {
3737 ...nodePolyfill . provider ,
3838 } ) ,
39+ new webpack . optimize . LimitChunkCountPlugin ( {
40+ maxChunks : 1 ,
41+ } ) ,
3942 ] ,
4043 stats : 'errors-only' ,
4144 } ;
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ exports.invoke = async (fn) => {
1010} ;
1111
1212exports . exec = async ( command , options , silent = false ) => {
13+ console . log ( `[exec] ${ command } ` )
1314 try {
1415 return await execa . command ( command , {
1516 stdio : 'inherit' ,
You can’t perform that action at this time.
0 commit comments