Closed curran closed 10 months ago
Related discussion: Rollup #5210: Leverage SWC parser to transpile JSX and TypeScript
Requesting a new official plugin is not an issue for Rollup core, maybe for the plugins repo. But the usual way these plugins are created is because someone makes them, then it turns out they are useful to many, so it is suggested to be moved into the core plugins repo. Not the other way around. As you already did half the research, why not create this plugin yourself?
Indeed! I will attempt this. Thank you for your feedback.
Feature Use Case
As an Web application developer who wants to allow users of my application to edit and run TS and JSX code in my app, I want to be able to develop a system based on
@rollup/browser
that transpiles JSX and TypeScript, while minimizing the bundle size of my app.Feature Proposal
Introduce a new member of the
rollup/plugins
family that supports in-browser transpilation of JSX and TypeScript.The following are good candidates to research how in-browser support could be added:
wasm-web_bg.wasm
in the NPM distribution).