vike 0.4.165-commit-8eba585 → 0.4.166
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/v1-design/getVikeConfig/loadFileAtConfigTime.js +1 -1
- package/dist/cjs/node/plugin/plugins/importUserCode/v1-design/getVikeConfig/resolveImportPath.js +1 -1
- package/dist/cjs/node/plugin/plugins/importUserCode/v1-design/getVikeConfig.js +1 -1
- package/dist/cjs/node/plugin/{plugins/importUserCode/v1-design/getVikeConfig → shared}/getFilePath.js +13 -15
- package/dist/cjs/node/runtime/renderPage/logErrorHint.js +5 -0
- package/dist/cjs/utils/parseUrl.js +8 -1
- package/dist/cjs/utils/projectInfo.js +1 -1
- package/dist/esm/client/client-routing-runtime/history.d.ts +1 -1
- package/dist/esm/client/client-routing-runtime/history.js +5 -5
- package/dist/esm/client/client-routing-runtime/onBrowserHistoryNavigation.js +1 -1
- package/dist/esm/node/plugin/plugins/importUserCode/v1-design/getVikeConfig/loadFileAtConfigTime.js +1 -1
- package/dist/esm/node/plugin/plugins/importUserCode/v1-design/getVikeConfig/resolveImportPath.js +1 -1
- package/dist/esm/node/plugin/plugins/importUserCode/v1-design/getVikeConfig.js +1 -1
- package/dist/esm/node/plugin/{plugins/importUserCode/v1-design/getVikeConfig → shared}/getFilePath.d.ts +1 -1
- package/dist/esm/node/plugin/{plugins/importUserCode/v1-design/getVikeConfig → shared}/getFilePath.js +13 -15
- package/dist/esm/node/runtime/renderPage/logErrorHint.js +2 -0
- package/dist/esm/utils/parseUrl.js +8 -1
- package/dist/esm/utils/projectInfo.d.ts +2 -2
- package/dist/esm/utils/projectInfo.js +1 -1
- package/package.json +25 -13
package/dist/cjs/node/plugin/plugins/importUserCode/v1-design/getVikeConfig/loadFileAtConfigTime.js
CHANGED
|
@@ -12,7 +12,7 @@ const picocolors_1 = __importDefault(require("@brillout/picocolors"));
|
|
|
12
12
|
const transformFileImports_js_1 = require("./transformFileImports.js");
|
|
13
13
|
const getConfigFileExport_js_1 = require("../getConfigFileExport.js");
|
|
14
14
|
const resolveImportPath_js_1 = require("./resolveImportPath.js");
|
|
15
|
-
const getFilePath_js_1 = require("
|
|
15
|
+
const getFilePath_js_1 = require("../../../../shared/getFilePath.js");
|
|
16
16
|
(0, utils_js_1.assertIsNotProductionRuntime)();
|
|
17
17
|
// Load fake import
|
|
18
18
|
async function loadImportedFile(import_, userRootDir, importedFilesLoaded) {
|
package/dist/cjs/node/plugin/plugins/importUserCode/v1-design/getVikeConfig/resolveImportPath.js
CHANGED
|
@@ -8,7 +8,7 @@ const picocolors_1 = __importDefault(require("@brillout/picocolors"));
|
|
|
8
8
|
const utils_js_1 = require("../../../../utils.js");
|
|
9
9
|
const transformFileImports_js_1 = require("./transformFileImports.js");
|
|
10
10
|
const path_1 = __importDefault(require("path"));
|
|
11
|
-
const getFilePath_js_1 = require("
|
|
11
|
+
const getFilePath_js_1 = require("../../../../shared/getFilePath.js");
|
|
12
12
|
const filesEnvMap = new Map();
|
|
13
13
|
function resolveImport(configValue, importerFilePath, userRootDir, configEnv, configName) {
|
|
14
14
|
if (typeof configValue !== 'string')
|
|
@@ -20,7 +20,7 @@ const crawlPlusFiles_js_1 = require("./getVikeConfig/crawlPlusFiles.js");
|
|
|
20
20
|
const getConfigFileExport_js_1 = require("./getConfigFileExport.js");
|
|
21
21
|
const loadFileAtConfigTime_js_1 = require("./getVikeConfig/loadFileAtConfigTime.js");
|
|
22
22
|
const resolveImportPath_js_1 = require("./getVikeConfig/resolveImportPath.js");
|
|
23
|
-
const getFilePath_js_1 = require("
|
|
23
|
+
const getFilePath_js_1 = require("../../../shared/getFilePath.js");
|
|
24
24
|
(0, utils_js_1.assertIsNotProductionRuntime)();
|
|
25
25
|
let devServerIsCorrupt = false;
|
|
26
26
|
let wasConfigInvalid = null;
|
|
@@ -5,7 +5,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.getFilePathUnresolved = exports.getFilePathResolved = void 0;
|
|
7
7
|
const path_1 = __importDefault(require("path"));
|
|
8
|
-
const utils_js_1 = require("
|
|
8
|
+
const utils_js_1 = require("../utils.js");
|
|
9
9
|
function getFilePathUnresolved(args) {
|
|
10
10
|
const { filePathAbsoluteFilesystem, filePathAbsoluteUserRootDir } = args;
|
|
11
11
|
let filePathAbsoluteVite;
|
|
@@ -71,20 +71,18 @@ function getFilePathAbsoluteUserFilesystem({ filePathAbsoluteUserRootDir, userRo
|
|
|
71
71
|
function getFilePathAbsoluteUserRootDir({ filePathAbsoluteFilesystem, userRootDir }) {
|
|
72
72
|
(0, utils_js_1.assertPosixPath)(filePathAbsoluteFilesystem);
|
|
73
73
|
(0, utils_js_1.assertPosixPath)(userRootDir);
|
|
74
|
-
|
|
75
|
-
if (filePathAbsoluteFilesystem.startsWith(userRootDir)) {
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
(0, utils_js_1.assert)(filePathAbsoluteFilesystem === filePathAbsoluteUserRootDir2);
|
|
87
|
-
}
|
|
74
|
+
const filePathRelative = path_1.default.posix.relative(userRootDir, filePathAbsoluteFilesystem);
|
|
75
|
+
if (!filePathAbsoluteFilesystem.startsWith(userRootDir)) {
|
|
76
|
+
(0, utils_js_1.assert)(filePathRelative.startsWith('../'));
|
|
77
|
+
return null;
|
|
78
|
+
}
|
|
79
|
+
(0, utils_js_1.assert)(!filePathRelative.startsWith('.') && !filePathRelative.startsWith('/'));
|
|
80
|
+
const filePathAbsoluteUserRootDir = `/${filePathRelative}`;
|
|
81
|
+
{
|
|
82
|
+
let check = filePathAbsoluteFilesystem.slice(userRootDir.length);
|
|
83
|
+
if (!check.startsWith('/'))
|
|
84
|
+
check = '/' + check;
|
|
85
|
+
(0, utils_js_1.assert)(filePathAbsoluteUserRootDir === check);
|
|
88
86
|
}
|
|
89
87
|
return filePathAbsoluteUserRootDir;
|
|
90
88
|
}
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
2
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
6
|
exports.getHint = exports.isKnownError = exports.isCjsEsmError = exports.logErrorHint = void 0;
|
|
4
7
|
const utils_js_1 = require("../utils.js");
|
|
8
|
+
const picocolors_1 = __importDefault(require("@brillout/picocolors"));
|
|
5
9
|
const knownErrors = [
|
|
6
10
|
{
|
|
7
11
|
errMsg: 'jsxDEV is not a function',
|
|
@@ -44,6 +48,7 @@ function getHint(error) {
|
|
|
44
48
|
exports.getHint = getHint;
|
|
45
49
|
function logHint(hint) {
|
|
46
50
|
hint = (0, utils_js_1.formatHintLog)(hint);
|
|
51
|
+
hint = picocolors_1.default.bold(hint);
|
|
47
52
|
console.error(hint);
|
|
48
53
|
}
|
|
49
54
|
function isKnownError(error) {
|
|
@@ -10,7 +10,14 @@ exports.isUriWithProtocol = exports.createUrlFromComponents = exports.assertUrlC
|
|
|
10
10
|
const slice_js_1 = require("./slice.js");
|
|
11
11
|
const assert_js_1 = require("./assert.js");
|
|
12
12
|
const picocolors_1 = __importDefault(require("@brillout/picocolors"));
|
|
13
|
-
const PROTOCOLS = [
|
|
13
|
+
const PROTOCOLS = [
|
|
14
|
+
'http://',
|
|
15
|
+
'https://',
|
|
16
|
+
// For [Tauri](https://tauri.app/)
|
|
17
|
+
'tauri://',
|
|
18
|
+
// For Electron: https://github.com/vikejs/vike/issues/1557
|
|
19
|
+
'file://'
|
|
20
|
+
];
|
|
14
21
|
function isParsable(url) {
|
|
15
22
|
// `parseUrl()` works with these URLs
|
|
16
23
|
return (PROTOCOLS.some((p) => url.startsWith(p)) ||
|
|
@@ -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.
|
|
4
|
+
const PROJECT_VERSION = '0.4.166';
|
|
5
5
|
exports.PROJECT_VERSION = PROJECT_VERSION;
|
|
6
6
|
const projectInfo = {
|
|
7
7
|
projectName: 'Vike',
|
|
@@ -2,7 +2,7 @@ export { initHistoryState, getHistoryState, pushHistory, ScrollPosition, saveScr
|
|
|
2
2
|
type HistoryState = {
|
|
3
3
|
timestamp?: number;
|
|
4
4
|
scrollPosition?: null | ScrollPosition;
|
|
5
|
-
|
|
5
|
+
triggeredBy?: 'user' | 'vike' | 'browser';
|
|
6
6
|
};
|
|
7
7
|
type ScrollPosition = {
|
|
8
8
|
x: number;
|
|
@@ -21,8 +21,8 @@ function initHistoryState() {
|
|
|
21
21
|
hasModifications = true;
|
|
22
22
|
state.scrollPosition = getScrollPosition();
|
|
23
23
|
}
|
|
24
|
-
if (!('
|
|
25
|
-
state.
|
|
24
|
+
if (!('triggeredBy' in state)) {
|
|
25
|
+
state.triggeredBy = 'browser';
|
|
26
26
|
}
|
|
27
27
|
assertState(state);
|
|
28
28
|
if (hasModifications) {
|
|
@@ -49,7 +49,7 @@ function saveScrollPosition() {
|
|
|
49
49
|
function pushHistory(url, overwriteLastHistoryEntry) {
|
|
50
50
|
if (!overwriteLastHistoryEntry) {
|
|
51
51
|
const timestamp = getTimestamp();
|
|
52
|
-
pushHistoryState({ timestamp, scrollPosition: null,
|
|
52
|
+
pushHistoryState({ timestamp, scrollPosition: null, triggeredBy: 'vike' }, url);
|
|
53
53
|
}
|
|
54
54
|
else {
|
|
55
55
|
replaceHistoryState(getHistoryState(), url);
|
|
@@ -82,8 +82,8 @@ function monkeyPatchHistoryPushState() {
|
|
|
82
82
|
scrollPosition: getScrollPosition(),
|
|
83
83
|
timestamp: getTimestamp(),
|
|
84
84
|
...stateFromUser,
|
|
85
|
-
// Don't allow user to overwrite
|
|
86
|
-
|
|
85
|
+
// Don't allow user to overwrite triggeredBy as it would break Vike's handling of the 'popstate' event
|
|
86
|
+
triggeredBy: 'user'
|
|
87
87
|
};
|
|
88
88
|
return pushStateOriginal(state, ...rest);
|
|
89
89
|
};
|
|
@@ -18,7 +18,7 @@ function onBrowserHistoryNavigation() {
|
|
|
18
18
|
window.addEventListener('popstate', async () => {
|
|
19
19
|
const currentState = getState();
|
|
20
20
|
const scrollTarget = currentState.historyState.scrollPosition || 'scroll-to-top-or-hash';
|
|
21
|
-
const isUserLandPushStateNavigation = currentState.historyState.
|
|
21
|
+
const isUserLandPushStateNavigation = currentState.historyState.triggeredBy === 'user';
|
|
22
22
|
const isHashNavigation = currentState.urlWithoutHash === globalObject.previousState.urlWithoutHash;
|
|
23
23
|
const isBackwardNavigation = !currentState.historyState.timestamp || !globalObject.previousState.historyState.timestamp
|
|
24
24
|
? null
|
package/dist/esm/node/plugin/plugins/importUserCode/v1-design/getVikeConfig/loadFileAtConfigTime.js
CHANGED
|
@@ -9,7 +9,7 @@ import pc from '@brillout/picocolors';
|
|
|
9
9
|
import { parseImportData } from './transformFileImports.js';
|
|
10
10
|
import { getConfigFileExport } from '../getConfigFileExport.js';
|
|
11
11
|
import { assertImportPath, resolveImportPath } from './resolveImportPath.js';
|
|
12
|
-
import { getFilePathResolved } from '
|
|
12
|
+
import { getFilePathResolved } from '../../../../shared/getFilePath.js';
|
|
13
13
|
assertIsNotProductionRuntime();
|
|
14
14
|
// Load fake import
|
|
15
15
|
async function loadImportedFile(import_, userRootDir, importedFilesLoaded) {
|
package/dist/esm/node/plugin/plugins/importUserCode/v1-design/getVikeConfig/resolveImportPath.js
CHANGED
|
@@ -6,7 +6,7 @@ import pc from '@brillout/picocolors';
|
|
|
6
6
|
import { assert, assertPosixPath, assertUsage, deepEqual, requireResolve } from '../../../../utils.js';
|
|
7
7
|
import { parseImportData } from './transformFileImports.js';
|
|
8
8
|
import path from 'path';
|
|
9
|
-
import { getFilePathResolved, getFilePathUnresolved } from '
|
|
9
|
+
import { getFilePathResolved, getFilePathUnresolved } from '../../../../shared/getFilePath.js';
|
|
10
10
|
const filesEnvMap = new Map();
|
|
11
11
|
function resolveImport(configValue, importerFilePath, userRootDir, configEnv, configName) {
|
|
12
12
|
if (typeof configValue !== 'string')
|
|
@@ -19,7 +19,7 @@ import { crawlPlusFiles } from './getVikeConfig/crawlPlusFiles.js';
|
|
|
19
19
|
import { getConfigFileExport } from './getConfigFileExport.js';
|
|
20
20
|
import { loadConfigFile, loadImportedFile, loadValueFile } from './getVikeConfig/loadFileAtConfigTime.js';
|
|
21
21
|
import { clearFilesEnvMap, resolveImport } from './getVikeConfig/resolveImportPath.js';
|
|
22
|
-
import { getFilePathResolved } from '
|
|
22
|
+
import { getFilePathResolved } from '../../../shared/getFilePath.js';
|
|
23
23
|
assertIsNotProductionRuntime();
|
|
24
24
|
let devServerIsCorrupt = false;
|
|
25
25
|
let wasConfigInvalid = null;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { getFilePathResolved };
|
|
2
2
|
export { getFilePathUnresolved };
|
|
3
|
-
import type { FilePath, FilePathResolved } from '
|
|
3
|
+
import type { FilePath, FilePathResolved } from '../../../shared/page-configs/FilePath.js';
|
|
4
4
|
declare function getFilePathUnresolved(args: {
|
|
5
5
|
filePathAbsoluteFilesystem: string | null;
|
|
6
6
|
filePathAbsoluteUserRootDir: string | null;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { getFilePathResolved };
|
|
2
2
|
export { getFilePathUnresolved };
|
|
3
3
|
import path from 'path';
|
|
4
|
-
import { assert, assertPosixPath, hasProp } from '
|
|
4
|
+
import { assert, assertPosixPath, hasProp } from '../utils.js';
|
|
5
5
|
function getFilePathUnresolved(args) {
|
|
6
6
|
const { filePathAbsoluteFilesystem, filePathAbsoluteUserRootDir } = args;
|
|
7
7
|
let filePathAbsoluteVite;
|
|
@@ -65,20 +65,18 @@ function getFilePathAbsoluteUserFilesystem({ filePathAbsoluteUserRootDir, userRo
|
|
|
65
65
|
function getFilePathAbsoluteUserRootDir({ filePathAbsoluteFilesystem, userRootDir }) {
|
|
66
66
|
assertPosixPath(filePathAbsoluteFilesystem);
|
|
67
67
|
assertPosixPath(userRootDir);
|
|
68
|
-
|
|
69
|
-
if (filePathAbsoluteFilesystem.startsWith(userRootDir)) {
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
assert(filePathAbsoluteFilesystem === filePathAbsoluteUserRootDir2);
|
|
81
|
-
}
|
|
68
|
+
const filePathRelative = path.posix.relative(userRootDir, filePathAbsoluteFilesystem);
|
|
69
|
+
if (!filePathAbsoluteFilesystem.startsWith(userRootDir)) {
|
|
70
|
+
assert(filePathRelative.startsWith('../'));
|
|
71
|
+
return null;
|
|
72
|
+
}
|
|
73
|
+
assert(!filePathRelative.startsWith('.') && !filePathRelative.startsWith('/'));
|
|
74
|
+
const filePathAbsoluteUserRootDir = `/${filePathRelative}`;
|
|
75
|
+
{
|
|
76
|
+
let check = filePathAbsoluteFilesystem.slice(userRootDir.length);
|
|
77
|
+
if (!check.startsWith('/'))
|
|
78
|
+
check = '/' + check;
|
|
79
|
+
assert(filePathAbsoluteUserRootDir === check);
|
|
82
80
|
}
|
|
83
81
|
return filePathAbsoluteUserRootDir;
|
|
84
82
|
}
|
|
@@ -4,6 +4,7 @@ export { isCjsEsmError };
|
|
|
4
4
|
export { isKnownError };
|
|
5
5
|
export { getHint };
|
|
6
6
|
import { assert, formatHintLog, isNotNullish, isObject, unique } from '../utils.js';
|
|
7
|
+
import pc from '@brillout/picocolors';
|
|
7
8
|
const knownErrors = [
|
|
8
9
|
{
|
|
9
10
|
errMsg: 'jsxDEV is not a function',
|
|
@@ -44,6 +45,7 @@ function getHint(error) {
|
|
|
44
45
|
}
|
|
45
46
|
function logHint(hint) {
|
|
46
47
|
hint = formatHintLog(hint);
|
|
48
|
+
hint = pc.bold(hint);
|
|
47
49
|
console.error(hint);
|
|
48
50
|
}
|
|
49
51
|
function isKnownError(error) {
|
|
@@ -12,7 +12,14 @@ export { isUriWithProtocol };
|
|
|
12
12
|
import { slice } from './slice.js';
|
|
13
13
|
import { assert, assertUsage } from './assert.js';
|
|
14
14
|
import pc from '@brillout/picocolors';
|
|
15
|
-
const PROTOCOLS = [
|
|
15
|
+
const PROTOCOLS = [
|
|
16
|
+
'http://',
|
|
17
|
+
'https://',
|
|
18
|
+
// For [Tauri](https://tauri.app/)
|
|
19
|
+
'tauri://',
|
|
20
|
+
// For Electron: https://github.com/vikejs/vike/issues/1557
|
|
21
|
+
'file://'
|
|
22
|
+
];
|
|
16
23
|
function isParsable(url) {
|
|
17
24
|
// `parseUrl()` works with these URLs
|
|
18
25
|
return (PROTOCOLS.some((p) => url.startsWith(p)) ||
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { projectInfo };
|
|
2
2
|
export { PROJECT_VERSION };
|
|
3
|
-
declare const PROJECT_VERSION: "0.4.
|
|
3
|
+
declare const PROJECT_VERSION: "0.4.166";
|
|
4
4
|
declare const projectInfo: {
|
|
5
5
|
projectName: "Vike";
|
|
6
|
-
projectVersion: "0.4.
|
|
6
|
+
projectVersion: "0.4.166";
|
|
7
7
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vike",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.166",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"dev": "tsc --watch",
|
|
6
6
|
"build": "rimraf dist/ && pnpm run build:esm && pnpm run build:cjs",
|
|
@@ -33,7 +33,8 @@
|
|
|
33
33
|
"require": "./dist/cjs/node/runtime/index-deprecated.js",
|
|
34
34
|
"node": "./dist/esm/node/runtime/index-deprecated.js",
|
|
35
35
|
"browser": "./dist/esm/client/node.js",
|
|
36
|
-
"types": "./dist/esm/node/runtime/index-deprecated.d.ts"
|
|
36
|
+
"types": "./dist/esm/node/runtime/index-deprecated.d.ts",
|
|
37
|
+
"default": "./dist/esm/node/runtime/index-deprecated.js"
|
|
37
38
|
},
|
|
38
39
|
"./server": {
|
|
39
40
|
"worker": "./dist/esm/node/runtime/index.js",
|
|
@@ -41,7 +42,8 @@
|
|
|
41
42
|
"require": "./dist/cjs/node/runtime/index.js",
|
|
42
43
|
"node": "./dist/esm/node/runtime/index.js",
|
|
43
44
|
"browser": "./dist/esm/client/node.js",
|
|
44
|
-
"types": "./dist/esm/node/runtime/index.d.ts"
|
|
45
|
+
"types": "./dist/esm/node/runtime/index.d.ts",
|
|
46
|
+
"default": "./dist/esm/node/runtime/index.js"
|
|
45
47
|
},
|
|
46
48
|
"./client": {
|
|
47
49
|
"types": "./dist/esm/client/server-routing-runtime/index.d.ts"
|
|
@@ -55,7 +57,8 @@
|
|
|
55
57
|
"require": "./dist/cjs/node/client/router.js",
|
|
56
58
|
"node": "./dist/esm/node/client/router.js",
|
|
57
59
|
"browser": "./dist/esm/client/client-routing-runtime/index.js",
|
|
58
|
-
"types": "./dist/esm/client/client-routing-runtime/index.d.ts"
|
|
60
|
+
"types": "./dist/esm/client/client-routing-runtime/index.d.ts",
|
|
61
|
+
"default": "./dist/esm/client/client-routing-runtime/index.js"
|
|
59
62
|
},
|
|
60
63
|
"./routing": {
|
|
61
64
|
"worker": "./dist/esm/shared/route/routing.js",
|
|
@@ -63,22 +66,26 @@
|
|
|
63
66
|
"require": "./dist/cjs/shared/route/routing.js",
|
|
64
67
|
"node": "./dist/esm/shared/route/routing.js",
|
|
65
68
|
"browser": "./dist/esm/shared/route/routing.js",
|
|
66
|
-
"types": "./dist/esm/shared/route/routing.d.ts"
|
|
69
|
+
"types": "./dist/esm/shared/route/routing.d.ts",
|
|
70
|
+
"default": "./dist/esm/shared/route/routing.js"
|
|
67
71
|
},
|
|
68
72
|
"./cli": {
|
|
69
73
|
"require": "./dist/cjs/node/cli/index.js",
|
|
70
74
|
"node": "./dist/esm/node/cli/index.js",
|
|
71
|
-
"types": "./dist/esm/node/cli/index.d.ts"
|
|
75
|
+
"types": "./dist/esm/node/cli/index.d.ts",
|
|
76
|
+
"default": "./dist/esm/node/cli/index.js"
|
|
72
77
|
},
|
|
73
78
|
"./prerender": {
|
|
74
79
|
"require": "./dist/cjs/node/prerender/index.js",
|
|
75
80
|
"node": "./dist/esm/node/prerender/index.js",
|
|
76
|
-
"types": "./dist/esm/node/prerender/index.d.ts"
|
|
81
|
+
"types": "./dist/esm/node/prerender/index.d.ts",
|
|
82
|
+
"default": "./dist/esm/node/prerender/index.js"
|
|
77
83
|
},
|
|
78
84
|
"./plugin": {
|
|
79
85
|
"require": "./dist/cjs/node/plugin/index.js",
|
|
80
86
|
"node": "./dist/esm/node/plugin/index.js",
|
|
81
|
-
"types": "./dist/esm/node/plugin/index.d.ts"
|
|
87
|
+
"types": "./dist/esm/node/plugin/index.d.ts",
|
|
88
|
+
"default": "./dist/esm/node/plugin/index.js"
|
|
82
89
|
},
|
|
83
90
|
"./RenderErrorPage": {
|
|
84
91
|
"worker": "./dist/esm/shared/RenderErrorPage.js",
|
|
@@ -86,7 +93,8 @@
|
|
|
86
93
|
"require": "./dist/cjs/shared/RenderErrorPage.js",
|
|
87
94
|
"node": "./dist/esm/shared/RenderErrorPage.js",
|
|
88
95
|
"browser": "./dist/esm/shared/RenderErrorPage.js",
|
|
89
|
-
"types": "./dist/esm/shared/RenderErrorPage.d.ts"
|
|
96
|
+
"types": "./dist/esm/shared/RenderErrorPage.d.ts",
|
|
97
|
+
"default": "./dist/esm/shared/RenderErrorPage.js"
|
|
90
98
|
},
|
|
91
99
|
"./abort": {
|
|
92
100
|
"worker": "./dist/esm/shared/abort.js",
|
|
@@ -94,24 +102,28 @@
|
|
|
94
102
|
"require": "./dist/cjs/shared/abort.js",
|
|
95
103
|
"node": "./dist/esm/shared/abort.js",
|
|
96
104
|
"browser": "./dist/esm/shared/abort.js",
|
|
97
|
-
"types": "./dist/esm/shared/abort.d.ts"
|
|
105
|
+
"types": "./dist/esm/shared/abort.d.ts",
|
|
106
|
+
"default": "./dist/esm/shared/abort.js"
|
|
98
107
|
},
|
|
99
108
|
"./__internal": {
|
|
100
109
|
"require": "./dist/cjs/__internal/index.js",
|
|
101
110
|
"node": "./dist/esm/__internal/index.js",
|
|
102
|
-
"types": "./dist/esm/__internal/index.d.ts"
|
|
111
|
+
"types": "./dist/esm/__internal/index.d.ts",
|
|
112
|
+
"default": "./dist/esm/__internal/index.js"
|
|
103
113
|
},
|
|
104
114
|
"./__internal/setup": {
|
|
105
115
|
"require": "./dist/cjs/node/runtime/page-files/setup.js",
|
|
106
116
|
"node": "./dist/esm/node/runtime/page-files/setup.js",
|
|
107
|
-
"types": "./dist/esm/node/runtime/page-files/setup.d.ts"
|
|
117
|
+
"types": "./dist/esm/node/runtime/page-files/setup.d.ts",
|
|
118
|
+
"default": "./dist/esm/node/runtime/page-files/setup.js"
|
|
108
119
|
},
|
|
109
120
|
"./__internal/loadImportBuild": {
|
|
110
121
|
"worker": "./dist/esm/node/runtime/globalContext/loadImportBuild.js",
|
|
111
122
|
"edge-light": "./dist/esm/node/runtime/globalContext/loadImportBuild.js",
|
|
112
123
|
"require": "./dist/cjs/node/runtime/globalContext/loadImportBuild.js",
|
|
113
124
|
"node": "./dist/esm/node/runtime/globalContext/loadImportBuild.js",
|
|
114
|
-
"types": "./dist/esm/node/runtime/globalContext/loadImportBuild.d.ts"
|
|
125
|
+
"types": "./dist/esm/node/runtime/globalContext/loadImportBuild.d.ts",
|
|
126
|
+
"default": "./dist/esm/node/runtime/globalContext/loadImportBuild.js"
|
|
115
127
|
}
|
|
116
128
|
},
|
|
117
129
|
"peerDependencies": {
|