-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(chore) Builds ES and CJS modules side by side with conditional expor…
…ts (#3007) - drops the legacy `lib/highlight.js` - build ES modules in `es` folder side-by-side with `lib` for CJS - adds `lib/common` - loader is no longer supported, languages must `export default` or equiv - add --no-esm build option (for speed) - add `.js.js` stubs for maximum compatible with requires using extensions
- Loading branch information
1 parent
a8f4cf8
commit 6a7c0e6
Showing
5 changed files
with
145 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,3 @@ | ||
// commented out | ||
// <reference path="../types/index.d.ts" /> | ||
|
||
import hljs from "highlight.js"; | ||
export default hljs; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters