guybedford / es-module-lexer

Low-overhead lexer dedicated to ES module parsing for fast analysis
MIT License
917 stars 48 forks source link

CommonJS is missing? #122

Closed evanw closed 2 years ago

evanw commented 2 years ago

I wanted to try out this package so I followed the instructions. However, that fails with the following error:

Error: Cannot find module './node_modules/es-module-lexer/dist/lexer.cjs'

This is because lexer.cjs wasn't published. Perhaps the instructions for CommonJS could be removed if this is intended to be an ESM-only package?

guybedford commented 2 years ago

I just happened to publish 1.0 yesterday evening and didn't run a full build which missed this. It should work now with the 1.0.1 release.