1- import * as React from 'react' ;
2- import '@compiled/react' ;
1+ import BabelComponentExtracted from '@compiled/babel-component-extracted-fixture/dist/index' ;
2+ import { css } from '@compiled/react' ;
3+ import React , { lazy } from 'react' ;
34// These are unused placeholder examples, as including them will break the application. The static evaluation in the
45// @compiled /babel-plugin must be synchronous, whereas parcel offers promise-based APIs, making them incompatible.
56// Eventually, the static evaluation (i.e. resolveBindingNode) should be replaced or removed so that these aliases
@@ -16,14 +17,14 @@ import {
1617} from './ui/custom-file-extension.customjsx' ;
1718import { TypeScript } from './ui/typescript' ;
1819
19- const AsyncComponent = React . lazy ( ( ) => import ( './async' ) ) ;
20-
20+ const AsyncComponent = lazy ( ( ) => import ( './async' ) ) ;
2121export const App = ( ) => (
2222 < >
23- < div css = { { fontSize : 50 , color : primary } } > hello from parcel 2</ div >
23+ < div css = { css ( { fontSize : 50 , color : primary } ) } > hello from parcel 2</ div >
2424 < TypeScript color = "blue" />
2525 { /*<div css={parcelAliasStyles}>custom alias</div>*/ }
2626 { /*<div css={parcelResolverAliasStyles}>custom resolver</div>*/ }
27+ < BabelComponentExtracted > Component from NPM</ BabelComponentExtracted >
2728 < CustomFileExtensionStyled > Custom File Extension Styled</ CustomFileExtensionStyled >
2829 < div css = { customFileExtensionCss } > Custom File Extension CSS</ div >
2930 < Annotated />
0 commit comments