- Notifications
You must be signed in to change notification settings - Fork 1.2k
[Strapi 5] Breaking change for the removed webpack aliases #2047
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
9 commits Select commit Hold shift + click to select a range
00805a7 Created the webpack-aliases-removed.md file
MbonuJennifer 8914a05 Update TOC to include new webpack-aliases-removed.md file and custom …
MbonuJennifer 2f6d748 Update breaking-changes.md file with link to webpack-aliases-removed
MbonuJennifer 01db316 Updated the webpack-aliases-removed.md file
MbonuJennifer f2d7bd7 Updated the sidebar with the correct loction for the webpack alias file
MbonuJennifer a1a9d30 Updated the breaking changes file changed Strapi v5 to Strapi 5
MbonuJennifer 2337dfa Updated the Webpack aliases are removed file with webpack tag
MbonuJennifer 3607cb9 Fixed grammar in the Webpack aliases are removed file
MbonuJennifer 3db5ba7 Updated the webpack-aliases-removed.md file
MbonuJennifer File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
61 changes: 61 additions & 0 deletions 61 ...us/docs/dev-docs/migration/v4-to-v5/breaking-changes/webpack-aliases-removed.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,61 @@ | ||
| --- | ||
| title: Webpack Aliases are removed | ||
| description: A simplified approach of aliasing in Strapi v5. | ||
| sidebar_label: Webpack Aliases removed | ||
| displayed_sidebar: devDocsMigrationV5Sidebar | ||
| tags: | ||
| - breaking changes | ||
| - dependencies | ||
| - webpack | ||
| --- | ||
| | ||
| import Intro from '/docs/snippets/breaking-change-page-intro.md' | ||
| import MigrationIntro from '/docs/snippets/breaking-change-page-migration-intro.md' | ||
| | ||
| # Webpack Aliases are removed | ||
| | ||
| In Strapi v5, webpack aliases are removed ensuring better compatibility and reduced dependency conflicts. | ||
| | ||
| <Intro /> | ||
| | ||
| ## Breaking change description | ||
| | ||
| <SideBySideContainer> | ||
| | ||
| <SideBySideColumn> | ||
| | ||
| **In Strapi v4** | ||
| | ||
| - We maintained a specific list of dependencies that were aliased in webpack configuration. This ensured that plugins consistently used our versions of certain libraries like the design-system. | ||
| | ||
| </SideBySideColumn> | ||
| | ||
| <SideBySideColumn> | ||
| | ||
| **In Strapi 5** | ||
| | ||
| - In Strapi v5, we have simplified the aliasing process. Now, we only alias essential dependencies like `react`, `react-dom`, `react-router-dom`, and `styled-components`. | ||
| | ||
| </SideBySideColumn> | ||
| | ||
| </SideBySideContainer> | ||
| | ||
| ## Migration | ||
| | ||
| <MigrationIntro /> | ||
| | ||
| ### Notes | ||
| | ||
| - If you encounter issues with third-party plugins, we recommend opening an issue on the respective plugin's repository. Encourage the plugin maintainers to add their dependencies to their `package.json` file to resolve compatibility issues. | ||
| | ||
| - If you encounter issues with local plugins, you can fix them by amending the `resolve` option in your chosen bundler. | ||
| | ||
| | ||
| ### Manual procedure | ||
MbonuJennifer marked this conversation as resolved. Show resolved Hide resolved | ||
| | ||
| To migrate to Strapi 5: | ||
| | ||
| - Identify any configuration files (e.g., webpack configuration) that referenced the now-removed Webpack aliases in Strapi v4. | ||
| - Ensure that any references to Webpack aliases in the code are replaced with appropriate imports or paths. | ||
| - If third-party plugins are used in the project, verify that they do not rely on Webpack aliases that are no longer present in Strapi v5. | ||
| - If necessary, communicate with the plugin authors to update their dependencies or configurations accordingly. | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit. This suggestion is invalid because no changes were made to the code. Suggestions cannot be applied while the pull request is closed. Suggestions cannot be applied while viewing a subset of changes. Only one suggestion per line can be applied in a batch. Add this suggestion to a batch that can be applied as a single commit. Applying suggestions on deleted lines is not supported. You must change the existing code in this line in order to create a valid suggestion. Outdated suggestions cannot be applied. This suggestion has been applied or marked resolved. Suggestions cannot be applied from pending reviews. Suggestions cannot be applied on multi-line comments. Suggestions cannot be applied while the pull request is queued to merge. Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.