Skip to content

Commit

Permalink
fix worker import
Browse files Browse the repository at this point in the history
  • Loading branch information
rebornix committed Sep 7, 2024
1 parent 65f36ea commit fc8fda5
Showing 1 changed file with 3 additions and 14 deletions.
17 changes: 3 additions & 14 deletions extensions/ipynb/extension.webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,26 +7,15 @@

'use strict';

const CopyPlugin = require('copy-webpack-plugin');
const withDefaults = require('../shared.webpack.config');

module.exports = withDefaults({
context: __dirname,
entry: {
extension: './src/ipynbMain.ts',
notebookSerializerWorker: './src/notebookSerializerWorker.ts',
},
output: {
filename: 'ipynbMain.js'
},
plugins: [
...withDefaults.nodePlugins(__dirname), // add plugins, don't replace inherited
new CopyPlugin({
patterns: [
{
from: './out/notebookSerializerWorker.js',
to: './dist',
}
],
}),
]
filename: '[name].js'
}
});

0 comments on commit fc8fda5

Please sign in to comment.