mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-25 23:22:02 +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.output.intro += 'const requireDynamic = require;'
|
||||||
options.plugins.push(replace({
|
options.plugins.push(replace({
|
||||||
values: {
|
values: {
|
||||||
'require("./"': 'requireDynamic("./"'
|
'require("./" +': 'requireDynamic("./" +'
|
||||||
},
|
},
|
||||||
delimiters: ['', '']
|
delimiters: ['', '']
|
||||||
}))
|
}))
|
||||||
|
Loading…
Reference in New Issue
Block a user