-
-
Notifications
You must be signed in to change notification settings - Fork 7.5k
fix: handle CSS Modules as modules #16018
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
Closed
+97
−342
Closed
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
a3c8095
fix: handle css modules as modules
privatenumber 53b20de
fix self-resolution
privatenumber dc5834f
prettier
privatenumber b914553
Merge branch 'main' into css-modules
privatenumber 4545115
Merge branch 'main' of github.com:vitejs/vite into css-modules
privatenumber cc9ab2f
test latest
privatenumber afc9bf8
test latest
privatenumber 0dad344
Merge branch 'main' of github.com:vitejs/vite into css-modules
privatenumber d170bbd
wip
privatenumber d936295
wip
privatenumber d78a93e
feat: getJSON & globalModulePaths
privatenumber 4261c58
wip
privatenumber 333d27f
support direct
privatenumber 95d1061
Merge branch 'main' into css-modules
privatenumber 7cdc30e
support direct
privatenumber 67e93c8
support direct
privatenumber ebdb38c
Merge branch 'main' of github.com:vitejs/vite into css-modules
privatenumber cdd1a7a
upgrade
privatenumber ef2e237
Merge branch 'main' into pr/privatenumber/16018
bluwy 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -25,7 +25,7 @@ SOFTWARE. | |
|
|
||
| # Licenses of bundled dependencies | ||
| The published Vite artifact additionally contains code with the following licenses: | ||
| Apache-2.0, BSD-2-Clause, CC0-1.0, ISC, MIT | ||
| Apache-2.0, BSD-2-Clause, ISC, MIT | ||
|
|
||
| # Bundled dependencies: | ||
| ## @ampproject/remapping | ||
|
|
@@ -2055,61 +2055,6 @@ Repository: https://github.com/webpack/loader-utils.git | |
|
|
||
| --------------------------------------- | ||
|
|
||
| ## lodash.camelcase | ||
| License: MIT | ||
| By: John-David Dalton, Blaine Bublitz, Mathias Bynens | ||
| Repository: lodash/lodash | ||
|
|
||
| > Copyright jQuery Foundation and other contributors <https://jquery.org/> | ||
| > | ||
| > Based on Underscore.js, copyright Jeremy Ashkenas, | ||
| > DocumentCloud and Investigative Reporters & Editors <http://underscorejs.org/> | ||
| > | ||
| > This software consists of voluntary contributions made by many | ||
| > individuals. For exact contribution history, see the revision history | ||
| > available at https://github.com/lodash/lodash | ||
| > | ||
| > The following license applies to all parts of this software except as | ||
| > documented below: | ||
| > | ||
| > ==== | ||
| > | ||
| > Permission is hereby granted, free of charge, to any person obtaining | ||
| > a copy of this software and associated documentation files (the | ||
| > "Software"), to deal in the Software without restriction, including | ||
| > without limitation the rights to use, copy, modify, merge, publish, | ||
| > distribute, sublicense, and/or sell copies of the Software, and to | ||
| > permit persons to whom the Software is furnished to do so, subject to | ||
| > the following conditions: | ||
| > | ||
| > The above copyright notice and this permission notice shall be | ||
| > included in all copies or substantial portions of the Software. | ||
| > | ||
| > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | ||
| > EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | ||
| > MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND | ||
| > NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE | ||
| > LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION | ||
| > OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION | ||
| > WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
| > | ||
| > ==== | ||
| > | ||
| > Copyright and related rights for sample code are waived via CC0. Sample | ||
| > code is defined as all source code displayed within the prose of the | ||
| > documentation. | ||
| > | ||
| > CC0: http://creativecommons.org/publicdomain/zero/1.0/ | ||
| > | ||
| > ==== | ||
| > | ||
| > Files located in the node_modules and vendor directories are externally | ||
| > maintained libraries used by this software which have their own | ||
| > licenses; we recommend you read them, as their terms may differ from the | ||
| > terms above. | ||
|
|
||
| --------------------------------------- | ||
|
|
||
| ## magic-string | ||
| License: MIT | ||
| By: Rich Harris | ||
|
|
@@ -2645,34 +2590,6 @@ Repository: postcss/postcss-load-config | |
|
|
||
| --------------------------------------- | ||
|
|
||
| ## postcss-modules | ||
| License: MIT | ||
| By: Alexander Madyankin | ||
| Repository: https://github.com/css-modules/postcss-modules.git | ||
|
|
||
| > The MIT License (MIT) | ||
| > | ||
| > Copyright 2015-present Alexander Madyankin <[email protected]> | ||
| > | ||
| > Permission is hereby granted, free of charge, to any person obtaining a copy of | ||
| > this software and associated documentation files (the "Software"), to deal in | ||
| > the Software without restriction, including without limitation the rights to | ||
| > use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of | ||
| > the Software, and to permit persons to whom the Software is furnished to do so, | ||
| > subject to the following conditions: | ||
| > | ||
| > The above copyright notice and this permission notice shall be included in all | ||
| > copies or substantial portions of the Software. | ||
| > | ||
| > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
| > IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS | ||
| > FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR | ||
| > COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER | ||
| > IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN | ||
| > CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
|
|
||
| --------------------------------------- | ||
|
|
||
| ## postcss-modules-extract-imports | ||
| License: ISC | ||
| By: Glen Maddern | ||
|
|
@@ -3107,13 +3024,6 @@ Repository: jshttp/statuses | |
|
|
||
| --------------------------------------- | ||
|
|
||
| ## string-hash | ||
| License: CC0-1.0 | ||
| By: The Dark Sky Company | ||
| Repository: git://github.com/darkskyapp/string-hash.git | ||
|
|
||
| --------------------------------------- | ||
|
|
||
| ## strip-ansi | ||
| License: MIT | ||
| By: Sindre Sorhus | ||
|
|
@@ -3420,6 +3330,35 @@ Repository: jshttp/vary | |
|
|
||
| --------------------------------------- | ||
|
|
||
| ## vite-css-modules | ||
| License: MIT | ||
| By: Hiroki Osame | ||
| Repository: privatenumber/vite-css-modules | ||
|
|
||
| > MIT License | ||
| > | ||
| > Copyright (c) Hiroki Osame <[email protected]> | ||
| > | ||
| > Permission is hereby granted, free of charge, to any person obtaining a copy | ||
| > of this software and associated documentation files (the "Software"), to deal | ||
| > in the Software without restriction, including without limitation the rights | ||
| > to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
| > copies of the Software, and to permit persons to whom the Software is | ||
| > furnished to do so, subject to the following conditions: | ||
| > | ||
| > The above copyright notice and this permission notice shall be included in all | ||
| > copies or substantial portions of the Software. | ||
| > | ||
| > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
| > IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
| > FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
| > AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
| > LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
| > OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
| > SOFTWARE. | ||
|
|
||
| --------------------------------------- | ||
|
|
||
| ## which | ||
| License: ISC | ||
| By: Isaac Z. Schlueter | ||
|
|
||
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These tests are removed because this plugin no longer handles CSS Modules.