Browse Source

Pull request #241901: 无JIRA report模板用的worker适配+删减

Merge in DEC/fineui from ~DAILER/fineui-decision:release/11.0 to release/11.0

* commit '2ead0ec7005e51eb5a9c30d1d22576f421243f3e':
  无JIRA  report模板用的worker适配+删减
research/test
Dailer-刘荣歆 1 year ago committed by Austin.Duan-段嗣跃
parent
commit
3e714f3157
  1. 36
      packages/fineui/src/worker.js
  2. 6
      packages/fineui/webpack/attachments.js

36
packages/fineui/src/worker.js

@ -0,0 +1,36 @@
// sideEffects
import "./core/system";
import * as _core from "./core";
import * as _base from "./base";
import * as _fix from "./fix";
import * as _router from "./router";
export * as Popper from "@popperjs/core";
import * as D from "@/core/decorator";
import { Fix } from "./fix";
const Decorators = { ...D, Model: Fix.Model };
const fuiExport = {
..._core,
..._base,
..._fix,
..._router
};
import * as injectFn from "@/core/5.inject";
import { _global } from "@/core/0.foundation";
import { _defineVarProperties } from "@/core/constant/writable.var";
_global.BI = _global.BI || {};
Object.assign(_global, {
Fix: fuiExport.Fix,
_: fuiExport._,
});
Object.assign(_global.BI, fuiExport, injectFn, { Decorators, });
_defineVarProperties(_global.BI);

6
packages/fineui/webpack/attachments.js

@ -19,7 +19,8 @@ const basicAttachmentMap = {
"src/less/widget/**/*.less",
"src/less/component/**/*.less"
]),
js_bundle: sync(["src/bundle.js"])
js_bundle: sync(["src/bundle.js"]),
js_worker: sync(["src/worker.js"])
};
const bundleCss = [].concat(basicAttachmentMap.less, sync(["public/less/app.less", "public/less/**/*.less"]));
@ -34,8 +35,7 @@ const fineui = [].concat(
);
const fineuiForWorker = [].concat(
jqueryPolyfill,
basicAttachmentMap.js_bundle,
basicAttachmentMap.js_worker,
basicAttachmentMap.ui,
basicAttachmentMap.ts
);

Loading…
Cancel
Save