Skip to content

Commit

Permalink
fix: json should be bundled (vitejs#2573)
Browse files Browse the repository at this point in the history
  • Loading branch information
egoist authored Mar 19, 2021
1 parent bc35fe9 commit 2eb7682
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/vite/src/node/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -739,10 +739,7 @@ async function bundleConfigFile(
setup(build) {
build.onResolve({ filter: /.*/ }, (args) => {
const id = args.path
if (
(id[0] !== '.' && !path.isAbsolute(id)) ||
id.slice(-5, id.length) === '.json'
) {
if (id[0] !== '.' && !path.isAbsolute(id)) {
return {
external: true
}
Expand Down

0 comments on commit 2eb7682

Please sign in to comment.