-
-
Notifications
You must be signed in to change notification settings - Fork 4
Description
I'm not too deep into this stuff and could use some help here, as I haven't been able to find a solution to this yet.
p5.asciify has certain namespaces like renderers, and I would like to be able to import stuff from this namespace via import { P5AsciifyRenderer2D } from 'p5.asciify/renderers'.
Currently, it only really works 100% using import { renderers } from 'p5.asciify', and then referencing the class via renderers.P5AsciifyRenderer2D.
The library already has the proper index.ts files in place I think, but I assume I'm doing something wrong with the package.json, tsconfig.json, or vite.config.ts files.
Ideally, if possible, I would like to keep the dist folder as it is, meaning that it only contains the bundled umd/esm library files, and the types folder. But I'm open to any feedback, as I'm not 100% sure what the best distribution strategy, also for npm, is.
Huge thanks to anyone in advance who's able to help here!