mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-24 12:19:20 +00:00
Support serialization of IPYNB in web worker (#230190)
This commit is contained in:
@@ -8,15 +8,31 @@
|
||||
'use strict';
|
||||
|
||||
const withBrowserDefaults = require('../shared.webpack.config').browser;
|
||||
const path = require('path');
|
||||
|
||||
const config = withBrowserDefaults({
|
||||
const mainConfig = withBrowserDefaults({
|
||||
context: __dirname,
|
||||
entry: {
|
||||
extension: './src/ipynbMain.browser.ts'
|
||||
},
|
||||
output: {
|
||||
filename: 'ipynbMain.browser.js'
|
||||
filename: 'ipynbMain.browser.js',
|
||||
path: path.join(__dirname, 'dist', 'browser')
|
||||
}
|
||||
});
|
||||
|
||||
module.exports = config;
|
||||
|
||||
const workerConfig = withBrowserDefaults({
|
||||
context: __dirname,
|
||||
entry: {
|
||||
notebookSerializerWorker: './src/notebookSerializerWorker.web.ts',
|
||||
},
|
||||
output: {
|
||||
filename: 'notebookSerializerWorker.js',
|
||||
path: path.join(__dirname, 'dist', 'browser'),
|
||||
libraryTarget: 'var',
|
||||
library: 'serverExportVar'
|
||||
},
|
||||
});
|
||||
|
||||
module.exports = [mainConfig, workerConfig];
|
||||
|
||||
Reference in New Issue
Block a user