Open Alteras1 opened 2 years ago
Yep, I need to define "exports" field in package.json so all imports will be resolved properly.
I may suggest to import from src folder or defined import aliases like @bbob/plugin-helper/lib/char
to @bbob/plugin-helper/src/char
Hello!
Looks like there's an issue with bundling the es modules. I'm trying to wrap it inside my own package with its own set of bbcode tags, and when I bundle it to esm or cjs (using rollup), I get quite a few " is not exported by " errors. Looks like it's because some import statements use the /lib directory.
i.e.
This is my rollup.config.js, where
src/index.ts
imports @bbob/html, @bbob/preset, and @bbob/core, and applies its own set of tags.