mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-24 12:19:20 +00:00
extract loadLibrary
This commit is contained in:
@@ -32,5 +32,13 @@ const serverConfig = withDefaults({
|
||||
});
|
||||
serverConfig.module.rules[0].use.shift(); // remove nls loader
|
||||
serverConfig.module.noParse = /typescript\/lib\/typescript\.js/;
|
||||
serverConfig.module.rules.push({
|
||||
test: /javascriptLibs.ts$/,
|
||||
use: [
|
||||
{
|
||||
loader: path.resolve(__dirname, 'build', 'javaScriptLibraryLoader.js')
|
||||
}
|
||||
]
|
||||
});
|
||||
|
||||
module.exports = serverConfig;
|
||||
|
||||
Reference in New Issue
Block a user