Skip to content

Commit

Permalink
browser builds iifes again
Browse files Browse the repository at this point in the history
  • Loading branch information
joshgoebel committed Jan 1, 2025
1 parent bbebaff commit 7be0c1d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tools/build_browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -211,14 +211,15 @@ async function buildCore(name, languages, options) {
...input.plugins,
builtInLanguagesPlugin(languages)
];
const output = config.rollup.node.output;
// const output = config.rollup.node.output;
const output = config.rollup.browser_iife.output;

// optimize for no languages by not including the language loading stub
if (languages.length === 0) {
input.input = "src/highlight.js";
}

output.format = "es";
// output.format = "es";
output.file = `${process.env.BUILD_DIR}/${name}.js`;
relativePath = "";

Expand Down

0 comments on commit 7be0c1d

Please sign in to comment.