Releases: atlassian-labs/compiled
Releases · atlassian-labs/compiled
@compiled/webpack-loader@0.19.2
@compiled/parcel-transformer@0.18.3
@compiled/babel-plugin@0.35.0
Minor Changes
-
34e5339: Fix
@compiled/babel-plugin
to not requirecssMap()
to be called prior to use.Example, this failed before for no reason other than the fact that our
state.cssMap
was generated afterJSXElement
andJSXOpeningElement
were ran.import { cssMap } from '@compiled/react'; export default () => <div css={styles.root} />; const styles = cssMap({ root: { padding: 8 } });
-
34e5339: Throw an error when compiling a
cssMap
object where we expect acss
or nestedcssMap
object.Example of code that silently fails today, using
styles
directly:import { cssMap } from '@compiled/react'; const styles = cssMap({ root: { padding: 8 } }); export default () => <div css={styles} />;
What we expect to see instead, using
styles.root
instead:import { cssMap } from '@compiled/react'; const styles = cssMap({ root: { padding: 8 } }); export default () => <div css={styles.root} />;
@compiled/eslint-plugin@0.19.0
@compiled/webpack-loader@0.19.1
Patch Changes
- Updated dependencies [0ebbfc1]
- @compiled/babel-plugin@0.34.0
@compiled/parcel-transformer@0.18.2
Patch Changes
- Updated dependencies [0ebbfc1]
- @compiled/babel-plugin@0.34.0
@compiled/babel-plugin@0.34.0
Minor Changes
- 0ebbfc1: Fix supporting ternaries referencing cssMap style objects when extracting styles.
@compiled/eslint-plugin@0.18.2
Patch Changes
- a90961b: Fix shorthand-property-sorting crashing when variable in css prop is not initialised
@compiled/utils@0.13.2
Patch Changes
- 6fb2894: Fix border-inline-start and border-inline-end not having any valid ordering in the shorthand-property-sorting ESLint rule