File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
packages/plugin-reanimated/src Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -83,12 +83,17 @@ export function pitch(
8383 _previousRequest : string ,
8484 data : ReanimatedLoaderData
8585) {
86+ const logger = this . getLogger ( 'RepackReanimatedLoader' ) ;
8687 for ( const loader of this . loaders ) {
8788 // if the babel-swc-loader is found, we skip the reanimated-loader
8889 // since babel-swc-loader is more performant and uses the official
8990 // babel plugin directly
9091 if ( loader . path === babelSwcLoader ) {
9192 data . skip = true ;
93+ logger . warn (
94+ 'This plugin should not be used with `@callstack/repack/babel-swc-loader`. ' +
95+ 'Instead, add the `react-native-reanimated/plugin` (or `react-native-worklets/plugin`) directly to your `babel.config.js` file in the project root.'
96+ ) ;
9297 }
9398 }
9499}
You can’t perform that action at this time.
0 commit comments