File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -20,15 +20,20 @@ const esmExternals = {
2020
2121const common = {
2222 entry : {
23- main : './src/index.ts' ,
23+ main : {
24+ import : './src/index.ts' ,
25+ library : {
26+ name : 'UI' ,
27+ type : 'umd'
28+ }
29+ } ,
2430 header : './src/v2/components/header/index.ts' ,
2531 loginButton : './src/v2/components/loginButton/index.ts' ,
2632 signupButton : './src/v2/components/signupButton/index.ts'
2733 } ,
2834 output : {
2935 path : path . resolve ( process . cwd ( ) , 'dist' ) ,
3036 library : {
31- name : 'UI' ,
3237 type : 'umd'
3338 } ,
3439 globalObject : 'this' ,
@@ -97,6 +102,10 @@ const unminified = {
97102// ESM minified, rdflib external
98103const esmMinified = {
99104 ...common ,
105+ entry : {
106+ ...common . entry ,
107+ main : './src/index.ts'
108+ } ,
100109 output : {
101110 path : path . resolve ( process . cwd ( ) , 'dist' ) ,
102111 filename : pathData => pathData . chunk . name === 'main'
@@ -123,6 +132,10 @@ const esmMinified = {
123132// ESM unminified, rdflib external
124133const esmUnminified = {
125134 ...common ,
135+ entry : {
136+ ...common . entry ,
137+ main : './src/index.ts'
138+ } ,
126139 output : {
127140 path : path . resolve ( process . cwd ( ) , 'dist' ) ,
128141 filename : pathData => pathData . chunk . name === 'main'
You can’t perform that action at this time.
0 commit comments