break loader plugins into build and runtime version to keep the size low

This commit is contained in:
Johannes Rieken
2017-06-23 16:31:32 +02:00
parent 65ab56d1d6
commit c75389b974
10 changed files with 660 additions and 416 deletions

View File

@@ -91,6 +91,7 @@ interface IPartialBundleResult {
export interface ILoaderConfig {
isBuild?: boolean;
paths?: { [path: string]: any; };
}
/**
@@ -121,6 +122,9 @@ export function bundle(entryPoints: IEntryPoint[], config: ILoaderConfig, callba
var loader: any = loaderModule.exports;
config.isBuild = true;
config.paths = config.paths || {};
config.paths['vs/nls'] = 'out-build/vs/nls.build';
config.paths['vs/css'] = 'out-build/vs/css.build';
loader.config(config);
loader(['require'], (localRequire) => {