mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-22 05:35:13 +00:00
make requireDynamic pattern more exact
This commit is contained in:
parent
e17b0c5787
commit
b03eef0ceb
@ -65,7 +65,7 @@ export const getRollupConfig = (config) => {
|
||||
options.output.intro += 'const requireDynamic = require;'
|
||||
options.plugins.push(replace({
|
||||
values: {
|
||||
'require("./"': 'requireDynamic("./"'
|
||||
'require("./" +': 'requireDynamic("./" +'
|
||||
},
|
||||
delimiters: ['', '']
|
||||
}))
|
||||
|
Loading…
Reference in New Issue
Block a user