diff --git a/ShadowEditor.UI/rollup.config.js b/ShadowEditor.UI/rollup.config.js index 252b9035..53cdd991 100644 --- a/ShadowEditor.UI/rollup.config.js +++ b/ShadowEditor.UI/rollup.config.js @@ -7,7 +7,7 @@ export default { output: { indent: '\t', format: 'umd', - name: 'Shadow.UI', + name: 'Shadow', file: 'ShadowEditor.UI/dist/ShadowUI.js' }, treeshake: true, diff --git a/ShadowEditor.UI/src/index.js b/ShadowEditor.UI/src/index.js index 133b4446..f588d97f 100644 --- a/ShadowEditor.UI/src/index.js +++ b/ShadowEditor.UI/src/index.js @@ -1,5 +1,7 @@ import '../assets/css/main.css'; -export { default as UI } from './UI'; +import UI from './UI'; -window.UI = UI; \ No newline at end of file +window.UI = UI; + +export { default as UI } from './UI'; \ No newline at end of file