Changelog
3.34.0 (2023-07-19)
--disable-es-transforms
for
disableESTransforms
. (<<-ArS, Alan Pierce) ([#670], [#812])SUCRASE_OPTIONS
environment variable for configuring sucrase/register
, sucrase-node
,
and any programmatic require hook usages. The value must be a valid JSON object of Sucrase
options that will be merged with the usual options. ([#813])Changelog
3.33.0 (2023-07-14)
keepUnusedImports
that disables all automatic import/export
elision, equivalent to the TypeScript option verbatimModuleSyntax
. ([#811], [#615]) (Kotaro Chikuba, Alan Pierce)await using
proposal and the updated import attributes proposal.
Both are preserved in the output code, not transformed. ([#798])export {...} from
statements. ([#806])
fn(x < y, x >= y)
was incorrectly parsed as type arguments. ([#798])enableLegacyBabel5ModuleInterop
: properly handle as default
, and properly ignore type exports. ([#804], [#807]) (三咲智子 Kevin Deng, Alan Pierce)import {}
and export {}
statements were removed with the TypeScript transform disabled. ([#810])Changelog
3.32.0 (2023-04-08)
Changelog
3.31.0 (2023-03-26)
import()
to import a plain CJS module.
For example, if foo.js
has module.exports = 1;
, then await import('foo.js')
will now evaluate to {default: 1}
rather than just 1
. Named exports behave the same as before.
This change matches the behavior of Node.js and other transpilers, so it is considered a bug fix rather than
breaking. If you relied on the old behavior, feel free to file an issue and it may be possible to roll back until the
next semver-major release. ([#789], [#790])Changelog
3.30.0 (2023-03-20)
export type *
. ([#786])const
on type parameters. ([#786])import module
. ([#785])using
. ([#785])export @foo class ...
. ([#786])<<
within a type. ([#769])Changelog
3.29.0 (2022-11-16)
satisfies
operator. ([#766])Changelog
3.27.0 (2022-09-15)
assert {type: 'json'}
in import statements. ([#746])Changelog
3.26.0 (2022-09-12)
jsxRuntime: true
and configured using the production
and jsxImportSource
configs. ([#738], [#739], [#742], [#740])