Skip to content

Commit df745c7

Browse files
committed
支持 es5
1 parent 6115517 commit df745c7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/mp-compiler/templates.js

+3-3
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)