Akryum / meteor-vite

MIT License
33 stars 16 forks source link

Comments in packages break parsing #26

Closed red-meadow closed 10 months ago

red-meadow commented 1 year ago

Any comment with the word "module" in a package entry point breaks exports. It's probably caused by invalid parsing rules.

How to reproduce

  1. In example project, add the comment // module anywhere in test-modules/index.js.
  2. Check the output of (vite) meteor/test:modules in the console. image
JorgenVatle commented 1 year ago

Turns out it's not only comments, but also filenames including "module". Seems to be a Meteor thing though, as the generated package sources appear to change from e.g. module.link(...) to module1.link(...).