vanilla-extract
vanilla-extract copied to clipboard
babel plugin add packageIdentifiers config
https://github.com/seek-oss/vanilla-extract/blob/b221532b1e4f5be146a45403ece0e29ebcdf2cf3/packages/babel-plugin/src/index.ts#L236
I'm trying to import style/globalStyle
from my custom package, it works in webpack plugin, but babel plugin won't work because it defines packageIdentifiers
locally in plugin code.
// my-app
export { style, globalStyle } from '@vanilla-extract/css';
// index.css.ts
import { style, globalStyle } from 'my-app';
// babel.config.js
{
plugins: [
['@vanilla-extract/babel-plugin', {
packageIdentifiers: ['my-app']
}]
]
}