Skip to content

Commit 6c8ef19

Browse files
authored
allow passing @stylexjs/babel-plugin aliases through react-strict-dom/babel-preset
Until facebook/stylex#856 is merged and released, this is kind of the only option to be able to write imports like defined in a tsconfig file.
1 parent 53f37f1 commit 6c8ef19

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/react-strict-dom/babel/preset.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ function reactStrictPreset(_, options = {}) {
2828
styleXPlugin,
2929
{
3030
dev: opts.dev,
31+
aliases: opts.aliases,
3132
importSources: [{ from: 'react-strict-dom', as: 'css' }],
3233
runtimeInjection: false,
3334
styleResolution: 'property-specificity',

0 commit comments

Comments
 (0)