emmetio / codemirror6-plugin

WIP Plugin for CodeMirror 6
40 stars 7 forks source link

Module doesn't export anything #3

Closed sergeichestakov closed 2 years ago

sergeichestakov commented 2 years ago

Hey @sergeche! Thanks so much for getting this published.

However, when I tried to install the package and follow the usage instructions in the README, I discovered that abbreviationTracker isn't a valid export. Digging deeper, I found that nothing is actually getting exported via the following code:

import * as emmet from '@emmetio/codemirror6-plugin';

console.log(Object.keys(emmet));

Indeed, when I opened up the bundle (under dist/plugin.js) and grepped for export nothing came up. Possibly an issue with the Vite config's rollup options?

Created a repl with a minimal repro here: https://replit.com/@SergeiChestakov/cm-emmet-exports

Which is hosted here: https://cm-emmet-exports.sergeichestakov.repl.co/

You can visit that URL and check the logs to see that logging the module's exports produces an empty array

sergeichestakov commented 2 years ago

Confirmed this is fixed in v0.0.2! Thanks 🎉