Skip to content

Commit

Permalink
fix: use PascalCase name for UMD global
Browse files Browse the repository at this point in the history
  • Loading branch information
jcfranco committed Jul 21, 2024
1 parent bceb1d8 commit fe6f976
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import typescript from '@rollup/plugin-typescript';
import terser from '@rollup/plugin-terser';

const input = 'src/index.ts';
const umdName = 'composed-offset-position';
const umdName = 'ComposedOffsetPosition';
const bundles = [
{
input,
Expand Down Expand Up @@ -57,13 +57,8 @@ const bundles = [
];

export default bundles.map(({input, output}) => ({
external: [
"@floating-ui/utils/dom"
],
external: ['@floating-ui/utils/dom'],
input,
output,
plugins: [
typescript(),
output.file.includes('.min.') && terser()
],
plugins: [typescript(), output.file.includes('.min.') && terser()],
}));

0 comments on commit fe6f976

Please sign in to comment.