Browse Source

Pull request #3047: 无JIRA任务 without jquery增加一些runtime语法polyfill

Merge in VISUAL/fineui from ~TELLER/fineui:master to master

* commit 'e533a2dfce2a26b621020ee9626181bbd45d5f82':
  chore: without jquery增加一些runtime语法编译
  chore: 修改下脚本
es6
Teller-杨派 2 years ago
parent
commit
128c5b8150
  1. 2
      bin/cli/worker/template/main_thread.helper.t
  2. 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;

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