Closed lisp closed 5 years ago
I'm not sure we have enough information to answer your question.
There are lots of tools to get JavaScript into a browser, even if the JS uses imports: for example rollup, webpack, or browserify. Moo doesn't mind what you use.
Maybe this is a question about compiling Nearley grammars?
The Nearley Playground is a special case, since it lets you write grammars containing JavaScript in the browser.
I'm afraid I don't have the time to provide advice on JavaScript bundling 🙂
Sent with GitHawk
i suppose, what i am hoping to do is not to have to bundle it, but instead to generate a lexer which works with export/import.
what approach is intended to use moo in a browser via export/import i found this note in the nearley playground, but it remains unresolved:
i have read also the nearley note about "compiling in browsers"
but that does not indicate how to adjust the process to use moo as a lexer and also does not mention how to handle export/import.