@vixt/core 0.0.8 → 0.0.10
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/dist/index.d.mts +3 -2
- package/dist/index.d.ts +3 -2
- package/dist/index.mjs +1 -4
- package/package.json +3 -3
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as vite from 'vite';
|
|
2
|
-
import { PluginOption,
|
|
2
|
+
import { PluginOption, ResolvedConfig, TransformResult } from 'vite';
|
|
3
3
|
import * as c12 from 'c12';
|
|
4
4
|
import { ConfigLayer, LoadConfigOptions } from 'c12';
|
|
5
5
|
import { TSConfig } from 'pkg-types';
|
|
@@ -47,7 +47,8 @@ interface VixtOptions extends Record<string, any> {
|
|
|
47
47
|
extends?: string[];
|
|
48
48
|
/** modules */
|
|
49
49
|
modules?: VixtModule[];
|
|
50
|
-
|
|
50
|
+
/** use on configResolved */
|
|
51
|
+
vite?: ResolvedConfig;
|
|
51
52
|
}
|
|
52
53
|
interface VixtConfigLayer extends ConfigLayer<VixtOptions> {
|
|
53
54
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as vite from 'vite';
|
|
2
|
-
import { PluginOption,
|
|
2
|
+
import { PluginOption, ResolvedConfig, TransformResult } from 'vite';
|
|
3
3
|
import * as c12 from 'c12';
|
|
4
4
|
import { ConfigLayer, LoadConfigOptions } from 'c12';
|
|
5
5
|
import { TSConfig } from 'pkg-types';
|
|
@@ -47,7 +47,8 @@ interface VixtOptions extends Record<string, any> {
|
|
|
47
47
|
extends?: string[];
|
|
48
48
|
/** modules */
|
|
49
49
|
modules?: VixtModule[];
|
|
50
|
-
|
|
50
|
+
/** use on configResolved */
|
|
51
|
+
vite?: ResolvedConfig;
|
|
51
52
|
}
|
|
52
53
|
interface VixtConfigLayer extends ConfigLayer<VixtOptions> {
|
|
53
54
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -188,13 +188,10 @@ const app = defineVixtModule({
|
|
|
188
188
|
const name$1 = "vixt:config";
|
|
189
189
|
const config = defineVixtModule({
|
|
190
190
|
meta: { name: name$1 },
|
|
191
|
-
setup(
|
|
191
|
+
setup(_, vixt) {
|
|
192
192
|
return {
|
|
193
193
|
name: name$1,
|
|
194
194
|
enforce: "pre",
|
|
195
|
-
config(config2) {
|
|
196
|
-
vixt.options.vite = config2;
|
|
197
|
-
},
|
|
198
195
|
configResolved(config2) {
|
|
199
196
|
vixt.options.vite = config2;
|
|
200
197
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vixt/core",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.10",
|
|
5
5
|
"author": "SoulLyoko<https://github.com/SoulLyoko>",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"homepage": "https://github.com/SoulLyoko/vixt#readme",
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
"mlly": "1.7.1",
|
|
27
27
|
"pathe": "^1.1.2",
|
|
28
28
|
"pkg-types": "^1.1.3",
|
|
29
|
-
"tsx": "^4.16.
|
|
30
|
-
"vite": "^5.3.
|
|
29
|
+
"tsx": "^4.16.2",
|
|
30
|
+
"vite": "^5.3.3",
|
|
31
31
|
"vite-plugin-checker": "^0.7.0",
|
|
32
32
|
"vue-tsc": "^2.0.24"
|
|
33
33
|
},
|