Skip to content

Commit

Permalink
fix: export elements for UMD bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
iOvergaard committed Feb 13, 2024
1 parent 9f4d928 commit 4e7a3cb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/rollup-package.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ const createBundleConfig = (bundle, namespace) => {

return bundle
? {
input: `lib/${bundle}.umd.ts`,
input: `lib/${bundle}.ts`,
output: {
file: `./dist/${bundleName}.min.js`,
format: 'umd',
Expand Down
1 change: 1 addition & 0 deletions packages/uui/lib/index.umd.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import 'lit';
import 'lit/decorators.js';
import '.';
export * from '.';
2 changes: 1 addition & 1 deletion packages/uui/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ import { UUIProdConfig } from '../rollup-package.config.mjs';

export default UUIProdConfig({
entryPoints: ['index'],
bundle: 'index',
bundle: 'index.umd',
namespace: 'uui',
});

0 comments on commit 4e7a3cb

Please sign in to comment.