Skip to content

Commit

Permalink
add esm build
Browse files Browse the repository at this point in the history
  • Loading branch information
tjenkinson committed Mar 5, 2023
1 parent 0c996dc commit c0cea08
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"version": "2.3.14",
"description": "A small library for creating marquees.",
"main": "./dist/dynamic-marquee.js",
"module": "./dist/dynamic-marquee.mjs",
"types": "./dist/dynamic-marquee.d.ts",
"scripts": {
"build": "rollup --config rollup.config.mjs",
Expand Down
16 changes: 11 additions & 5 deletions rollup.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,15 @@ export default {
onwarn: (e) => {
throw new Error(e);
},
output: {
name: 'dynamicMarquee',
file: 'dist/dynamic-marquee.js',
format: 'umd',
},
output: [
{
name: 'dynamicMarquee',
file: 'dist/dynamic-marquee.js',
format: 'umd',
},
{
file: 'dist/dynamic-marquee.mjs',
format: 'es',
},
],
};

0 comments on commit c0cea08

Please sign in to comment.