[JSON loader] Fix importing JSON in ESM modules

This commit is contained in:
Jarred Sumner
2021-10-25 17:04:52 -07:00
parent 5691bf385b
commit a6c4bba6c2

View File

@@ -2235,7 +2235,7 @@ pub const Bundler = struct {
return BuildResolveResultPair{
.written = switch (result.ast.exports_kind) {
.esm => try bundler.print(
.none, .esm => try bundler.print(
result,
Writer,
writer,