-
Notifications
You must be signed in to change notification settings - Fork 297
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
webpack/next: Fix webpack template strings by using a modified regex …
…from the webpack source (#1333)
- Loading branch information
Showing
8 changed files
with
26 additions
and
1 deletion.
There are no files selected for viewing
This file contains 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,11 @@ | ||
--- | ||
'@vanilla-extract/webpack-plugin': patch | ||
'@vanilla-extract/next-plugin': patch | ||
--- | ||
|
||
Use a more accurate regex for detecting [webpack template strings] in paths | ||
|
||
We now use a modified version of the regex from the webpack source code to detect template strings in paths. | ||
As long as the path isn't already escaped, we should detect it. | ||
|
||
[webpack template strings]: https://webpack.js.org/configuration/output/#template-strings |
This file contains 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,3 @@ | ||
import { style } from '@vanilla-extract/css'; | ||
|
||
export const withHyphen = style({ color: 'indigo' }); |
This file contains 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 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
Binary file modified
BIN
+2.18 KB
(120%)
tests/e2e/snapshots/template-string-paths-Desktop---Chromium-darwin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+2.24 KB
(120%)
tests/e2e/snapshots/template-string-paths-Mobile---Chromium-darwin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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 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 |
---|---|---|
|
@@ -13,3 +13,6 @@ | |
._1kvknas0 { | ||
color: orchid; | ||
} | ||
._1e83mlh0 { | ||
color: indigo; | ||
} |