@vanilla-extract/vite-plugin 5.2.2-tsconfig-paths-windows-fix-20260322081128 → 5.2.2
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.
|
@@ -44,17 +44,15 @@ function vanillaExtractPlugin({
|
|
|
44
44
|
const transformedModules = new Set();
|
|
45
45
|
const getIdentOption = () => identifiers ?? (config.mode === 'production' ? 'short' : 'debug');
|
|
46
46
|
const getAbsoluteId = filePath => {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
const normalizedFilePath = integration.normalizePath(filePath);
|
|
50
|
-
let resolvedId = normalizedFilePath;
|
|
51
|
-
if (normalizedFilePath.startsWith(config.root) ||
|
|
47
|
+
let resolvedId = filePath;
|
|
48
|
+
if (filePath.startsWith(config.root) ||
|
|
52
49
|
// In monorepos the absolute path will be outside of config.root, so we check that they have the same root on the file system
|
|
53
|
-
|
|
54
|
-
|
|
50
|
+
// Paths from vite are always normalized, so we have to use the posix path separator
|
|
51
|
+
path__default["default"].isAbsolute(filePath) && filePath.split(path__default["default"].posix.sep)[1] === config.root.split(path__default["default"].posix.sep)[1]) {
|
|
52
|
+
resolvedId = filePath;
|
|
55
53
|
} else {
|
|
56
54
|
// In SSR mode we can have paths like /app/styles.css.ts
|
|
57
|
-
resolvedId = path__default["default"].join(config.root,
|
|
55
|
+
resolvedId = path__default["default"].join(config.root, filePath);
|
|
58
56
|
}
|
|
59
57
|
return integration.normalizePath(resolvedId);
|
|
60
58
|
};
|
|
@@ -44,17 +44,15 @@ function vanillaExtractPlugin({
|
|
|
44
44
|
const transformedModules = new Set();
|
|
45
45
|
const getIdentOption = () => identifiers ?? (config.mode === 'production' ? 'short' : 'debug');
|
|
46
46
|
const getAbsoluteId = filePath => {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
const normalizedFilePath = integration.normalizePath(filePath);
|
|
50
|
-
let resolvedId = normalizedFilePath;
|
|
51
|
-
if (normalizedFilePath.startsWith(config.root) ||
|
|
47
|
+
let resolvedId = filePath;
|
|
48
|
+
if (filePath.startsWith(config.root) ||
|
|
52
49
|
// In monorepos the absolute path will be outside of config.root, so we check that they have the same root on the file system
|
|
53
|
-
|
|
54
|
-
|
|
50
|
+
// Paths from vite are always normalized, so we have to use the posix path separator
|
|
51
|
+
path__default["default"].isAbsolute(filePath) && filePath.split(path__default["default"].posix.sep)[1] === config.root.split(path__default["default"].posix.sep)[1]) {
|
|
52
|
+
resolvedId = filePath;
|
|
55
53
|
} else {
|
|
56
54
|
// In SSR mode we can have paths like /app/styles.css.ts
|
|
57
|
-
resolvedId = path__default["default"].join(config.root,
|
|
55
|
+
resolvedId = path__default["default"].join(config.root, filePath);
|
|
58
56
|
}
|
|
59
57
|
return integration.normalizePath(resolvedId);
|
|
60
58
|
};
|
|
@@ -36,17 +36,15 @@ function vanillaExtractPlugin({
|
|
|
36
36
|
const transformedModules = new Set();
|
|
37
37
|
const getIdentOption = () => identifiers ?? (config.mode === 'production' ? 'short' : 'debug');
|
|
38
38
|
const getAbsoluteId = filePath => {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
const normalizedFilePath = normalizePath(filePath);
|
|
42
|
-
let resolvedId = normalizedFilePath;
|
|
43
|
-
if (normalizedFilePath.startsWith(config.root) ||
|
|
39
|
+
let resolvedId = filePath;
|
|
40
|
+
if (filePath.startsWith(config.root) ||
|
|
44
41
|
// In monorepos the absolute path will be outside of config.root, so we check that they have the same root on the file system
|
|
45
|
-
|
|
46
|
-
|
|
42
|
+
// Paths from vite are always normalized, so we have to use the posix path separator
|
|
43
|
+
path.isAbsolute(filePath) && filePath.split(path.posix.sep)[1] === config.root.split(path.posix.sep)[1]) {
|
|
44
|
+
resolvedId = filePath;
|
|
47
45
|
} else {
|
|
48
46
|
// In SSR mode we can have paths like /app/styles.css.ts
|
|
49
|
-
resolvedId = path.join(config.root,
|
|
47
|
+
resolvedId = path.join(config.root, filePath);
|
|
50
48
|
}
|
|
51
49
|
return normalizePath(resolvedId);
|
|
52
50
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vanilla-extract/vite-plugin",
|
|
3
|
-
"version": "5.2.2
|
|
3
|
+
"version": "5.2.2",
|
|
4
4
|
"description": "Zero-runtime Stylesheets-in-TypeScript",
|
|
5
5
|
"main": "dist/vanilla-extract-vite-plugin.cjs.js",
|
|
6
6
|
"module": "dist/vanilla-extract-vite-plugin.esm.js",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"author": "SEEK",
|
|
17
17
|
"license": "MIT",
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@vanilla-extract/compiler": "^0.
|
|
19
|
+
"@vanilla-extract/compiler": "^0.7.0",
|
|
20
20
|
"@vanilla-extract/integration": "^8.0.9"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|