vike 0.4.199-commit-749c7bd → 0.4.199-commit-ed4f15e
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/cjs/node/plugin/plugins/importUserCode/index.js +7 -6
- package/dist/cjs/utils/PROJECT_VERSION.js +1 -1
- package/dist/esm/node/plugin/plugins/importUserCode/index.js +8 -7
- package/dist/esm/utils/PROJECT_VERSION.d.ts +1 -1
- package/dist/esm/utils/PROJECT_VERSION.js +1 -1
- package/dist/esm/utils/projectInfo.d.ts +1 -1
- package/package.json +1 -10
|
@@ -23,16 +23,17 @@ function importUserCode() {
|
|
|
23
23
|
name: 'vike:importUserCode',
|
|
24
24
|
config(_, env) {
|
|
25
25
|
isDev = (0, utils_js_1.isDev3)(env);
|
|
26
|
-
return {
|
|
27
|
-
experimental: {
|
|
28
|
-
// TODO/v1-release: remove
|
|
29
|
-
importGlobRestoreExtension: true
|
|
30
|
-
}
|
|
31
|
-
};
|
|
32
26
|
},
|
|
33
27
|
async configResolved(config_) {
|
|
34
28
|
configVike = await (0, getConfigVike_js_1.getConfigVike)(config_);
|
|
35
29
|
config = config_;
|
|
30
|
+
// TODO/v1-release: remove
|
|
31
|
+
{
|
|
32
|
+
(0, utils_js_1.assert)(isDev !== undefined);
|
|
33
|
+
const isV1 = await (0, getVikeConfig_js_1.isV1Design)(config, isDev);
|
|
34
|
+
if (!isV1)
|
|
35
|
+
config.experimental.importGlobRestoreExtension = true;
|
|
36
|
+
}
|
|
36
37
|
},
|
|
37
38
|
resolveId(id) {
|
|
38
39
|
if ((0, utils_js_1.isVirtualFileId)(id)) {
|
|
@@ -6,7 +6,7 @@ import { getVirtualFileImportUserCode } from './getVirtualFileImportUserCode.js'
|
|
|
6
6
|
import { assert, assertPosixPath, getOutDirs, getVirtualFileId, isDev3, isVirtualFileId, resolveVirtualFileId } from '../../utils.js';
|
|
7
7
|
import { isVirtualFileIdPageConfigValuesAll } from '../../../shared/virtual-files/virtualFilePageConfigValuesAll.js';
|
|
8
8
|
import { isVirtualFileIdImportUserCode } from '../../../shared/virtual-files/virtualFileImportUserCode.js';
|
|
9
|
-
import { vikeConfigDependencies, reloadVikeConfig, isVikeConfigFile } from './v1-design/getVikeConfig.js';
|
|
9
|
+
import { vikeConfigDependencies, reloadVikeConfig, isVikeConfigFile, isV1Design } from './v1-design/getVikeConfig.js';
|
|
10
10
|
import pc from '@brillout/picocolors';
|
|
11
11
|
import { logConfigInfo } from '../../shared/loggerNotProd.js';
|
|
12
12
|
import { getModuleFilePathAbsolute } from '../../shared/getFilePath.js';
|
|
@@ -18,16 +18,17 @@ function importUserCode() {
|
|
|
18
18
|
name: 'vike:importUserCode',
|
|
19
19
|
config(_, env) {
|
|
20
20
|
isDev = isDev3(env);
|
|
21
|
-
return {
|
|
22
|
-
experimental: {
|
|
23
|
-
// TODO/v1-release: remove
|
|
24
|
-
importGlobRestoreExtension: true
|
|
25
|
-
}
|
|
26
|
-
};
|
|
27
21
|
},
|
|
28
22
|
async configResolved(config_) {
|
|
29
23
|
configVike = await getConfigVike(config_);
|
|
30
24
|
config = config_;
|
|
25
|
+
// TODO/v1-release: remove
|
|
26
|
+
{
|
|
27
|
+
assert(isDev !== undefined);
|
|
28
|
+
const isV1 = await isV1Design(config, isDev);
|
|
29
|
+
if (!isV1)
|
|
30
|
+
config.experimental.importGlobRestoreExtension = true;
|
|
31
|
+
}
|
|
31
32
|
},
|
|
32
33
|
resolveId(id) {
|
|
33
34
|
if (isVirtualFileId(id)) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const PROJECT_VERSION: "0.4.199-commit-
|
|
1
|
+
export declare const PROJECT_VERSION: "0.4.199-commit-ed4f15e";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// Automatically updated by @brillout/release-me
|
|
2
|
-
export const PROJECT_VERSION = '0.4.199-commit-
|
|
2
|
+
export const PROJECT_VERSION = '0.4.199-commit-ed4f15e';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vike",
|
|
3
|
-
"version": "0.4.199-commit-
|
|
3
|
+
"version": "0.4.199-commit-ed4f15e",
|
|
4
4
|
"repository": "https://github.com/vikejs/vike",
|
|
5
5
|
"exports": {
|
|
6
6
|
"./server": {
|
|
@@ -132,7 +132,6 @@
|
|
|
132
132
|
"esbuild": "^0.19.0 || ^0.20.0 || ^0.21.0 || ^0.22.0 || ^0.23.0",
|
|
133
133
|
"fast-glob": "^3.0.0",
|
|
134
134
|
"semver": "^7.0.0",
|
|
135
|
-
"sirv": "^2.0.0",
|
|
136
135
|
"source-map-support": "^0.5.0"
|
|
137
136
|
},
|
|
138
137
|
"peerDependencies": {
|
|
@@ -232,16 +231,8 @@
|
|
|
232
231
|
"@types/resolve": "^1.20.6",
|
|
233
232
|
"@types/semver": "^7.5.8",
|
|
234
233
|
"@types/source-map-support": "^0.5.10",
|
|
235
|
-
"acorn": "^8.11.2",
|
|
236
|
-
"cac": "^6.7.14",
|
|
237
|
-
"es-module-lexer": "^1.4.1",
|
|
238
|
-
"esbuild": "^0.23.0",
|
|
239
|
-
"fast-glob": "^3.3.2",
|
|
240
234
|
"react-streaming": "^0.3.43",
|
|
241
235
|
"rimraf": "^5.0.5",
|
|
242
|
-
"semver": "^7.6.3",
|
|
243
|
-
"sirv": "^2.0.4",
|
|
244
|
-
"source-map-support": "^0.5.21",
|
|
245
236
|
"typescript": "^5.6.2",
|
|
246
237
|
"vite": "^5.4.0"
|
|
247
238
|
},
|