mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-18 17:35:57 +00:00
fix(nitro): handle esm imports from cjs files
fixes fs mock for vue-server-renderer
This commit is contained in:
parent
83e28a71ac
commit
51538bfcb1
@ -250,7 +250,7 @@ export const getRollupConfig = (nitroContext: NitroContext) => {
|
||||
|
||||
// https://github.com/rollup/plugins/tree/master/packages/commonjs
|
||||
rollupConfig.plugins.push(commonjs({
|
||||
extensions: extensions.filter(ext => ext !== '.json')
|
||||
requireReturnsDefault: true
|
||||
}))
|
||||
|
||||
// https://github.com/rollup/plugins/tree/master/packages/json
|
||||
|
Loading…
Reference in New Issue
Block a user