Closed JSerFeng closed 1 year ago
Latest commit: 79c9ceff3686925674cc08d9995dfbdd13ca641b
The changes in this PR will be included in the next version bump.
Not sure what this means? Click here to learn what changesets are.
Click here if you're a maintainer who wants to add another changeset to this PR
fix: lockCorejsVersion
lockCorejsVersion can transform 'core-js/path/to' to 'foo/bar/core-js/path/to'
Before lockCorejsVersion detect if import path is starts with 'core-js', now it detect if it starts with 'core-js/', to avoid detect 'core-js-pure'.
fix: use js syntax to transform js module
As modern-js binding only passed config once, so during loader transform, js files are transformed using the same config, and the syntax is
TS
syntax, at most cases this is fine, but if usingTS
syntax, SWC cannot transform new decorator proposal correctly, so I did a hack here, to check if file name ends with JS like, Rust side will change the syntax accordingly