Skip to content

Commit 4e7a3cb

Browse files
committedFeb 13, 2024
fix: export elements for UMD bundle
1 parent 9f4d928 commit 4e7a3cb

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed
 

‎packages/rollup-package.config.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ const createBundleConfig = (bundle, namespace) => {
6565

6666
return bundle
6767
? {
68-
input: `lib/${bundle}.umd.ts`,
68+
input: `lib/${bundle}.ts`,
6969
output: {
7070
file: `./dist/${bundleName}.min.js`,
7171
format: 'umd',

‎packages/uui/lib/index.umd.ts

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
import 'lit';
22
import 'lit/decorators.js';
33
import '.';
4+
export * from '.';

‎packages/uui/rollup.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ import { UUIProdConfig } from '../rollup-package.config.mjs';
22

33
export default UUIProdConfig({
44
entryPoints: ['index'],
5-
bundle: 'index',
5+
bundle: 'index.umd',
66
namespace: 'uui',
77
});

0 commit comments

Comments
 (0)
Please sign in to comment.