sucrase icon indicating copy to clipboard operation
sucrase copied to clipboard

Super-fast alternative to Babel for when you can target modern JS runtimes

Results 90 sucrase issues
Sort by recently updated
recently updated
newest added

In my ./src directory I have .hbs files. When I run the build scripts, sucrase does not copy .hbs files to the ./dist directory. My script to build: "scripts": {...

Are you planning on adding column information to source map `mappings`? Some context: I'm using sucrase in a rollup build in a chain of rollup plugins. When building the final...

Now that React Refresh is out for a while as a true replacement for React Hot Loader, is there any plans for Sucrase to implement the needed transformation for it?

Class fields are currently compiled using assignment: This: ``` class Foo { x = 'foo'; } ``` Becomes ```js class Foo { constructor() { this.x = 'foo'; } } ```...

See discussion here: https://github.com/alangpierce/sucrase/pull/200#issuecomment-568446499 Currently, it's not mentioned in the README, partly because I'm hesitant to encourage it, but it at least deserves a mention.

Feeding the following snippet to sucrase chokes on the character immediately after `>=` consistently, but only when seen in a `namespace { ...}` block: ``` function noProblemo() { if (10...

https://pax.js.org/ seems like it could be a nice addition to Sucrase: both are for development use, both are focused on compilation speed. It is unmaintained, however (author even deleted the...

Hello, In the project I am using sucrase we have very strict eslint rules which, you guessed it, strongly disagree with the sucrase output. So I want to disable eslint...

I've had a few requests from others about how they can help out. I've been keeping a checklist of possible future tasks, and figured it would be good to make...

https://github.com/alangpierce/sucrase/blob/15debf701596bd2a1d7564d8f1e147da357dfb56/src/transformers/RootTransformer.ts#L188-L191 Could we make those optional? There is partial implementation in V8 behind a flag. Thanks 👍