We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6115517 + df745c7 commit 9d5ccc8Copy full SHA for 9d5ccc8
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