Webpack code spliting with lazy loading

165 Views Asked by At

I have module system with code splitting and lazy loading and dynamic import. Every module is a git repository and they importing in shell (the shell in which the modules are displayed). I want to deploy one module changes without rebuild. Does anyone can tell me the solution?

render (
  <Router>
    <Route
      path={'/moduleA'}
      component={() => <AsyncComponent module={() => import('./moduleA')} />}
    />
    <Route
      path={'/moduleB'}
      component={() => <AsyncComponent module={() => import('./moduleB')} />}
    />
  <Router>
);

When i go to the link '/moduleA' i loading 0.bundle.js When i go to the link '/moduleB' i loading 1.bundle.js

Can i update moduleA without rebuild moduleB and shell?

0

There are 0 best solutions below