You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using code splitting, webpack creates assets (*.chunk.[hash].js, etc), which are not picked up as component artifacts.
Then when loading the preview, the browser tries to load these chunks and fails with 404.
separate each chunk to output in its own folder (via the output.path option, or the output.filename option with a template string like "[name]/...". Note that we'd might also have to fill the other filename options too)
load all files from the folder as artifcats
somehow separate them when loading component preview (we only want the entry assets)
The text was updated successfully, but these errors were encountered:
When using code splitting, webpack creates assets (
*.chunk.[hash].js
, etc), which are not picked up as component artifacts.Then when loading the preview, the browser tries to load these chunks and fails with 404.
For example:
https://jw02b1z.scopes.teambit.cloud/api/teambit.react/react/~aspect/env-template/compositions/#teambit.community/apps/[email protected]?preview=compositions&BitDevBasic
by @GiladShoham, this is happening because we take a partial list from the Webpack "stats" output, as seen here:
bit/scopes/webpack/webpack/webpack.bundler.ts
Line 60 in d2b0ed7
We need to:
The text was updated successfully, but these errors were encountered: