Path: blob/main/extensions/ipynb/extension.webpack.config.js
3290 views
/*---------------------------------------------------------------------------------------------1* Copyright (c) Microsoft Corporation. All rights reserved.2* Licensed under the MIT License. See License.txt in the project root for license information.3*--------------------------------------------------------------------------------------------*/4// @ts-check5import withDefaults, { nodePlugins } from '../shared.webpack.config.mjs';6import path from 'path';78export default withDefaults({9context: import.meta.dirname,10entry: {11['ipynbMain.node']: './src/ipynbMain.node.ts',12notebookSerializerWorker: './src/notebookSerializerWorker.ts',13},14output: {15path: path.resolve(import.meta.dirname, 'dist'),16filename: '[name].js'17},18plugins: [19...nodePlugins(import.meta.dirname), // add plugins, don't replace inherited20]21});222324