mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-24 02:28:34 +01:00
shared webpack browser config: add WEBWORKER definition
This commit is contained in:
@@ -8,20 +8,18 @@
|
||||
'use strict';
|
||||
const path = require('path');
|
||||
const withBrowserDefaults = require('../shared.webpack.config').browser;
|
||||
const webpack = require('webpack');
|
||||
|
||||
const config = withBrowserDefaults({
|
||||
context: __dirname,
|
||||
node: false,
|
||||
entry: {
|
||||
extension: './src/extension.ts',
|
||||
extension: './src/extension.ts'
|
||||
},
|
||||
resolve: {
|
||||
alias: {
|
||||
'node-fetch': path.resolve(__dirname, 'node_modules/node-fetch/browser.js'),
|
||||
},
|
||||
'node-fetch': path.resolve(__dirname, 'node_modules/node-fetch/browser.js')
|
||||
}
|
||||
}
|
||||
});
|
||||
config.plugins.push(new webpack.DefinePlugin({ WEBWORKER: JSON.stringify(true) }))
|
||||
|
||||
module.exports = config;
|
||||
|
||||
Reference in New Issue
Block a user