From bc8f19f5891c6493f865569f2436b5c6a1f345e1 Mon Sep 17 00:00:00 2001 From: Treecat Date: Fri, 14 Apr 2023 15:05:24 +0800 Subject: [PATCH] =?UTF-8?q?KERNEL-14512=20chore:=E6=89=93=E5=8C=85?= =?UTF-8?q?=E7=BB=93=E6=9E=84=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/demo/package.json | 2 +- packages/fineui/package.json | 7 ++++--- packages/fineui/src/core/index.js | 11 ++++------- packages/fineui/src/index.js | 9 +++------ 4 files changed, 12 insertions(+), 17 deletions(-) diff --git a/packages/demo/package.json b/packages/demo/package.json index 67c18d5f7..01fe03056 100644 --- a/packages/demo/package.json +++ b/packages/demo/package.json @@ -5,7 +5,7 @@ "main": "index.js", "scripts": { "dev": "webpack-dev-server --open --config=webpack.dev.js --progress", - "build": "webpack --config=webpack.prod.js" + "build": "webpack --config=webpack.prod.js --progress" }, "keywords": [], "author": "", diff --git a/packages/fineui/package.json b/packages/fineui/package.json index 8977c42fd..7551b66e4 100644 --- a/packages/fineui/package.json +++ b/packages/fineui/package.json @@ -11,9 +11,10 @@ "sideEffects": [ "**/*.less", "src/**/*.js", - "dist/es/core/*.js", - "dist/es/core/element/**/*.js", - "dist/es/core/platform/**/*.js", + "dist/es/index.js", + "dist/es/core/system.js", + "dist/es/core/platform/web/config.js", + "dist/es/core/platform/web/jquery/*.js", "dist/es/polyfill/**/*.js", "dist/es/case/ztree/jquery.ztree.core-3.5.js", "dist/es/case/ztree/jquery.ztree.excheck-3.5.js" diff --git a/packages/fineui/src/core/index.js b/packages/fineui/src/core/index.js index b754913f6..6dbdf43c9 100644 --- a/packages/fineui/src/core/index.js +++ b/packages/fineui/src/core/index.js @@ -1,5 +1,5 @@ export * from './system'; -export { Plugin } from './6.plugin'; + export { StyleLoaderManager } from './loader/loader.style'; export { ShowListener } from './listener/listener.show'; export { useInWorker } from './worker'; @@ -15,16 +15,14 @@ export { PopoverController } from './controller/controller.popover'; export { ResizeController } from './controller/controller.resizer'; export { TooltipsController } from './controller/controller.tooltips'; -export * from './4.widget'; +export * as _ from './1.lodash'; export * from './2.base'; export * from './3.ob'; - +export * from './4.widget'; export * from './5.inject'; export * from './6.plugin'; export * from './action'; -// export * from "./behavior"; -// export * from "./controller"; export * from './func'; export * from './structure'; export * from './h'; @@ -36,6 +34,5 @@ export * from './utils'; export { shortcut, provider, store, model, mixin, mixins } from './decorator'; -import _ from './1.lodash'; -export { _ }; + diff --git a/packages/fineui/src/index.js b/packages/fineui/src/index.js index 8458c1264..e0600bc9e 100644 --- a/packages/fineui/src/index.js +++ b/packages/fineui/src/index.js @@ -1,12 +1,9 @@ // sideEffects import "./core/system"; -import "./core/element"; -import "./core/platform"; import "./core/platform/web/jquery" -// 必须要等上面的准备好, 才初始化 config import "./core/platform/web/config"; -import _jquery from "jquery"; +import jquery from "jquery"; export * from "./core"; export * from "./base"; @@ -16,5 +13,5 @@ export * from "./component"; export * from "./fix"; export * from "./router"; export * as Popper from "@popperjs/core"; -export const jQuery = _jquery; -export const $ = _jquery; +export const jQuery = jquery; +export const $ = jquery;