🚥 comlink-loader tentatively working

This commit is contained in:
2021-04-27 14:35:14 -07:00
parent d38309001f
commit a4715efe04
7 changed files with 29 additions and 56 deletions

View File

@@ -1,7 +1,6 @@
const path = require("path");
const HtmlWebpackPlugin = require("html-webpack-plugin");
const MiniCssExtractPlugin = require("mini-css-extract-plugin");
const WorkerPlugin = require("worker-plugin");
const outputDirectory = "dist";
module.exports = {
@@ -13,10 +12,6 @@ module.exports = {
devtool: "source-map",
module: {
rules: [
// {
// test: /\.worker\.ts$/,
// use: { loader: "worker-loader" },
// },
{
test: /\.worker\.(js|ts)$/i,
use: [
@@ -33,7 +28,6 @@ module.exports = {
use: ["babel-loader"],
exclude: /node_modules/,
},
{
enforce: "pre",
test: /\.js$/,
@@ -73,7 +67,6 @@ module.exports = {
},
plugins: [
// new CleanWebpackPlugin([outputDirectory]),
// new WorkerPlugin(),
new HtmlWebpackPlugin({
template: "./public/index.html",
favicon: "./public/favicon.ico",