From 4f146d6290dad94b37d3ee32a9f86aea551e396e Mon Sep 17 00:00:00 2001 From: MiroslavDionisiev Date: Thu, 4 Jul 2024 10:14:48 +0300 Subject: [PATCH] fix: [UEPR-27] Added missing entry point --- webpack.config.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/webpack.config.js b/webpack.config.js index ffe22d3f8..2320bf53b 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -13,6 +13,9 @@ const common = { const nodeBuilder = new ScratchWebpackConfigBuilder(common) .setTarget('node') .merge({ + entry: { + 'extension-worker': path.join(__dirname, 'src/extension-support/extension-worker.js') + }, output: { library: { name: 'VirtualMachine' @@ -27,6 +30,9 @@ const nodeBuilder = new ScratchWebpackConfigBuilder(common) const webBuilder = new ScratchWebpackConfigBuilder(common) .setTarget('browserslist') .merge({ + entry: { + 'extension-worker': path.join(__dirname, 'src/extension-support/extension-worker.js') + }, resolve: { fallback: { Buffer: require.resolve('buffer/') @@ -65,7 +71,8 @@ const playgroundBuilder = webBuilder.clone() }, entry: { 'benchmark': './src/playground/benchmark', - 'video-sensing-extension-debug': './src/extensions/scratch3_video_sensing/debug' + 'video-sensing-extension-debug': './src/extensions/scratch3_video_sensing/debug', + 'extension-worker': path.join(__dirname, 'src/extension-support/extension-worker.js') }, output: { path: path.resolve(__dirname, 'playground'),