@vercube/vite 1.1.1 → 1.1.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.
- package/README.md +6 -6
- package/dist/index.mjs +4 -2
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -73,12 +73,12 @@ node dist/index.mjs # runs the built server
|
|
|
73
73
|
|
|
74
74
|
## Options
|
|
75
75
|
|
|
76
|
-
| Option | Type
|
|
77
|
-
| ------------ |
|
|
78
|
-
| `rootDir` | `string`
|
|
79
|
-
| `scanDirs` | `string[]`
|
|
80
|
-
| `setupFile` | `string`
|
|
81
|
-
| `runner` | `string`
|
|
76
|
+
| Option | Type | Default | Description |
|
|
77
|
+
| ------------ | ---------------------- | --------------- | ----------------------------------------------------------------------------------------------------------------- |
|
|
78
|
+
| `rootDir` | `string` | Vite `root` | Project root used to resolve `scanDirs` and `setupFile`. |
|
|
79
|
+
| `scanDirs` | `string[]` | `['src']` | Directories scanned (recursively) for `@Controller` and `@Injectable` classes. |
|
|
80
|
+
| `setupFile` | `string` | `undefined` | Module whose default export `(app: App) => void \| Promise<void>` runs as `createApp`'s setup hook (before init). |
|
|
81
|
+
| `runner` | `string` | `'node-worker'` | The `env-runner` runner used to execute server code in dev. |
|
|
82
82
|
| `noExternal` | `(string \| RegExp)[]` | `undefined` | Extra dev `resolve.noExternal` patterns merged after `@vercube/*` (see below). |
|
|
83
83
|
|
|
84
84
|
### Dev `noExternal`
|
package/dist/index.mjs
CHANGED
|
@@ -116,14 +116,16 @@ function getEnvRunner(ctx) {
|
|
|
116
116
|
}
|
|
117
117
|
/**
|
|
118
118
|
* Returns true for bare module specifiers (npm/workspace packages), which the
|
|
119
|
-
* production build externalizes. Relative paths, absolute paths
|
|
120
|
-
* (`\0`-prefixed) ids
|
|
119
|
+
* production build externalizes. Relative paths, absolute paths, virtual
|
|
120
|
+
* (`\0`-prefixed) ids, Vite path aliases (`@/…`), and bundler helper runtimes
|
|
121
|
+
* are bundled.
|
|
121
122
|
*
|
|
122
123
|
* @param id - The import specifier to classify.
|
|
123
124
|
* @returns Whether the specifier is a bare dependency.
|
|
124
125
|
*/
|
|
125
126
|
function isBareSpecifier(id) {
|
|
126
127
|
if (id.startsWith("\0") || id.startsWith(".") || isAbsolute(id)) return false;
|
|
128
|
+
if (id.startsWith("@/") || id.startsWith("@oxc-project/")) return false;
|
|
127
129
|
return true;
|
|
128
130
|
}
|
|
129
131
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vercube/vite",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.2",
|
|
4
4
|
"description": "Vite plugin integrating Vercube with the Vite Environment API",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"pathe": "2.0.3",
|
|
37
37
|
"rou3": "0.8.1",
|
|
38
38
|
"srvx": "0.11.17",
|
|
39
|
-
"@vercube/scan": "1.1.
|
|
39
|
+
"@vercube/scan": "1.1.2"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
42
|
"vite": "^8.0.0"
|