We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6115517 commit df745c7Copy full SHA for df745c7
lib/mp-compiler/templates.js
@@ -2,9 +2,9 @@ function genScript (name, isPage) {
2
const prefix = isPage ? '../..' : '.'
3
4
return `
5
- import '${prefix}/static/js/manifest'
6
- import '${prefix}/static/js/vendor'
7
- import '${prefix}/static/js/${name}'
+ require('${prefix}/static/js/manifest')
+ require('${prefix}/static/js/vendor')
+ require('${prefix}/static/js/${name}')
8
`
9
}
10
0 commit comments