Skip to content

Commit

Permalink
fix(nitro): handle esm imports from cjs files
Browse files Browse the repository at this point in the history
fixes fs mock for vue-server-renderer
  • Loading branch information
pi0 committed Apr 28, 2021
1 parent d78237d commit 8decd90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rollup/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8decd90

Please sign in to comment.