@nx/vite 22.4.3 → 22.4.4
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.
- package/README.md +3 -3
- package/package.json +5 -5
- package/src/plugins/plugin.js +12 -0
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<p style="text-align: center;">
|
|
2
2
|
<picture>
|
|
3
3
|
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/nrwl/nx/master/images/nx-dark.svg">
|
|
4
|
-
<img alt="Nx - Smart
|
|
4
|
+
<img alt="Nx - Smart Monorepos · Fast Builds" src="https://raw.githubusercontent.com/nrwl/nx/master/images/nx-light.svg" width="100%">
|
|
5
5
|
</picture>
|
|
6
6
|
</p>
|
|
7
7
|
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
|
|
21
21
|
<hr>
|
|
22
22
|
|
|
23
|
-
# Nx: Smart
|
|
23
|
+
# Nx: Smart Monorepos · Fast Builds
|
|
24
24
|
|
|
25
25
|
Get to green PRs in half the time. Nx optimizes your builds, scales your CI, and fixes failed PRs. Built for developers and AI agents.
|
|
26
26
|
|
|
@@ -64,5 +64,5 @@ npx nx@latest init
|
|
|
64
64
|
- [Blog Posts About Nx](https://nx.dev/blog)
|
|
65
65
|
|
|
66
66
|
<p style="text-align: center;"><a href="https://nx.dev/#learning-materials" target="_blank" rel="noreferrer"><img src="https://raw.githubusercontent.com/nrwl/nx/master/images/nx-courses-and-videos.svg"
|
|
67
|
-
width="100%" alt="Nx - Smart
|
|
67
|
+
width="100%" alt="Nx - Smart Monorepos · Fast Builds"></a></p>
|
|
68
68
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/vite",
|
|
3
|
-
"version": "22.4.
|
|
3
|
+
"version": "22.4.4",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "The Nx Plugin for building and testing applications using Vite",
|
|
6
6
|
"repository": {
|
|
@@ -30,11 +30,11 @@
|
|
|
30
30
|
"migrations": "./migrations.json"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@nx/devkit": "22.4.
|
|
33
|
+
"@nx/devkit": "22.4.4",
|
|
34
34
|
"@phenomnomnominal/tsquery": "~6.1.4",
|
|
35
35
|
"enquirer": "~2.3.6",
|
|
36
|
-
"@nx/js": "22.4.
|
|
37
|
-
"@nx/vitest": "22.4.
|
|
36
|
+
"@nx/js": "22.4.4",
|
|
37
|
+
"@nx/vitest": "22.4.4",
|
|
38
38
|
"picomatch": "4.0.2",
|
|
39
39
|
"tsconfig-paths": "^4.1.2",
|
|
40
40
|
"semver": "^7.6.3",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"ajv": "^8.0.0"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"nx": "22.4.
|
|
45
|
+
"nx": "22.4.4"
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|
|
48
48
|
"vite": "^5.0.0 || ^6.0.0 || ^7.0.0",
|
package/src/plugins/plugin.js
CHANGED
|
@@ -117,6 +117,18 @@ async function buildViteTargets(configFilePath, projectRoot, options, tsConfigFi
|
|
|
117
117
|
catch {
|
|
118
118
|
// Plugin not installed or not needed, ignore
|
|
119
119
|
}
|
|
120
|
+
// Workaround for race condition with vitest/node on Node 24+
|
|
121
|
+
// When multiple vitest.config files are processed in parallel, Node can throw:
|
|
122
|
+
// Error [ERR_INTERNAL_ASSERTION]: Cannot require() ES Module vitest/dist/node.js
|
|
123
|
+
// because it is not yet fully loaded.
|
|
124
|
+
// See: https://github.com/nrwl/nx/issues/34028
|
|
125
|
+
try {
|
|
126
|
+
const importVitestNode = () => new Function('return import("vitest/node")')();
|
|
127
|
+
await importVitestNode();
|
|
128
|
+
}
|
|
129
|
+
catch {
|
|
130
|
+
// vitest/node not available or not needed, ignore
|
|
131
|
+
}
|
|
120
132
|
const { resolveConfig } = await (0, executor_utils_1.loadViteDynamicImport)();
|
|
121
133
|
const viteBuildConfig = await resolveConfig({
|
|
122
134
|
configFile: absoluteConfigFilePath,
|