fix imports

This commit is contained in:
Avad3 2024-07-14 11:42:23 -04:00
parent 82a95e71b0
commit 20caf32b5b
17 changed files with 46 additions and 40 deletions

View file

@ -6,6 +6,8 @@ import { fileURLToPath } from "url";
const __dirname = fileURLToPath(new URL(".", import.meta.url));
export default defineConfig({
// change to production when needed
mode: "development",
entry: {
shared: join(__dirname, "src/shared/index.ts"),
worker: join(__dirname, "src/worker/index.ts"),
@ -35,7 +37,9 @@ export default defineConfig({
},
output: {
filename: "scramjet.[name].js",
path: join(__dirname, "dist")
path: join(__dirname, "dist"),
iife: true,
clean: true
},
plugins: [
// new RsdoctorRspackPlugin({