From df745c763f36e83e00449b1e6b21b5fdd8b63eb1 Mon Sep 17 00:00:00 2001 From: aorz Date: Thu, 15 Mar 2018 08:31:36 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=AF=E6=8C=81=20es5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/mp-compiler/templates.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/mp-compiler/templates.js b/lib/mp-compiler/templates.js index ff59787..740dfae 100644 --- a/lib/mp-compiler/templates.js +++ b/lib/mp-compiler/templates.js @@ -2,9 +2,9 @@ function genScript (name, isPage) { const prefix = isPage ? '../..' : '.' return ` - import '${prefix}/static/js/manifest' - import '${prefix}/static/js/vendor' - import '${prefix}/static/js/${name}' + require('${prefix}/static/js/manifest') + require('${prefix}/static/js/vendor') + require('${prefix}/static/js/${name}') ` }