Skip to content

Commit 74702f5

Browse files
authored
fix: Update web experiment build format to IIFE (#210)
1 parent 275709e commit 74702f5

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

packages/experiment-tag/rollup.config.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,7 @@ const configs = [
6565
...config,
6666
...getOutputConfig({
6767
entryFileNames: 'experiment-tag-min.js',
68-
exports: 'named',
69-
format: 'umd',
68+
format: 'iife',
7069
}),
7170
plugins: [
7271
...config.plugins,
@@ -76,8 +75,8 @@ const configs = [
7675
comments:
7776
/@amplitude\/.* v(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?/,
7877
},
79-
}), // Apply terser plugin for minification
80-
gzip(), // Add gzip plugin to create .gz files
78+
}),
79+
gzip(),
8180
],
8281
external: [],
8382
},

0 commit comments

Comments
 (0)