Skip to content

Commit

Permalink
chore: fix building
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Aug 11, 2023
1 parent 9309ec0 commit 4854010
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,16 @@

[![NPM version](https://img.shields.io/npm/v/shikiji?color=a1b858&label=)](https://www.npmjs.com/package/shikiji)

An ESM-focused rewrite of [shiki](https://github.com/shikijs/shiki), a beautiful syntax highlighter based on TextMate grammar.
An ESM-focused rewrite of [shiki](https://github.com/shikijs/shiki), a beautiful syntax highlighter based on TextMate grammars.

## Changes

- All assets served as pure-ESM, no more CDN, no more assets
- All grammars/themes/wasm served as pure-ESM, no more CDN, no more assets
- Portable. No Node.js APIs, works in Cloudflare Workers
- Drop CJS and IIFE build, focus on ESM
- Bundles languages/themes on-demand
- API simplified
- Please don't hate me Pine 😜

// WIP, documents will be updated later.

Expand Down Expand Up @@ -66,7 +67,7 @@ The `shikiji/core` entry does not include any themes or languages or the wasm bi
## TODO

- [ ] Port more Shiki API
- [ ] Load new themes and languages after creatation
- [ ] Load new themes and languages after creation

## License

Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
"dist"
],
"scripts": {
"prepare": "esno scripts/prepare.ts",
"build": "rimraf dist && rollup -c",
"dev": "rollup -cw",
"lint": "eslint .",
Expand Down
File renamed without changes.

0 comments on commit 4854010

Please sign in to comment.