Skip to content

Commit 076e09e

Browse files
committed
chore(tests): modify vite config
1 parent 3f99565 commit 076e09e

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

vite.config.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ export default defineConfig({
3030
// Use the TypeScript entry so Rollup sees ES modules and can generate a proper UMD bundle
3131
entry: path.resolve(__dirname, "index.ts"),
3232
fileName: () => "kuzzle.js",
33-
formats: ["umd"],
33+
// Use an IIFE to avoid CommonJS/AMD detection in browsers that execute the bundle as an ES module
34+
formats: ["iife"],
3435
name: "KuzzleSDK",
3536
},
3637
outDir: "dist",

0 commit comments

Comments
 (0)