From 20cda2a258afc314dc6af2fa569bd1184d2dac4b Mon Sep 17 00:00:00 2001 From: liteng <930372551@qq.com> Date: Mon, 29 Oct 2018 21:12:06 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DShadow.UI=E9=94=99=E8=AF=AF?= =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ShadowEditor.UI/rollup.config.js | 2 +- ShadowEditor.UI/src/index.js | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) 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