bahmutov / compiled

Compiles the ES* bundle to your NodeJS version on install
https://glebbahmutov.com/blog/javascript-needs-compile-step/
41 stars 2 forks source link

need to be able to specify rollup options/plugins #22

Open boneskull opened 8 years ago

boneskull commented 8 years ago

I was trying to find a good way to allow this behavior and submit a PR, but nothing elegant was jumping at me. There are two main problems:

So, I can't use plugin functions in package.json obviously, and I can't specify my plugins for Rollup in any manner other than in a .js file.

Potential solutions:

bahmutov commented 8 years ago

I think the config option that specifies rollup config file is better, because we could just pass it to the rollup?

boneskull commented 8 years ago

Would there be any impact there with the tool insofar as pre- and post-processing? If not, then yes.

boneskull commented 8 years ago

@bahmutov In general, I'd like to get your thoughts on my use case (Mocha), which is ultimately outside the scope of this ticket. If you're available for a chat (text or audio), I'd be grateful to speak with you.

bahmutov commented 8 years ago

what's the use case with Mocha, since I have been doing a lot of things with it (it is my favorite https://glebbahmutov.com/blog/picking-javascript-testing-framework/) - we can chat next week