rollup / plugins

🍣 The one-stop shop for official Rollup plugins
MIT License
3.6k stars 573 forks source link

Browser Support for @rollup/plugin-sucrase #1620

Closed curran closed 10 months ago

curran commented 10 months ago

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:

curran commented 10 months ago

Related discussion: Rollup #5210: Leverage SWC parser to transpile JSX and TypeScript

lukastaegert commented 10 months ago

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?

curran commented 10 months ago

Indeed! I will attempt this. Thank you for your feedback.