luminaxster / syntax-highlighter

An extensible library to highlight (and comment) JSX syntax in the Monaco Editor using Babel. It exposes its AST, so you can add your own syntax-based or custom highlights.
https://luminaxster.github.io/syntax-highlighter/
MIT License
30 stars 4 forks source link

@babel/parser @babel/traverse cannot use in browser #14

Closed RGBWang closed 1 year ago

RGBWang commented 2 years ago

@babel/parser @babel/traverse cannot use in browser。 babel in browser lib is @babel/standalone。 but cannot find parser or traverse in @babel/standalone, how can I do it?

luminaxster commented 1 year ago

are you using npm? or using cdn for the files? Your bundled app should have code like this.