File tree Expand file tree Collapse file tree 3 files changed +8
-1
lines changed
.changeset/early-flies-ring Expand file tree Collapse file tree 3 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 1+ { "releases" : [{ "name" : " extract-react-types-loader" , "type" : " patch" }], "dependents" : [] }
Original file line number Diff line number Diff line change 1+ Don't pull types from src if types file exits
Original file line number Diff line number Diff line change @@ -47,7 +47,12 @@ module.exports = function extractReactTypesLoader(content /* : string */) {
4747
4848 const resolveOpts = {
4949 pathFilter : ( pkg , location , dist ) => {
50- if ( pkg [ 'atlaskit:src' ] && location . includes ( 'node_modules' ) && location . includes ( pkg . main ) ) {
50+ if (
51+ ! pkg . types &&
52+ pkg [ 'atlaskit:src' ] &&
53+ location . includes ( 'node_modules' ) &&
54+ location . includes ( pkg . main )
55+ ) {
5156 return location . replace ( dist , pkg [ 'atlaskit:src' ] ) ;
5257 }
5358 return null ;
You can’t perform that action at this time.
0 commit comments