From 467f1c2543626a50d48c84669cd408571260f147 Mon Sep 17 00:00:00 2001 From: bobzel Date: Thu, 14 Aug 2025 11:00:14 -0400 Subject: added background removal for images. --- webpack.worker.config.js | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 webpack.worker.config.js (limited to 'webpack.worker.config.js') diff --git a/webpack.worker.config.js b/webpack.worker.config.js new file mode 100644 index 000000000..f2a2da199 --- /dev/null +++ b/webpack.worker.config.js @@ -0,0 +1,30 @@ +// webpack.worker.config.js +// eslint-disable-next-line @typescript-eslint/no-require-imports +const path = require('path'); + +module.exports = { + mode: 'development', + entry: './src/workers/image.worker.ts', // 👈 Adjust path to your worker file + output: { + filename: 'image.worker.js', + publicPath: '/', + path: path.resolve(__dirname, 'build'), + }, + experiments: { + outputModule: true, + }, + resolve: { + extensions: ['.ts', '.js'], + }, + module: { + rules: [ + { + test: /\.ts$/, + loader: 'ts-loader', + options: { + configFile: 'tsconfig.worker.json', + }, + }, + ], + }, +}; -- cgit v1.2.3-70-g09d2