-
-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Resolve @import in core
#14446
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
Resolve @import in core
#14446
Changes from 1 commit
Commits
Show all changes
51 commits
Select commit
Hold shift + click to select a range
d0ade6f
Add `@import` resolver
philipp-spiess e5768a1
Add bench
philipp-spiess fa14f54
Parse @import params
philipp-spiess 911f2f0
wip
philipp-spiess e3b067d
Make tests pass again
philipp-spiess 89f9db6
Add context node to AST
philipp-spiess 3f065c1
Make resolvers return a new base
philipp-spiess ed5070e
Handle relative paths in imported files
philipp-spiess 75e888b
Reanem API to loadModule/loadStylesheet
philipp-spiess 9853d47
Fix config resolver to keep track of proper bases
philipp-spiess fa4b781
Fix css function tests
philipp-spiess bd605bb
Fix tailwindcss/src/index.test.ts tests
philipp-spiess 0d0c0e6
Fix compat/config.test.ts
philipp-spiess 51f7c55
Fix screens-config.test.ts
philipp-spiess 45e7db3
Work around plugin-api.test.ts changes for now
philipp-spiess 0c4de34
Fix node API by using require.resolve over path.resolve, whoops/
philipp-spiess 615cc99
Fix @tailwindcss/postcss
philipp-spiess 58657bf
Update @tailwindcss/vite
philipp-spiess 87c0bed
Update @tailwindcss/cli
philipp-spiess 3d563c6
Fix linter issues
philipp-spiess d57dcf3
Remove accidentially commited file
philipp-spiess d8f5b0a
Use async resolver APIs to avoid blocking core
philipp-spiess 71df1a7
Remove @tailwindcss/internal-postcss-fix-relative-paths
philipp-spiess cff95a7
Fix type error in plugin-api tests
philipp-spiess edb1d47
Fix TypeScript issues
philipp-spiess a11cd80
Cleanup @import resolver
philipp-spiess 4d60a61
Fix context node issue
philipp-spiess 8cc9143
Avoid second walk when resolving `@import`
philipp-spiess 2529aa9
Don't check for `@import` before doing the `@import` walk
philipp-spiess 224ea66
Remove leftover export
philipp-spiess 8124823
Make context nodes transparent in walks
philipp-spiess fba81c2
Remove leftover context node in buildImportNodes
philipp-spiess a7d98ad
Add \`resourceHint\` to loadModule callback
philipp-spiess 31ff3eb
Revert screwup
philipp-spiess 8ffad46
Handle recursion
philipp-spiess b8fbe56
Improve spec compliance
philipp-spiess 026c30c
Add a test case for imports starting with `/`.
philipp-spiess 19ab40d
Move noramlizePath into node lib
philipp-spiess c733587
revert change in postcss fixture
philipp-spiess 03a3bbc
Move `base` into compiler options
philipp-spiess 2d541e9
Update all plugin-api tests to use `loadModule`
thecrypticace b59ccc9
Remove .only
philipp-spiess 0dd3a38
Add changelog entry
philipp-spiess b06d194
Add comment regarding recursion
philipp-spiess 69f4ffc
Gate out http/https resources
philipp-spiess ecdf002
Make `@import url(...)` pass-through
philipp-spiess 0763a25
Clean up tests
philipp-spiess e6ee1dc
Change context type
philipp-spiess 2174a5a
Remove `//`
philipp-spiess 8afbcdc
Avoid two-pass resolution for some cases
philipp-spiess 9dd29d0
Don't use regex for case-insensitive string comparisons
philipp-spiess 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
Fix node API by using require.resolve over path.resolve, whoops/
- Loading branch information
commit 0c4de34009f852ee784f9e3bfa7cd5dd121891da
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
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
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
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
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
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.