fix: align amd option behavior with webpack#9011
Merged
ahabhgk merged 9 commits intoweb-infra-dev:mainfrom Jan 20, 2025
Merged
Conversation
✅ Deploy Preview for rspack ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify site configuration. |
nilptr
commented
Jan 14, 2025
CodSpeed Performance ReportMerging #9011 will not alter performanceComparing 🎉 Hooray!
|
amd option behavior with webpack and add doc for amd optionamd option behavior with webpack
amd option behavior with webpackamd option behavior with webpack
415b69c to
a13a6da
Compare
nilptr
commented
Jan 16, 2025
a13a6da to
c0460c7
Compare
chore(normal/parsing/unsupport-require-property): require.amd should not be undefined now chore(normal/parsing/unsupport-require-property): require.version & require.onError to be discussed
c0460c7 to
7431665
Compare
amd option behavior with webpackamd option behavior with webpack
ahabhgk
reviewed
Jan 20, 2025
c3ba48b to
7431665
Compare
chore: add more test cases for amd require
7431665 to
e93a722
Compare
2 tasks
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
closes #8987
amdoption behavior with webpackamd plugins should be applied unless
amdoption is set tofalseamdoptionother fixes:
require(["deps"])4ec6bfcdefine/define()/typeof defineprocessing should be skipped if the module is esm 7954d46byDependency.amdtogetResolveDefaults. Otherwise, amddefine/requirecannot resolve modules without extensions b61a6f1Checklist