vike 0.4.161-commit-6a208ab → 0.4.161-commit-32e5021
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/getVirtualFileImportUserCode.js +2 -2
- package/dist/cjs/utils/projectInfo.js +1 -1
- package/dist/esm/node/plugin/plugins/importUserCode/getVirtualFileImportUserCode.js +2 -2
- package/dist/esm/utils/projectInfo.d.ts +2 -2
- package/dist/esm/utils/projectInfo.js +1 -1
- package/package.json +1 -1
|
@@ -138,10 +138,10 @@ function getGlobs(globRoots, isBuild, fileType, query) {
|
|
|
138
138
|
const globExcludePath = globRoot.excludeDir ? `'!${getGlobPath(globRoot.excludeDir, fileType)}'` : null;
|
|
139
139
|
const globOptions = { eager: isEager };
|
|
140
140
|
if ((0, utils_js_1.isVersionOrAbove)(vite_1.version, '5.1.0')) {
|
|
141
|
-
globOptions.
|
|
141
|
+
globOptions.query = `?${query}`;
|
|
142
142
|
}
|
|
143
143
|
else {
|
|
144
|
-
globOptions.
|
|
144
|
+
globOptions.as = query;
|
|
145
145
|
}
|
|
146
146
|
const globPaths = globExcludePath ? `[${globIncludePath}, ${globExcludePath}]` : `[${globIncludePath}]`;
|
|
147
147
|
const globLine = `const ${varNameLocal} = import.meta.glob(${globPaths}, ${JSON.stringify(globOptions)});`;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.PROJECT_VERSION = exports.projectInfo = void 0;
|
|
4
4
|
const assertSingleInstance_js_1 = require("./assertSingleInstance.js");
|
|
5
|
-
const PROJECT_VERSION = '0.4.161-commit-
|
|
5
|
+
const PROJECT_VERSION = '0.4.161-commit-32e5021';
|
|
6
6
|
exports.PROJECT_VERSION = PROJECT_VERSION;
|
|
7
7
|
const projectInfo = {
|
|
8
8
|
projectName: 'Vike',
|
|
@@ -132,10 +132,10 @@ function getGlobs(globRoots, isBuild, fileType, query) {
|
|
|
132
132
|
const globExcludePath = globRoot.excludeDir ? `'!${getGlobPath(globRoot.excludeDir, fileType)}'` : null;
|
|
133
133
|
const globOptions = { eager: isEager };
|
|
134
134
|
if (isVersionOrAbove(viteVersion, '5.1.0')) {
|
|
135
|
-
globOptions.
|
|
135
|
+
globOptions.query = `?${query}`;
|
|
136
136
|
}
|
|
137
137
|
else {
|
|
138
|
-
globOptions.
|
|
138
|
+
globOptions.as = query;
|
|
139
139
|
}
|
|
140
140
|
const globPaths = globExcludePath ? `[${globIncludePath}, ${globExcludePath}]` : `[${globIncludePath}]`;
|
|
141
141
|
const globLine = `const ${varNameLocal} = import.meta.glob(${globPaths}, ${JSON.stringify(globOptions)});`;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { projectInfo };
|
|
2
2
|
export { PROJECT_VERSION };
|
|
3
|
-
declare const PROJECT_VERSION: "0.4.161-commit-
|
|
3
|
+
declare const PROJECT_VERSION: "0.4.161-commit-32e5021";
|
|
4
4
|
declare const projectInfo: {
|
|
5
5
|
projectName: "Vike";
|
|
6
|
-
projectVersion: "0.4.161-commit-
|
|
6
|
+
projectVersion: "0.4.161-commit-32e5021";
|
|
7
7
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { projectInfo };
|
|
2
2
|
export { PROJECT_VERSION };
|
|
3
3
|
import { onProjectInfo } from './assertSingleInstance.js';
|
|
4
|
-
const PROJECT_VERSION = '0.4.161-commit-
|
|
4
|
+
const PROJECT_VERSION = '0.4.161-commit-32e5021';
|
|
5
5
|
const projectInfo = {
|
|
6
6
|
projectName: 'Vike',
|
|
7
7
|
projectVersion: PROJECT_VERSION
|