We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3f99565 commit 076e09eCopy full SHA for 076e09e
1 file changed
vite.config.ts
@@ -30,7 +30,8 @@ export default defineConfig({
30
// Use the TypeScript entry so Rollup sees ES modules and can generate a proper UMD bundle
31
entry: path.resolve(__dirname, "index.ts"),
32
fileName: () => "kuzzle.js",
33
- formats: ["umd"],
+ // Use an IIFE to avoid CommonJS/AMD detection in browsers that execute the bundle as an ES module
34
+ formats: ["iife"],
35
name: "KuzzleSDK",
36
},
37
outDir: "dist",
0 commit comments