void/extensions/ipynb/extension-browser.webpack.config.js

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

39 lines
1 KiB
JavaScript
Raw Permalink Normal View History

2024-09-11 02:37:36 +00:00
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
//@ts-check
'use strict';
const withBrowserDefaults = require('../shared.webpack.config').browser;
2025-03-01 02:01:53 +00:00
const path = require('path');
2024-09-11 02:37:36 +00:00
2025-03-01 02:01:53 +00:00
const mainConfig = withBrowserDefaults({
2024-09-11 02:37:36 +00:00
context: __dirname,
entry: {
2024-09-24 04:46:08 +00:00
extension: './src/ipynbMain.browser.ts'
2024-09-11 02:37:36 +00:00
},
output: {
2025-03-01 02:01:53 +00:00
filename: 'ipynbMain.browser.js',
path: path.join(__dirname, 'dist', 'browser')
2024-09-11 02:37:36 +00:00
}
});
2025-03-01 02:01:53 +00:00
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];