Skip to content

Commit

Permalink
resolve comments
Browse files Browse the repository at this point in the history
  • Loading branch information
zackradisic committed Jan 21, 2025
1 parent dc31a71 commit 9c1c40d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/options.zig
Original file line number Diff line number Diff line change
Expand Up @@ -1294,7 +1294,7 @@ pub fn definesFromTransformOptions(
);
}

const default_loader_ext_bun = [_]string{".node"};
const default_loader_ext_bun = [_]string{ ".node", ".html" };
const default_loader_ext = [_]string{
".jsx", ".json",
".js", ".mjs",
Expand All @@ -1307,7 +1307,7 @@ const default_loader_ext = [_]string{
".toml", ".wasm",
".txt", ".text",

".jsonc", ".html",
".jsonc",
};

// Only set it for browsers by default.
Expand Down
1 change: 1 addition & 0 deletions test/bundler/bundler_html.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -617,6 +617,7 @@ console.log('Main JS loaded page:', page);`,
</html>`,
},
entryPoints: ["/in/main.js"],
loader: { ".html": "file" },
onAfterBundle(api) {
const bundle = api.readFile("out/main.js");

Expand Down

0 comments on commit 9c1c40d

Please sign in to comment.