@vanilla-extract/vite-plugin 4.0.5 → 4.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -28,7 +28,8 @@ function vanillaExtractPlugin({
|
|
|
28
28
|
let resolvedId = filePath;
|
|
29
29
|
if (filePath.startsWith(config.root) ||
|
|
30
30
|
// In monorepos the absolute path will be outside of config.root, so we check that they have the same root on the file system
|
|
31
|
-
|
|
31
|
+
// Paths from vite are always normalized, so we have to use the posix path separator
|
|
32
|
+
path__default["default"].isAbsolute(filePath) && filePath.split(path__default["default"].posix.sep)[1] === config.root.split(path__default["default"].posix.sep)[1]) {
|
|
32
33
|
resolvedId = filePath;
|
|
33
34
|
} else {
|
|
34
35
|
// In SSR mode we can have paths like /app/styles.css.ts
|
|
@@ -28,7 +28,8 @@ function vanillaExtractPlugin({
|
|
|
28
28
|
let resolvedId = filePath;
|
|
29
29
|
if (filePath.startsWith(config.root) ||
|
|
30
30
|
// In monorepos the absolute path will be outside of config.root, so we check that they have the same root on the file system
|
|
31
|
-
|
|
31
|
+
// Paths from vite are always normalized, so we have to use the posix path separator
|
|
32
|
+
path__default["default"].isAbsolute(filePath) && filePath.split(path__default["default"].posix.sep)[1] === config.root.split(path__default["default"].posix.sep)[1]) {
|
|
32
33
|
resolvedId = filePath;
|
|
33
34
|
} else {
|
|
34
35
|
// In SSR mode we can have paths like /app/styles.css.ts
|
|
@@ -20,7 +20,8 @@ function vanillaExtractPlugin({
|
|
|
20
20
|
let resolvedId = filePath;
|
|
21
21
|
if (filePath.startsWith(config.root) ||
|
|
22
22
|
// In monorepos the absolute path will be outside of config.root, so we check that they have the same root on the file system
|
|
23
|
-
|
|
23
|
+
// Paths from vite are always normalized, so we have to use the posix path separator
|
|
24
|
+
path.isAbsolute(filePath) && filePath.split(path.posix.sep)[1] === config.root.split(path.posix.sep)[1]) {
|
|
24
25
|
resolvedId = filePath;
|
|
25
26
|
} else {
|
|
26
27
|
// In SSR mode we can have paths like /app/styles.css.ts
|
package/package.json
CHANGED