Using with @rollup/plugin-multi-entry plugin and custom transform #1613
Unanswered
enes-kaplan
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello. I am new to rollup and its plugin usage and environment. Sorry if this already has a solution, I have not came across.
I have a library written in JS and some classes in TS. I have a custom transform plugin, which goes through all the needed JS files and combines/minifies in a single output file. This is what I wanted and all is good.
However, I also want to have my TS files compiled into JS as seperate modules. To handle multiple inputs, I've used
@rollup/plugin-multi-entry
plugin. This changed how I handled the transform plugin a little bit, due to loaded content being a list of files to be exported instead of singular input file's content. However, I cannot process the rest of my files once I return from transform. I get a.d.ts
file per.ts
file, but not the implementation codes. I get the implementation code correctly if I plain run it without my custom plugin for combining the dependencies. Here is the code:Beta Was this translation helpful? Give feedback.
All reactions