@@ -69,7 +69,7 @@ module.exports = (env, _) => {
6969 // emulator package is consumed from source, so transpile it here.
7070 loaders . push ( {
7171 test : / \. j s x ? $ / ,
72- include : / p a c k a g e s [ / \\ ] ( e m u l a t o r | i 1 8 n ) / ,
72+ include : / p a c k a g e s [ / \\ ] ( e m u l a t o r | i 1 8 n | u i ) / ,
7373 use : babelLoader
7474 } ) ;
7575 }
@@ -98,18 +98,7 @@ module.exports = (env, _) => {
9898 resolve : {
9999 extensions : [ '.js' , '.jsx' ] ,
100100 alias : {
101- fs : false ,
102- // Force single copies of React and React Router. apps/play
103- // is on React 18 / react-router 6, but shares hoisted libs
104- // (react-redux, @lagunovsky/redux-react-router) with
105- // apps/web's React 19 / react-router 7 at the repo root.
106- // Without these aliases both versions get bundled, breaking
107- // hooks and the Router context ("useNavigate may be used
108- // only in the context of a <Router>").
109- react : path . resolve ( __dirname , 'node_modules/react' ) ,
110- 'react-dom' : path . resolve ( __dirname , 'node_modules/react-dom' ) ,
111- 'react-router' : path . resolve ( __dirname , 'node_modules/react-router' ) ,
112- 'react-router-dom' : path . resolve ( __dirname , 'node_modules/react-router-dom' )
101+ fs : false
113102 }
114103 }
115104 }
0 commit comments