Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: create same hashes on server and client
we saw a behaviour with dynamic imports for SSR, when the import was directly referenced, e.g. with `import(./foo')` instead of `import('./')` webpack would with create different filehashes in the moduleMap when the option `usedExports` is enabled. filenames before hashing in webpack with `usedExports` followed the pattern: `filename.js|abc` filenames without `usedExports` are simply the filename: `filename.js` they are then hashed in webpacks `HashedModuleIdsPlugin.js` with different results, leading to an incomplete modulesMap Co-authored-by: Jonas Holland <jonas.holland@new-work.se>
- Loading branch information