Skip to content

Commit

Permalink
fix(nitro): bundle json files (#1245)
Browse files Browse the repository at this point in the history
  • Loading branch information
farnabaz authored Oct 20, 2021
1 parent 6bac49b commit adf2235
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rollup/plugins/externals.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ export function externals (opts: NodeExternalsOptions): Plugin {
if (_id.startsWith('.') || opts.inline.find(i => _id.startsWith(i) || id.startsWith(i))) {
return null
}
// Bundle ts and wasm (currently - see https://github.com/nuxt/framework/discussions/692)
if (_id.endsWith('.ts') || _id.endsWith('.wasm')) {
// Bundle typescript, json and wasm (see https://github.com/nuxt/framework/discussions/692)
if (/\.(ts|wasm|json)$/.test(_id)) {
return null
}
}
Expand Down

0 comments on commit adf2235

Please sign in to comment.