FredKSchott / snowpack

ESM-powered frontend build tool. Instant, lightweight, unbundled development. ✌️
https://www.snowpack.dev
MIT License
19.48k stars 921 forks source link

💡 RFC: Option to skip esbuild transform #3901

Open therealparmesh opened 2 years ago

therealparmesh commented 2 years ago

Motivation

Many of us work on web apps that are deeply tied to certain transpilers - in my case it's SWC, though for a lot of folks it’s Babel. Sometimes, it may make sense to be able to only have one transpiler process JavaScript/TypeScript source files instead of having each source file pass through two transpilers.

Proposed solution

Possible solutions

A configuration option to skip the esbuild transform for source files.

Alternatives considered

Just living with two passes through each source file.

Risks, downsides, and/or tradeoffs

Yet another option, though a more advanced case that wouldn’t be invoked by accident.

Detailed design

No response

Open questions

No response

Help make it happen!