Skip to content

Commit

Permalink
ci: Add esm support
Browse files Browse the repository at this point in the history
  • Loading branch information
rmi22186 committed Nov 8, 2024
1 parent b907ba4 commit 7e65b60
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default [
file: 'dist/BrazeKit.iife.js',
format: 'iife',
exports: 'named',
name: 'mpBrazeKitV4',
name: 'mpBrazeKitV5',
strict: false,
inlineDynamicImports: true,
},
Expand All @@ -25,7 +25,24 @@ export default [
file: 'dist/BrazeKit.common.js',
format: 'cjs',
exports: 'named',
name: 'mpBrazeKitV4',
name: 'mpBrazeKitV5',
strict: false,
inlineDynamicImports: true,
},
plugins: [
resolve({
browser: true,
}),
commonjs(),
],
},
{
input: 'src/BrazeKit-dev.js',
output: {
file: 'dist/BrazeKit.esm.js',
format: 'esm',
exports: 'named',
name: 'mpBrazeKitV5',
strict: false,
inlineDynamicImports: true,
},
Expand Down

0 comments on commit 7e65b60

Please sign in to comment.