mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-25 11:08:51 +01:00
Remove vscode-nls-dev dependency (#228002)
This was when extensions used the old localization stuff. None of this is used anymore.
This commit is contained in:
committed by
GitHub
parent
2e4bae90c6
commit
1349397cf7
@@ -12,7 +12,6 @@ const path = require('path');
|
||||
const fs = require('fs');
|
||||
const merge = require('merge-options');
|
||||
const CopyWebpackPlugin = require('copy-webpack-plugin');
|
||||
const { NLSBundlePlugin } = require('vscode-nls-dev/lib/webpack-bundler');
|
||||
const { DefinePlugin, optimize } = require('webpack');
|
||||
|
||||
const tsLoaderOptions = {
|
||||
@@ -40,13 +39,6 @@ function withNodeDefaults(/**@type WebpackConfig & { context: string }*/extConfi
|
||||
test: /\.ts$/,
|
||||
exclude: /node_modules/,
|
||||
use: [{
|
||||
// vscode-nls-dev loader:
|
||||
// * rewrite nls-calls
|
||||
loader: 'vscode-nls-dev/lib/webpack-loader',
|
||||
options: {
|
||||
base: path.join(extConfig.context, 'src')
|
||||
}
|
||||
}, {
|
||||
// configure TypeScript loader:
|
||||
// * enable sources maps for end-to-end source maps
|
||||
loader: 'ts-loader',
|
||||
@@ -97,8 +89,7 @@ function nodePlugins(context) {
|
||||
patterns: [
|
||||
{ from: 'src', to: '.', globOptions: { ignore: ['**/test/**', '**/*.ts'] }, noErrorOnMissing: true }
|
||||
]
|
||||
}),
|
||||
new NLSBundlePlugin(id)
|
||||
})
|
||||
];
|
||||
}
|
||||
/**
|
||||
@@ -196,9 +187,7 @@ function browserPlugins(context) {
|
||||
'process.platform': JSON.stringify('web'),
|
||||
'process.env': JSON.stringify({}),
|
||||
'process.env.BROWSER_ENV': JSON.stringify('true')
|
||||
}),
|
||||
// TODO: bring this back once vscode-nls-dev supports browser
|
||||
// new NLSBundlePlugin(id)
|
||||
})
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user