Skip to content

Commit 935aac5

Browse files
committed
(build) browser build is CommonJS and IIFE (global)
- dropping support for AMD, which we never truly supported in the first place Resolves highlightjs#2505
1 parent 3875088 commit 935aac5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tools/build_config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ module.exports = {
2929
},
3030
output: {
3131
name: "hljs",
32-
format: "umd",
32+
format: "iife",
33+
footer: "if (typeof module !== 'undefined') { module.exports = hljs; }",
3334
interop: false,
3435
}
3536
},

0 commit comments

Comments
 (0)