vike 0.4.166-commit-6a8acaa → 0.4.166-commit-a5e2596
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/extractAssetsPlugin.js +9 -9
- package/dist/cjs/shared/route/index.js +2 -3
- package/dist/cjs/utils/projectInfo.js +1 -1
- package/dist/esm/node/plugin/plugins/extractAssetsPlugin.js +9 -9
- package/dist/esm/shared/route/index.js +2 -3
- package/dist/esm/utils/projectInfo.d.ts +2 -2
- package/dist/esm/utils/projectInfo.js +1 -1
- package/package.json +1 -1
|
@@ -120,12 +120,6 @@ function extractAssetsPlugin() {
|
|
|
120
120
|
{
|
|
121
121
|
name: 'vike:extractAssets-3',
|
|
122
122
|
apply: 'build',
|
|
123
|
-
async configResolved(config_) {
|
|
124
|
-
configVike = await (0, getConfigVike_js_1.getConfigVike)(config_);
|
|
125
|
-
config = config_;
|
|
126
|
-
vikeConfig = await (0, getVikeConfig_js_1.getVikeConfig)(config, false);
|
|
127
|
-
isServerAssetsFixEnabled = (0, fixServerAssets_js_1.fixServerAssets_isEnabled)() && (await (0, getVikeConfig_js_1.isV1Design)(config, false));
|
|
128
|
-
},
|
|
129
123
|
load(id) {
|
|
130
124
|
if (!(0, utils_js_1.isVirtualFileId)(id))
|
|
131
125
|
return undefined;
|
|
@@ -142,9 +136,15 @@ function extractAssetsPlugin() {
|
|
|
142
136
|
},
|
|
143
137
|
{
|
|
144
138
|
name: 'vike:extractAssets-4',
|
|
145
|
-
configResolved(
|
|
146
|
-
|
|
147
|
-
|
|
139
|
+
async configResolved(config_) {
|
|
140
|
+
configVike = await (0, getConfigVike_js_1.getConfigVike)(config_);
|
|
141
|
+
config = config_;
|
|
142
|
+
vikeConfig = await (0, getVikeConfig_js_1.getVikeConfig)(config, false);
|
|
143
|
+
isServerAssetsFixEnabled = (0, fixServerAssets_js_1.fixServerAssets_isEnabled)() && (await (0, getVikeConfig_js_1.isV1Design)(config, false));
|
|
144
|
+
if (!isServerAssetsFixEnabled) {
|
|
145
|
+
// https://github.com/vikejs/vike/issues/1060
|
|
146
|
+
(0, utils_js_1.assertUsage)(!config.plugins.find((p) => p.name === 'vite-tsconfig-paths'), 'vite-tsconfig-paths not supported, remove it and use vite.config.js#resolve.alias instead');
|
|
147
|
+
}
|
|
148
148
|
}
|
|
149
149
|
}
|
|
150
150
|
];
|
|
@@ -39,9 +39,8 @@ async function route(pageContextForRoute) {
|
|
|
39
39
|
(0, utils_js_1.objectAssign)(pageContext, pageContextFromOnBeforeRouteHook);
|
|
40
40
|
// Vike's routing
|
|
41
41
|
const allPageIds = pageContext._allPageIds;
|
|
42
|
-
(0, utils_js_1.
|
|
43
|
-
(0, utils_js_1.
|
|
44
|
-
(0, utils_js_1.assertUsage)(allPageIds.length > 0, "You must create at least one *.page.js file that isn't _default.page.*");
|
|
42
|
+
(0, utils_js_1.assertUsage)(allPageIds.length > 0, 'No page found. You must create at least one page.');
|
|
43
|
+
(0, utils_js_1.assert)(pageContext._pageFilesAll.length > 0 || pageContext._pageConfigs.length > 0);
|
|
45
44
|
const { urlPathname } = pageContext;
|
|
46
45
|
(0, utils_js_1.assert)(urlPathname.startsWith('/'));
|
|
47
46
|
const routeMatches = [];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.PROJECT_VERSION = exports.projectInfo = void 0;
|
|
4
|
-
const PROJECT_VERSION = '0.4.166-commit-
|
|
4
|
+
const PROJECT_VERSION = '0.4.166-commit-a5e2596';
|
|
5
5
|
exports.PROJECT_VERSION = PROJECT_VERSION;
|
|
6
6
|
const projectInfo = {
|
|
7
7
|
projectName: 'Vike',
|
|
@@ -119,12 +119,6 @@ function extractAssetsPlugin() {
|
|
|
119
119
|
{
|
|
120
120
|
name: 'vike:extractAssets-3',
|
|
121
121
|
apply: 'build',
|
|
122
|
-
async configResolved(config_) {
|
|
123
|
-
configVike = await getConfigVike(config_);
|
|
124
|
-
config = config_;
|
|
125
|
-
vikeConfig = await getVikeConfig(config, false);
|
|
126
|
-
isServerAssetsFixEnabled = fixServerAssets_isEnabled() && (await isV1Design(config, false));
|
|
127
|
-
},
|
|
128
122
|
load(id) {
|
|
129
123
|
if (!isVirtualFileId(id))
|
|
130
124
|
return undefined;
|
|
@@ -141,9 +135,15 @@ function extractAssetsPlugin() {
|
|
|
141
135
|
},
|
|
142
136
|
{
|
|
143
137
|
name: 'vike:extractAssets-4',
|
|
144
|
-
configResolved(
|
|
145
|
-
|
|
146
|
-
|
|
138
|
+
async configResolved(config_) {
|
|
139
|
+
configVike = await getConfigVike(config_);
|
|
140
|
+
config = config_;
|
|
141
|
+
vikeConfig = await getVikeConfig(config, false);
|
|
142
|
+
isServerAssetsFixEnabled = fixServerAssets_isEnabled() && (await isV1Design(config, false));
|
|
143
|
+
if (!isServerAssetsFixEnabled) {
|
|
144
|
+
// https://github.com/vikejs/vike/issues/1060
|
|
145
|
+
assertUsage(!config.plugins.find((p) => p.name === 'vite-tsconfig-paths'), 'vite-tsconfig-paths not supported, remove it and use vite.config.js#resolve.alias instead');
|
|
146
|
+
}
|
|
147
147
|
}
|
|
148
148
|
}
|
|
149
149
|
];
|
|
@@ -34,9 +34,8 @@ async function route(pageContextForRoute) {
|
|
|
34
34
|
objectAssign(pageContext, pageContextFromOnBeforeRouteHook);
|
|
35
35
|
// Vike's routing
|
|
36
36
|
const allPageIds = pageContext._allPageIds;
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
assertUsage(allPageIds.length > 0, "You must create at least one *.page.js file that isn't _default.page.*");
|
|
37
|
+
assertUsage(allPageIds.length > 0, 'No page found. You must create at least one page.');
|
|
38
|
+
assert(pageContext._pageFilesAll.length > 0 || pageContext._pageConfigs.length > 0);
|
|
40
39
|
const { urlPathname } = pageContext;
|
|
41
40
|
assert(urlPathname.startsWith('/'));
|
|
42
41
|
const routeMatches = [];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { projectInfo };
|
|
2
2
|
export { PROJECT_VERSION };
|
|
3
|
-
declare const PROJECT_VERSION: "0.4.166-commit-
|
|
3
|
+
declare const PROJECT_VERSION: "0.4.166-commit-a5e2596";
|
|
4
4
|
declare const projectInfo: {
|
|
5
5
|
projectName: "Vike";
|
|
6
|
-
projectVersion: "0.4.166-commit-
|
|
6
|
+
projectVersion: "0.4.166-commit-a5e2596";
|
|
7
7
|
};
|