mirror of
https://github.com/MercuryWorkshop/scramjet.git
synced 2025-05-16 15:40:02 -04:00
fix imports
This commit is contained in:
parent
82a95e71b0
commit
20caf32b5b
17 changed files with 46 additions and 40 deletions
|
@ -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({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue