Skip to content

Commit

Permalink
Merge pull request #39 from SubstraFoundation/simpler_chunk_name
Browse files Browse the repository at this point in the history
Simpler chunk name
  • Loading branch information
GuillaumeCisco authored Jan 30, 2020
2 parents 4b14cc0 + 491f8fc commit 5ba6567
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/business/common/routes/web.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class UniversalRoute extends Component {
const U = universal(import(`../../routes/${model}/preload/index`), {
loading: <PulseLoader />,
ignoreBabelRename: true,
chunkName: () => `routes/${model}/preload/index`.replace(/(?<=\/.*)\//g, '-'),
chunkName: () => `routes/${model}-preload-index`,
onLoad: (module, info, {reduxcontext}) => {
if (reduxcontext && reduxcontext.store) {
injectSaga(model, module.sagas, false, reduxcontext.store);
Expand Down

0 comments on commit 5ba6567

Please sign in to comment.