Skip to content

Commit

Permalink
chore: update react >= 18
Browse files Browse the repository at this point in the history
  • Loading branch information
vctqs1 committed Feb 14, 2025
1 parent 8b45cd8 commit 7f69be0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/makeWebpackConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ module.exports = async (playroomConfig, options) => {
}
);
const { version } = JSON.parse(pkgContents);
isLegacyReact = !(version.startsWith('18') || version.startsWith('0.0.0'));
const majorVersion = Number(version.split('.')[0]);
isLegacyReact = !(majorVersion >= 18 || version.startsWith('0.0.0'));
} catch (e) {
throw new Error('Unable to read `react-dom` package json');
}
Expand Down

0 comments on commit 7f69be0

Please sign in to comment.