mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-22 05:35:13 +00:00
fix: add hack for encoding
This commit is contained in:
parent
04bb2fa906
commit
536155825b
@ -138,6 +138,15 @@ export const getRollupConfig = (config: SLSOptions) => {
|
||||
}
|
||||
}))
|
||||
|
||||
// https://github.com/rollup/plugins/tree/master/packages/replace
|
||||
// TODO: better fix for node-fetch issue
|
||||
options.plugins.push(replace({
|
||||
delimiters: ['', ''],
|
||||
values: {
|
||||
'require(\'encoding\')': '{}'
|
||||
}
|
||||
}))
|
||||
|
||||
// Provide serverMiddleware
|
||||
const getImportId = p => '_' + hasha(p).substr(0, 6)
|
||||
options.plugins.push(virtual({
|
||||
|
Loading…
Reference in New Issue
Block a user