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
bug #453 [BC Break] Fixing a bug where the entrypoint path opening slash was stripped (weaverryan)
This PR was merged into the master branch.
Discussion
----------
[BC Break] Fixing a bug where the entrypoint path opening slash was stripped
Fixes#452
When `entrypoints.json` was originally designed, the values were made so that they matched the *keys* of `manifest.json` - the idea was that you would use both to get the final path. But later (before 0.21.0 releaser), we/I changed `entrypoints.json` so that the value is the final path - to avoid needing to do another lookup in `manifest.json`.
However, there was one piece that I missed when changing this: the opening `/` is currently being stripped off the values in `entrypoints.json`. This breaks subdirectory installs (see #452).
For most Symfony users, you won't notice this change.
**Current behavior**: The value is read from `entrypoints.json` (`build/foo.js`), then it is also found in `manifest.json` (via the `json_manifest_strategy`) and becomes `/build/foo.js`.
**New behavior**: The value is read from `entrypoints.json` (`/build/foo.js`) and that's it.
In both cases, the final value that enters into "Symfony" is `/build/foo.js`. But, for anyone not using the standard Symfony setup, this is a behavior change, as the values from `entrypoints.json` ARE changing.
Commits
-------
6190551 Fixing a bug where the entrypoint path opening slash was stripped
0 commit comments