Skip to content

BREAKING: Removal of jsx pragma

Choose a tag to compare

@itsdouges itsdouges released this 04 Apr 23:05
· 1485 commits to master since this release

Jsx pragma has been removed - instead it will be activated when any @compiled/css-in-js import is found.

Before

/** @jsx jsx */
import { jsx } from '@compiled/css-in-js';

<div css={{}} />

After

import '@compiled/css-in-js';

<div css={{}} />

There is also an issue to enabled css prop with no import as a configuration option, follow along here: #102