Skip to content

Commit 16b64a9

Browse files
authored
Merge pull request mpvue#4 from mpvue/fix-es5-support
支持 es5
2 parents 0bf9db0 + 9805159 commit 16b64a9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/mp-compiler/templates.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ function genScript (name, isPage) {
22
const prefix = isPage ? '../..' : '.'
33

44
return `
5-
import '${prefix}/static/js/manifest'
6-
import '${prefix}/static/js/vendor'
7-
import '${prefix}/static/js/${name}'
5+
require('${prefix}/static/js/manifest')
6+
require('${prefix}/static/js/vendor')
7+
require('${prefix}/static/js/${name}')
88
`
99
}
1010

0 commit comments

Comments
 (0)