Skip to content

Commit

Permalink
footer for cjs node main build only
Browse files Browse the repository at this point in the history
  • Loading branch information
joshgoebel committed Oct 6, 2021
1 parent e98b983 commit cfe5478
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion tools/build_config.js
Expand Up @@ -32,7 +32,7 @@ module.exports = {
format: "cjs",
strict: false,
exports: "auto",
footer: "highlight.hljs = highlight;\nhighlight.default = highlight;"
footer: ""
}
},
browser_iife: {
Expand Down
1 change: 1 addition & 0 deletions tools/build_node.js
Expand Up @@ -86,6 +86,7 @@ async function buildESMUtils() {
async function buildNodeHighlightJS(options) {
const input = { ...config.rollup.core.input, input: `src/highlight.js` };
const output = { ...config.rollup.node.output, file: `${process.env.BUILD_DIR}/lib/core.js` };
output.footer = "highlight.hljs = highlight;\nhighlight.default = highlight;";
await rollupWrite(input, output);
if (options.esm) {
buildESMStub("core");
Expand Down

0 comments on commit cfe5478

Please sign in to comment.