From 87c78f7c6f3568c133e645c194b9590e3e347c57 Mon Sep 17 00:00:00 2001 From: MiaoWoo Date: Tue, 7 Apr 2020 22:20:53 +0800 Subject: [PATCH] feat: default require nodejs module Signed-off-by: MiaoWoo --- pom.xml | 3 ++- src/main/resources/core/ployfill.js | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 03a0da3..57ebd78 100644 --- a/pom.xml +++ b/pom.xml @@ -3,7 +3,7 @@ 4.0.0 pw.yumc MiaoScript - 0.4.1 + 0.4.2 502647092 @@ -54,6 +54,7 @@ DEV + §620-04-07 §afeat: 默认初始化 内建 nodejs 模块; §620-04-03 §afeat: 优化 框架卸载逻辑; §620-03-31 §afeat: require 新增 内建 nodejs 模块; §620-03-03 §afeat: require 新增 淘宝镜像源拉取; diff --git a/src/main/resources/core/ployfill.js b/src/main/resources/core/ployfill.js index 0bccdb4..f2365a2 100644 --- a/src/main/resources/core/ployfill.js +++ b/src/main/resources/core/ployfill.js @@ -17,5 +17,6 @@ console.log("Loading Engine at Thread", java.lang.Thread.currentThread().name) global.require = engineLoad(global.root + '/core/require.js')(root); require('@ms/ployfill') + require('@ms/nodejs') } );