Skip to content

Releases: atlassian-labs/compiled

@compiled/[email protected]

30 Sep 01:11
c3c5660
Compare
Choose a tag to compare

Minor Changes

  • 9a15e74: Sort shorthand properties so that they come before longhand properties.

    When using Compiled, one of the following will happen:

    Option 1. If stylesheet extraction is turned off ("runtime mode"): shorthand properties will be sorted before longhand properties, as long as they are not in a pseudo-selector like :hover or :active. This is enabled by default and cannot be turned off.

    Option 2. If stylesheet extraction is turned on and one of the below is true:

    • You are using Webpack
    • You are using Parcel AND you are running in production mode

    ... shorthand properties will only be sorted if sortShorthand: true is passed to CompiledExtractPlugin (Webpack), or sortShorthand: true is passed to your Compiled config file like .compiledcssrc (Parcel). When sorting shorthand properties using this method (option 2), shorthand properties will always be sorted before longhand properties, taking precedence over pseudo-selectors like :hover or :active.

Patch Changes

@compiled/[email protected]

30 Sep 01:11
c3c5660
Compare
Choose a tag to compare

Patch Changes

@compiled/[email protected]

30 Sep 01:11
c3c5660
Compare
Choose a tag to compare

Patch Changes

@compiled/[email protected]

30 Sep 01:11
c3c5660
Compare
Choose a tag to compare

Minor Changes

  • 9a15e74: Sort shorthand properties so that they come before longhand properties.

    When using Compiled, one of the following will happen:

    Option 1. If stylesheet extraction is turned off ("runtime mode"): shorthand properties will be sorted before longhand properties, as long as they are not in a pseudo-selector like :hover or :active. This is enabled by default and cannot be turned off.

    Option 2. If stylesheet extraction is turned on and one of the below is true:

    • You are using Webpack
    • You are using Parcel AND you are running in production mode

    ... shorthand properties will only be sorted if sortShorthand: true is passed to CompiledExtractPlugin (Webpack), or sortShorthand: true is passed to your Compiled config file like .compiledcssrc (Parcel). When sorting shorthand properties using this method (option 2), shorthand properties will always be sorted before longhand properties, taking precedence over pseudo-selectors like :hover or :active.

Patch Changes

@compiled/[email protected]

12 Sep 06:20
e53d9db
Compare
Choose a tag to compare

Minor Changes

  • 83c721d: Modify the early-exit on our Webpack loader to work with options.importSources to properly transform other Compiled aliases.

Patch Changes

@compiled/[email protected]

12 Sep 06:20
e53d9db
Compare
Choose a tag to compare

Patch Changes

@compiled/[email protected]

12 Sep 06:20
e53d9db
Compare
Choose a tag to compare

Minor Changes

  • 83c721d: Allow an import of jsx from our internal @atlaskit/css package for babel plugin pragma resolutions.

@compiled/[email protected]

11 Sep 02:40
c963314
Compare
Choose a tag to compare

Patch Changes

  • 8f3149f: When parsing the Webpack config rules option, also handle the situation where a rule might be falsy (null, undefined, 0, "")

@compiled/[email protected]

11 Sep 02:40
c963314
Compare
Choose a tag to compare

Minor Changes

  • dbb7ba4: Update @compiled/jsx-pragma to properly support options.importSources for pragmas, eg. using a wrapper around '@compiled/react' to distribute a typed variant.

@compiled/[email protected]

22 Jul 01:31
6ddeee2
Compare
Choose a tag to compare

Patch Changes

  • 25a4bed: Fix the cx() function's class collection at runtime as it generated class instances rather than strings