atlassian-labs / compiled

A familiar and performant compile time CSS-in-JS library for React.
https://compiledcssinjs.com
Apache License 2.0
1.98k stars 68 forks source link

Add `babelrc: false` to all Babel calls, and set `parserBabelPlugins` to `typescript` and `jsx` by default #1680

Closed dddlr closed 2 months ago

dddlr commented 2 months ago

babelrc: false was passed to transformFromAstAsync, but not passed to parseAsync. Might as well make this consistent.

I also updated caniuse because it was giving console warnings.


Edit:

I've expanded the scope of the PR to set parserBabelPlugins to ['typescript', 'jsx'] by default as well, as several internal developers in the past ran into build issues due to not setting this config option in their codebases.

changeset-bot[bot] commented 2 months ago

🦋 Changeset detected

Latest commit: 432f0ed3d8f750ed3e0b072e6003ffb743117874

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 4 packages | Name | Type | | ---------------------------- | ----- | | @compiled/parcel-transformer | Minor | | @compiled/webpack-loader | Minor | | @compiled/utils | Patch | | @compiled/parcel-config | Patch |

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

dddlr commented 2 months ago

oops let me fix some stuff

dddlr commented 2 months ago

I've expanded the scope of the PR to set parserBabelPlugins to ['typescript', 'jsx'] by default as well, as several internal developers in the past ran into build issues due to not setting this config option in their codebases.