Browse Source

Merge pull request #163858 in DEC/fineui from master to feature/x

* commit 'e91e55f70f415c2f62fb0e6137dc5be0adffa56b':
  auto upgrade version to 2.0.20220906163624
  chore: without jquery增加一些runtime语法编译
  chore: 修改下脚本
research/test
superman 2 years ago
parent
commit
9400c6577b
  1. 2
      bin/cli/worker/template/main_thread.helper.t
  2. 2
      package.json
  3. 9
      webpack/attachments.js

2
bin/cli/worker/template/main_thread.helper.t

@ -2,7 +2,7 @@ import { ${WorkerName}MainThreadWorker } from './main_thread/${workerName}_main_
// 不需要一起打包的话则不需要引入这行
// FuiWorkerPlugin中的属性会同步到fui-worker中同时支持loader行内传入属性
// 根据实际需求传入inline返回格式 true -> blob urlfalse -> servicePath
import { workerUrl } from 'fui-worker!./worker_thread/${workerName}_worker_thread';
import workerUrl from 'fui-worker!./worker_thread/${workerName}_worker_thread';
export class ${WorkerName}WorkerHelper {
private worker: ${WorkerName}MainThreadWorker;

2
package.json

@ -1,6 +1,6 @@
{
"name": "fineui",
"version": "2.0.20220906151811",
"version": "2.0.20220906163624",
"description": "fineui",
"main": "dist/fineui_without_conflict.min.js",
"types": "dist/lib/index.d.ts",

9
webpack/attachments.js

@ -7,8 +7,14 @@ const workerCompact = './dist/fix/worker.compact.js';
const lodashJs = "src/core/1.lodash.js";
const jqueryJs = "src/core/platform/web/jquery/_jquery.js";
const runtimePolyfill = sync(["@babel/polyfill", "es6-promise/auto"]);
const basicAttachmentMap = {
polyfill: sync(["src/core/0.foundation.js", "src/polyfill/**/*.js"]).concat(["@babel/polyfill", "es6-promise/auto"]),
polyfill: sync([
"src/core/0.foundation.js",
"src/polyfill/**/*.js",
...runtimePolyfill,
]),
core: sync([
"src/less/core/**/*.less",
"src/less/theme/**/*.less",
@ -202,6 +208,7 @@ const fineuiProxy = [].concat(
);
const fineuiWithoutJqueryAndPolyfillJs = [].concat(
runtimePolyfill,
sync([
"src/core/0.foundation.js",
lodashJs,

Loading…
Cancel
Save