Browse Source

chore: without jquery增加一些runtime语法编译

es6
iapyang 2 years ago
parent
commit
0bfa73dddc
  1. 9
      webpack/attachments.js

9
webpack/attachments.js

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

Loading…
Cancel
Save