Skip to content

Commit

Permalink
dont force encoding when static bundling assets
Browse files Browse the repository at this point in the history
  • Loading branch information
thescientist13 committed Feb 8, 2025
1 parent c456f7c commit 927ecd9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/cli/src/config/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ function greenwoodImportMetaUrl(compilation) {
const { relativeAssetPath } = assetUrl;
const assetName = path.basename(pathname);
const assetExtension = assetName.split(".").pop();
const assetContents = await fs.promises.readFile(url, "utf-8");
const assetContents = await fs.promises.readFile(url);
const name = assetName.replace(`.${assetExtension}`, "");
const request = new Request(url, { headers: { Accept: "text/javascript" } });
let bundleExtensions = ["js"];
Expand Down

0 comments on commit 927ecd9

Please sign in to comment.