master
parent
244dcf3893
commit
52bf4dc0bc
|
|
@ -1,16 +0,0 @@
|
||||||
#!/bin/sh
|
|
||||||
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
||||||
|
|
||||||
case `uname` in
|
|
||||||
*CYGWIN*|*MINGW*|*MSYS*)
|
|
||||||
if command -v cygpath > /dev/null 2>&1; then
|
|
||||||
basedir=`cygpath -w "$basedir"`
|
|
||||||
fi
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
if [ -x "$basedir/node" ]; then
|
|
||||||
exec "$basedir/node" "$basedir/../vite/bin/vite.js" "$@"
|
|
||||||
else
|
|
||||||
exec node "$basedir/../vite/bin/vite.js" "$@"
|
|
||||||
fi
|
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
../vite/bin/vite.js
|
||||||
|
|
@ -4,6 +4,23 @@
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
|
"node_modules/@esbuild/linux-x64": {
|
||||||
|
"version": "0.25.12",
|
||||||
|
"resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.25.12.tgz",
|
||||||
|
"integrity": "sha512-uqZMTLr/zR/ed4jIGnwSLkaHmPjOjJvnm6TVVitAa08SLS9Z0VM8wIRx7gWbJB5/J54YuIMInDquWyYvQLZkgw==",
|
||||||
|
"cpu": [
|
||||||
|
"x64"
|
||||||
|
],
|
||||||
|
"dev": true,
|
||||||
|
"license": "MIT",
|
||||||
|
"optional": true,
|
||||||
|
"os": [
|
||||||
|
"linux"
|
||||||
|
],
|
||||||
|
"engines": {
|
||||||
|
"node": ">=18"
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/@esbuild/win32-x64": {
|
"node_modules/@esbuild/win32-x64": {
|
||||||
"version": "0.25.12",
|
"version": "0.25.12",
|
||||||
"resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.25.12.tgz",
|
"resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.25.12.tgz",
|
||||||
|
|
@ -21,6 +38,34 @@
|
||||||
"node": ">=18"
|
"node": ">=18"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/@rollup/rollup-linux-x64-gnu": {
|
||||||
|
"version": "4.52.5",
|
||||||
|
"resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.52.5.tgz",
|
||||||
|
"integrity": "sha512-hXGLYpdhiNElzN770+H2nlx+jRog8TyynpTVzdlc6bndktjKWyZyiCsuDAlpd+j+W+WNqfcyAWz9HxxIGfZm1Q==",
|
||||||
|
"cpu": [
|
||||||
|
"x64"
|
||||||
|
],
|
||||||
|
"dev": true,
|
||||||
|
"license": "MIT",
|
||||||
|
"optional": true,
|
||||||
|
"os": [
|
||||||
|
"linux"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"node_modules/@rollup/rollup-linux-x64-musl": {
|
||||||
|
"version": "4.52.5",
|
||||||
|
"resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.52.5.tgz",
|
||||||
|
"integrity": "sha512-arCGIcuNKjBoKAXD+y7XomR9gY6Mw7HnFBv5Rw7wQRvwYLR7gBAgV7Mb2QTyjXfTveBNFAtPt46/36vV9STLNg==",
|
||||||
|
"cpu": [
|
||||||
|
"x64"
|
||||||
|
],
|
||||||
|
"dev": true,
|
||||||
|
"license": "MIT",
|
||||||
|
"optional": true,
|
||||||
|
"os": [
|
||||||
|
"linux"
|
||||||
|
]
|
||||||
|
},
|
||||||
"node_modules/@rollup/rollup-win32-x64-gnu": {
|
"node_modules/@rollup/rollup-win32-x64-gnu": {
|
||||||
"version": "4.52.5",
|
"version": "4.52.5",
|
||||||
"resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-gnu/-/rollup-win32-x64-gnu-4.52.5.tgz",
|
"resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-gnu/-/rollup-win32-x64-gnu-4.52.5.tgz",
|
||||||
|
|
@ -260,11 +305,10 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/vite": {
|
"node_modules/vite": {
|
||||||
"version": "7.1.12",
|
"version": "7.2.2",
|
||||||
"resolved": "https://registry.npmjs.org/vite/-/vite-7.1.12.tgz",
|
"resolved": "https://registry.npmjs.org/vite/-/vite-7.2.2.tgz",
|
||||||
"integrity": "sha512-ZWyE8YXEXqJrrSLvYgrRP7p62OziLW7xI5HYGWFzOvupfAlrLvURSzv/FyGyy0eidogEM3ujU+kUG1zuHgb6Ug==",
|
"integrity": "sha512-BxAKBWmIbrDgrokdGZH1IgkIk/5mMHDreLDmCJ0qpyJaAteP8NvMhkwr/ZCQNqNH97bw/dANTE9PDzqwJghfMQ==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "MIT",
|
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"esbuild": "^0.25.0",
|
"esbuild": "^0.25.0",
|
||||||
"fdir": "^6.5.0",
|
"fdir": "^6.5.0",
|
||||||
|
|
|
||||||
|
|
@ -1,52 +1,37 @@
|
||||||
{
|
{
|
||||||
"hash": "d903b885",
|
"hash": "9696e02b",
|
||||||
"configHash": "3e836f7b",
|
"configHash": "e103e9de",
|
||||||
"lockfileHash": "e28807c3",
|
"lockfileHash": "8d45ad8a",
|
||||||
"browserHash": "9a7a5c1b",
|
"browserHash": "8e3e062d",
|
||||||
"optimized": {
|
"optimized": {
|
||||||
"three": {
|
"three": {
|
||||||
"src": "../../three/build/three.module.js",
|
"src": "../../three/build/three.module.js",
|
||||||
"file": "three.js",
|
"file": "three.js",
|
||||||
"fileHash": "357a2d6a",
|
"fileHash": "acdec5e5",
|
||||||
"needsInterop": false
|
"needsInterop": false
|
||||||
},
|
},
|
||||||
"three/examples/jsm/controls/OrbitControls.js": {
|
"three/examples/jsm/controls/OrbitControls.js": {
|
||||||
"src": "../../three/examples/jsm/controls/OrbitControls.js",
|
"src": "../../three/examples/jsm/controls/OrbitControls.js",
|
||||||
"file": "three_examples_jsm_controls_OrbitControls__js.js",
|
"file": "three_examples_jsm_controls_OrbitControls__js.js",
|
||||||
"fileHash": "06df99c3",
|
"fileHash": "c1a4f949",
|
||||||
"needsInterop": false
|
|
||||||
},
|
|
||||||
"three/examples/jsm/controls/TransformControls.js": {
|
|
||||||
"src": "../../three/examples/jsm/controls/TransformControls.js",
|
|
||||||
"file": "three_examples_jsm_controls_TransformControls__js.js",
|
|
||||||
"fileHash": "0772f5bb",
|
|
||||||
"needsInterop": false
|
"needsInterop": false
|
||||||
},
|
},
|
||||||
"three/examples/jsm/loaders/ColladaLoader.js": {
|
"three/examples/jsm/loaders/ColladaLoader.js": {
|
||||||
"src": "../../three/examples/jsm/loaders/ColladaLoader.js",
|
"src": "../../three/examples/jsm/loaders/ColladaLoader.js",
|
||||||
"file": "three_examples_jsm_loaders_ColladaLoader__js.js",
|
"file": "three_examples_jsm_loaders_ColladaLoader__js.js",
|
||||||
"fileHash": "9054d4c1",
|
"fileHash": "dcb1087e",
|
||||||
"needsInterop": false
|
"needsInterop": false
|
||||||
},
|
},
|
||||||
"three/examples/jsm/loaders/STLLoader.js": {
|
"three/examples/jsm/loaders/STLLoader.js": {
|
||||||
"src": "../../three/examples/jsm/loaders/STLLoader.js",
|
"src": "../../three/examples/jsm/loaders/STLLoader.js",
|
||||||
"file": "three_examples_jsm_loaders_STLLoader__js.js",
|
"file": "three_examples_jsm_loaders_STLLoader__js.js",
|
||||||
"fileHash": "3632de55",
|
"fileHash": "618ff280",
|
||||||
"needsInterop": false
|
"needsInterop": false
|
||||||
},
|
|
||||||
"esbuild": {
|
|
||||||
"src": "../../esbuild/lib/main.js",
|
|
||||||
"file": "esbuild.js",
|
|
||||||
"fileHash": "0a908aaf",
|
|
||||||
"needsInterop": true
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"chunks": {
|
"chunks": {
|
||||||
"chunk-22FAE54D": {
|
"chunk-5P7KF7VS": {
|
||||||
"file": "chunk-22FAE54D.js"
|
"file": "chunk-5P7KF7VS.js"
|
||||||
},
|
|
||||||
"chunk-VUNV25KB": {
|
|
||||||
"file": "chunk-VUNV25KB.js"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
12
node_modules/.vite/deps/chunk-22FAE54D.js → node_modules/.vite/deps/chunk-5P7KF7VS.js
generated
vendored
12
node_modules/.vite/deps/chunk-22FAE54D.js → node_modules/.vite/deps/chunk-5P7KF7VS.js
generated
vendored
|
|
@ -44170,14 +44170,4 @@ export {
|
||||||
WebGLUtils,
|
WebGLUtils,
|
||||||
WebGLRenderer
|
WebGLRenderer
|
||||||
};
|
};
|
||||||
/*! Bundled license information:
|
//# sourceMappingURL=chunk-5P7KF7VS.js.map
|
||||||
|
|
||||||
three/build/three.core.js:
|
|
||||||
three/build/three.module.js:
|
|
||||||
(**
|
|
||||||
* @license
|
|
||||||
* Copyright 2010-2025 Three.js Authors
|
|
||||||
* SPDX-License-Identifier: MIT
|
|
||||||
*)
|
|
||||||
*/
|
|
||||||
//# sourceMappingURL=chunk-22FAE54D.js.map
|
|
||||||
|
|
@ -1,15 +0,0 @@
|
||||||
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
||||||
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
||||||
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
||||||
}) : x)(function(x) {
|
|
||||||
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
||||||
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
||||||
});
|
|
||||||
var __commonJS = (cb, mod) => function __require2() {
|
|
||||||
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
||||||
};
|
|
||||||
|
|
||||||
export {
|
|
||||||
__require,
|
|
||||||
__commonJS
|
|
||||||
};
|
|
||||||
|
|
@ -1,7 +0,0 @@
|
||||||
{
|
|
||||||
"version": 3,
|
|
||||||
"sources": [],
|
|
||||||
"sourcesContent": [],
|
|
||||||
"mappings": "",
|
|
||||||
"names": []
|
|
||||||
}
|
|
||||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
|
|
@ -427,8 +427,7 @@ import {
|
||||||
setConsoleFunction,
|
setConsoleFunction,
|
||||||
warn,
|
warn,
|
||||||
warnOnce
|
warnOnce
|
||||||
} from "./chunk-22FAE54D.js";
|
} from "./chunk-5P7KF7VS.js";
|
||||||
import "./chunk-VUNV25KB.js";
|
|
||||||
export {
|
export {
|
||||||
ACESFilmicToneMapping,
|
ACESFilmicToneMapping,
|
||||||
AddEquation,
|
AddEquation,
|
||||||
|
|
|
||||||
|
|
@ -9,8 +9,7 @@ import {
|
||||||
TOUCH,
|
TOUCH,
|
||||||
Vector2,
|
Vector2,
|
||||||
Vector3
|
Vector3
|
||||||
} from "./chunk-22FAE54D.js";
|
} from "./chunk-5P7KF7VS.js";
|
||||||
import "./chunk-VUNV25KB.js";
|
|
||||||
|
|
||||||
// node_modules/three/examples/jsm/controls/OrbitControls.js
|
// node_modules/three/examples/jsm/controls/OrbitControls.js
|
||||||
var _changeEvent = { type: "change" };
|
var _changeEvent = { type: "change" };
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
1121
node_modules/.vite/deps/three_examples_jsm_controls_TransformControls__js.js
generated
vendored
1121
node_modules/.vite/deps/three_examples_jsm_controls_TransformControls__js.js
generated
vendored
File diff suppressed because it is too large
Load Diff
7
node_modules/.vite/deps/three_examples_jsm_controls_TransformControls__js.js.map
generated
vendored
7
node_modules/.vite/deps/three_examples_jsm_controls_TransformControls__js.js.map
generated
vendored
File diff suppressed because one or more lines are too long
|
|
@ -40,8 +40,7 @@ import {
|
||||||
Vector2,
|
Vector2,
|
||||||
Vector3,
|
Vector3,
|
||||||
VectorKeyframeTrack
|
VectorKeyframeTrack
|
||||||
} from "./chunk-22FAE54D.js";
|
} from "./chunk-5P7KF7VS.js";
|
||||||
import "./chunk-VUNV25KB.js";
|
|
||||||
|
|
||||||
// node_modules/three/examples/jsm/loaders/TGALoader.js
|
// node_modules/three/examples/jsm/loaders/TGALoader.js
|
||||||
var TGALoader = class extends DataTextureLoader {
|
var TGALoader = class extends DataTextureLoader {
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -7,8 +7,7 @@ import {
|
||||||
Loader,
|
Loader,
|
||||||
SRGBColorSpace,
|
SRGBColorSpace,
|
||||||
Vector3
|
Vector3
|
||||||
} from "./chunk-22FAE54D.js";
|
} from "./chunk-5P7KF7VS.js";
|
||||||
import "./chunk-VUNV25KB.js";
|
|
||||||
|
|
||||||
// node_modules/three/examples/jsm/loaders/STLLoader.js
|
// node_modules/three/examples/jsm/loaders/STLLoader.js
|
||||||
var STLLoader = class extends Loader {
|
var STLLoader = class extends Loader {
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -0,0 +1,3 @@
|
||||||
|
# esbuild
|
||||||
|
|
||||||
|
This is the Linux 64-bit binary for esbuild, a JavaScript bundler and minifier. See https://github.com/evanw/esbuild for details.
|
||||||
Binary file not shown.
|
|
@ -0,0 +1,20 @@
|
||||||
|
{
|
||||||
|
"name": "@esbuild/linux-x64",
|
||||||
|
"version": "0.25.12",
|
||||||
|
"description": "The Linux 64-bit binary for esbuild, a JavaScript bundler.",
|
||||||
|
"repository": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "git+https://github.com/evanw/esbuild.git"
|
||||||
|
},
|
||||||
|
"license": "MIT",
|
||||||
|
"preferUnplugged": true,
|
||||||
|
"engines": {
|
||||||
|
"node": ">=18"
|
||||||
|
},
|
||||||
|
"os": [
|
||||||
|
"linux"
|
||||||
|
],
|
||||||
|
"cpu": [
|
||||||
|
"x64"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,3 @@
|
||||||
|
# `@rollup/rollup-linux-x64-gnu`
|
||||||
|
|
||||||
|
This is the **x86_64-unknown-linux-gnu** binary for `rollup`
|
||||||
|
|
@ -0,0 +1,25 @@
|
||||||
|
{
|
||||||
|
"name": "@rollup/rollup-linux-x64-gnu",
|
||||||
|
"version": "4.52.5",
|
||||||
|
"os": [
|
||||||
|
"linux"
|
||||||
|
],
|
||||||
|
"cpu": [
|
||||||
|
"x64"
|
||||||
|
],
|
||||||
|
"files": [
|
||||||
|
"rollup.linux-x64-gnu.node"
|
||||||
|
],
|
||||||
|
"description": "Native bindings for Rollup",
|
||||||
|
"author": "Lukas Taegert-Atkinson",
|
||||||
|
"homepage": "https://rollupjs.org/",
|
||||||
|
"license": "MIT",
|
||||||
|
"repository": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "git+https://github.com/rollup/rollup.git"
|
||||||
|
},
|
||||||
|
"libc": [
|
||||||
|
"glibc"
|
||||||
|
],
|
||||||
|
"main": "./rollup.linux-x64-gnu.node"
|
||||||
|
}
|
||||||
BIN
node_modules/@rollup/rollup-linux-x64-gnu/rollup.linux-x64-gnu.node
generated
vendored
Normal file
BIN
node_modules/@rollup/rollup-linux-x64-gnu/rollup.linux-x64-gnu.node
generated
vendored
Normal file
Binary file not shown.
|
|
@ -0,0 +1,3 @@
|
||||||
|
# `@rollup/rollup-linux-x64-musl`
|
||||||
|
|
||||||
|
This is the **x86_64-unknown-linux-musl** binary for `rollup`
|
||||||
|
|
@ -0,0 +1,25 @@
|
||||||
|
{
|
||||||
|
"name": "@rollup/rollup-linux-x64-musl",
|
||||||
|
"version": "4.52.5",
|
||||||
|
"os": [
|
||||||
|
"linux"
|
||||||
|
],
|
||||||
|
"cpu": [
|
||||||
|
"x64"
|
||||||
|
],
|
||||||
|
"files": [
|
||||||
|
"rollup.linux-x64-musl.node"
|
||||||
|
],
|
||||||
|
"description": "Native bindings for Rollup",
|
||||||
|
"author": "Lukas Taegert-Atkinson",
|
||||||
|
"homepage": "https://rollupjs.org/",
|
||||||
|
"license": "MIT",
|
||||||
|
"repository": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "git+https://github.com/rollup/rollup.git"
|
||||||
|
},
|
||||||
|
"libc": [
|
||||||
|
"musl"
|
||||||
|
],
|
||||||
|
"main": "./rollup.linux-x64-musl.node"
|
||||||
|
}
|
||||||
BIN
node_modules/@rollup/rollup-linux-x64-musl/rollup.linux-x64-musl.node
generated
vendored
Normal file
BIN
node_modules/@rollup/rollup-linux-x64-musl/rollup.linux-x64-musl.node
generated
vendored
Normal file
Binary file not shown.
|
|
@ -31,7 +31,7 @@ BSD-2-Clause, CC0-1.0, ISC, MIT
|
||||||
## @jridgewell/gen-mapping, @jridgewell/remapping, @jridgewell/sourcemap-codec, @jridgewell/trace-mapping
|
## @jridgewell/gen-mapping, @jridgewell/remapping, @jridgewell/sourcemap-codec, @jridgewell/trace-mapping
|
||||||
License: MIT
|
License: MIT
|
||||||
By: Justin Ridgewell
|
By: Justin Ridgewell
|
||||||
Repositories: git+https://github.com/jridgewell/sourcemaps.git, git+https://github.com/jridgewell/sourcemaps.git, git+https://github.com/jridgewell/sourcemaps.git, git+https://github.com/jridgewell/sourcemaps.git
|
Repositories: https://github.com/jridgewell/sourcemaps, https://github.com/jridgewell/sourcemaps, https://github.com/jridgewell/sourcemaps, https://github.com/jridgewell/sourcemaps
|
||||||
|
|
||||||
> Copyright 2024 Justin Ridgewell <justin@ridgewell.name>
|
> Copyright 2024 Justin Ridgewell <justin@ridgewell.name>
|
||||||
>
|
>
|
||||||
|
|
@ -84,20 +84,20 @@ Repository: https://github.com/jridgewell/resolve-uri
|
||||||
|
|
||||||
## @polka/compression
|
## @polka/compression
|
||||||
License: MIT
|
License: MIT
|
||||||
Repository: lukeed/polka
|
Repository: https://github.com/lukeed/polka
|
||||||
|
|
||||||
---------------------------------------
|
---------------------------------------
|
||||||
|
|
||||||
## @polka/url
|
## @polka/url
|
||||||
License: MIT
|
License: MIT
|
||||||
By: Luke Edwards
|
By: Luke Edwards
|
||||||
Repository: lukeed/polka
|
Repository: https://github.com/lukeed/polka
|
||||||
|
|
||||||
---------------------------------------
|
---------------------------------------
|
||||||
|
|
||||||
## @rolldown/pluginutils
|
## @rolldown/pluginutils
|
||||||
License: MIT
|
License: MIT
|
||||||
Repository: git+https://github.com/rolldown/rolldown.git
|
Repository: https://github.com/rolldown/rolldown
|
||||||
|
|
||||||
> MIT License
|
> MIT License
|
||||||
>
|
>
|
||||||
|
|
@ -130,19 +130,19 @@ Repository: git+https://github.com/rolldown/rolldown.git
|
||||||
## @rollup/plugin-alias, @rollup/plugin-commonjs, @rollup/plugin-dynamic-import-vars, @rollup/pluginutils
|
## @rollup/plugin-alias, @rollup/plugin-commonjs, @rollup/plugin-dynamic-import-vars, @rollup/pluginutils
|
||||||
License: MIT
|
License: MIT
|
||||||
By: Johannes Stein
|
By: Johannes Stein
|
||||||
Repository: rollup/plugins
|
Repository: https://github.com/rollup/plugins
|
||||||
|
|
||||||
License: MIT
|
License: MIT
|
||||||
By: Rich Harris
|
By: Rich Harris
|
||||||
Repository: rollup/plugins
|
Repository: https://github.com/rollup/plugins
|
||||||
|
|
||||||
License: MIT
|
License: MIT
|
||||||
By: LarsDenBakker
|
By: LarsDenBakker
|
||||||
Repository: rollup/plugins
|
Repository: https://github.com/rollup/plugins
|
||||||
|
|
||||||
License: MIT
|
License: MIT
|
||||||
By: Rich Harris
|
By: Rich Harris
|
||||||
Repository: rollup/plugins
|
Repository: https://github.com/rollup/plugins
|
||||||
|
|
||||||
> The MIT License (MIT)
|
> The MIT License (MIT)
|
||||||
>
|
>
|
||||||
|
|
@ -194,7 +194,7 @@ Repository: https://github.com/micromatch/anymatch
|
||||||
## artichokie
|
## artichokie
|
||||||
License: MIT
|
License: MIT
|
||||||
By: sapphi-red, Evan You
|
By: sapphi-red, Evan You
|
||||||
Repository: git+https://github.com/sapphi-red/artichokie.git
|
Repository: https://github.com/sapphi-red/artichokie
|
||||||
|
|
||||||
> MIT License
|
> MIT License
|
||||||
>
|
>
|
||||||
|
|
@ -224,7 +224,7 @@ Repository: git+https://github.com/sapphi-red/artichokie.git
|
||||||
## binary-extensions
|
## binary-extensions
|
||||||
License: MIT
|
License: MIT
|
||||||
By: Sindre Sorhus
|
By: Sindre Sorhus
|
||||||
Repository: sindresorhus/binary-extensions
|
Repository: https://github.com/sindresorhus/binary-extensions
|
||||||
|
|
||||||
> MIT License
|
> MIT License
|
||||||
>
|
>
|
||||||
|
|
@ -242,15 +242,15 @@ Repository: sindresorhus/binary-extensions
|
||||||
## braces, fill-range, is-number
|
## braces, fill-range, is-number
|
||||||
License: MIT
|
License: MIT
|
||||||
By: Jon Schlinkert, Brian Woodward, Elan Shanker, Eugene Sharygin, hemanth.hm
|
By: Jon Schlinkert, Brian Woodward, Elan Shanker, Eugene Sharygin, hemanth.hm
|
||||||
Repository: micromatch/braces
|
Repository: https://github.com/micromatch/braces
|
||||||
|
|
||||||
License: MIT
|
License: MIT
|
||||||
By: Jon Schlinkert, Edo Rivai, Paul Miller, Rouven Weßling
|
By: Jon Schlinkert, Edo Rivai, Paul Miller, Rouven Weßling
|
||||||
Repository: jonschlinkert/fill-range
|
Repository: https://github.com/jonschlinkert/fill-range
|
||||||
|
|
||||||
License: MIT
|
License: MIT
|
||||||
By: Jon Schlinkert, Olsten Larck, Rouven Weßling
|
By: Jon Schlinkert, Olsten Larck, Rouven Weßling
|
||||||
Repository: jonschlinkert/is-number
|
Repository: https://github.com/jonschlinkert/is-number
|
||||||
|
|
||||||
> The MIT License (MIT)
|
> The MIT License (MIT)
|
||||||
>
|
>
|
||||||
|
|
@ -279,7 +279,7 @@ Repository: jonschlinkert/is-number
|
||||||
## bundle-name, default-browser, default-browser-id, define-lazy-prop, is-docker, is-inside-container, is-wsl, open, run-applescript, wsl-utils
|
## bundle-name, default-browser, default-browser-id, define-lazy-prop, is-docker, is-inside-container, is-wsl, open, run-applescript, wsl-utils
|
||||||
License: MIT
|
License: MIT
|
||||||
By: Sindre Sorhus
|
By: Sindre Sorhus
|
||||||
Repositories: sindresorhus/bundle-name, sindresorhus/default-browser, sindresorhus/default-browser-id, sindresorhus/define-lazy-prop, sindresorhus/is-docker, sindresorhus/is-inside-container, sindresorhus/is-wsl, sindresorhus/open, sindresorhus/run-applescript, sindresorhus/wsl-utils
|
Repositories: https://github.com/sindresorhus/bundle-name, https://github.com/sindresorhus/default-browser, https://github.com/sindresorhus/default-browser-id, https://github.com/sindresorhus/define-lazy-prop, https://github.com/sindresorhus/is-docker, https://github.com/sindresorhus/is-inside-container, https://github.com/sindresorhus/is-wsl, https://github.com/sindresorhus/open, https://github.com/sindresorhus/run-applescript, https://github.com/sindresorhus/wsl-utils
|
||||||
|
|
||||||
> MIT License
|
> MIT License
|
||||||
>
|
>
|
||||||
|
|
@ -296,7 +296,7 @@ Repositories: sindresorhus/bundle-name, sindresorhus/default-browser, sindresorh
|
||||||
## cac
|
## cac
|
||||||
License: MIT
|
License: MIT
|
||||||
By: egoist
|
By: egoist
|
||||||
Repository: egoist/cac
|
Repository: https://github.com/egoist/cac
|
||||||
|
|
||||||
> The MIT License (MIT)
|
> The MIT License (MIT)
|
||||||
>
|
>
|
||||||
|
|
@ -325,7 +325,7 @@ Repository: egoist/cac
|
||||||
## chokidar
|
## chokidar
|
||||||
License: MIT
|
License: MIT
|
||||||
By: Paul Miller, Elan Shanker
|
By: Paul Miller, Elan Shanker
|
||||||
Repository: git+https://github.com/paulmillr/chokidar.git
|
Repository: https://github.com/paulmillr/chokidar
|
||||||
|
|
||||||
> The MIT License (MIT)
|
> The MIT License (MIT)
|
||||||
>
|
>
|
||||||
|
|
@ -354,7 +354,7 @@ Repository: git+https://github.com/paulmillr/chokidar.git
|
||||||
## commondir, shell-quote
|
## commondir, shell-quote
|
||||||
License: MIT
|
License: MIT
|
||||||
By: James Halliday
|
By: James Halliday
|
||||||
Repositories: http://github.com/substack/node-commondir.git, http://github.com/ljharb/shell-quote.git
|
Repositories: http://github.com/substack/node-commondir, http://github.com/ljharb/shell-quote
|
||||||
|
|
||||||
> The MIT License
|
> The MIT License
|
||||||
>
|
>
|
||||||
|
|
@ -386,7 +386,7 @@ Repositories: http://github.com/substack/node-commondir.git, http://github.com/l
|
||||||
## connect
|
## connect
|
||||||
License: MIT
|
License: MIT
|
||||||
By: TJ Holowaychuk, Douglas Christopher Wilson, Jonathan Ong, Tim Caswell
|
By: TJ Holowaychuk, Douglas Christopher Wilson, Jonathan Ong, Tim Caswell
|
||||||
Repository: senchalabs/connect
|
Repository: https://github.com/senchalabs/connect
|
||||||
|
|
||||||
> (The MIT License)
|
> (The MIT License)
|
||||||
>
|
>
|
||||||
|
|
@ -419,7 +419,7 @@ Repository: senchalabs/connect
|
||||||
## convert-source-map
|
## convert-source-map
|
||||||
License: MIT
|
License: MIT
|
||||||
By: Thorsten Lorenz
|
By: Thorsten Lorenz
|
||||||
Repository: git://github.com/thlorenz/convert-source-map.git
|
Repository: https://github.com/thlorenz/convert-source-map
|
||||||
|
|
||||||
> Copyright 2013 Thorsten Lorenz.
|
> Copyright 2013 Thorsten Lorenz.
|
||||||
> All rights reserved.
|
> All rights reserved.
|
||||||
|
|
@ -450,7 +450,7 @@ Repository: git://github.com/thlorenz/convert-source-map.git
|
||||||
## cors
|
## cors
|
||||||
License: MIT
|
License: MIT
|
||||||
By: Troy Goode
|
By: Troy Goode
|
||||||
Repository: expressjs/cors
|
Repository: https://github.com/expressjs/cors
|
||||||
|
|
||||||
> (The MIT License)
|
> (The MIT License)
|
||||||
>
|
>
|
||||||
|
|
@ -480,7 +480,7 @@ Repository: expressjs/cors
|
||||||
## cross-spawn
|
## cross-spawn
|
||||||
License: MIT
|
License: MIT
|
||||||
By: André Cruz
|
By: André Cruz
|
||||||
Repository: git@github.com:moxystudio/node-cross-spawn.git
|
Repository: https://github.com/moxystudio/node-cross-spawn
|
||||||
|
|
||||||
> The MIT License (MIT)
|
> The MIT License (MIT)
|
||||||
>
|
>
|
||||||
|
|
@ -509,7 +509,7 @@ Repository: git@github.com:moxystudio/node-cross-spawn.git
|
||||||
## cssesc
|
## cssesc
|
||||||
License: MIT
|
License: MIT
|
||||||
By: Mathias Bynens
|
By: Mathias Bynens
|
||||||
Repository: https://github.com/mathiasbynens/cssesc.git
|
Repository: https://github.com/mathiasbynens/cssesc
|
||||||
|
|
||||||
> Copyright Mathias Bynens <https://mathiasbynens.be/>
|
> Copyright Mathias Bynens <https://mathiasbynens.be/>
|
||||||
>
|
>
|
||||||
|
|
@ -537,7 +537,7 @@ Repository: https://github.com/mathiasbynens/cssesc.git
|
||||||
## debug
|
## debug
|
||||||
License: MIT
|
License: MIT
|
||||||
By: Josh Junon, TJ Holowaychuk, Nathan Rajlich, Andrew Rhyne
|
By: Josh Junon, TJ Holowaychuk, Nathan Rajlich, Andrew Rhyne
|
||||||
Repository: git://github.com/debug-js/debug.git
|
Repository: https://github.com/debug-js/debug
|
||||||
|
|
||||||
> (The MIT License)
|
> (The MIT License)
|
||||||
>
|
>
|
||||||
|
|
@ -563,7 +563,7 @@ Repository: git://github.com/debug-js/debug.git
|
||||||
|
|
||||||
## dotenv
|
## dotenv
|
||||||
License: BSD-2-Clause
|
License: BSD-2-Clause
|
||||||
Repository: git://github.com/motdotla/dotenv.git
|
Repository: https://github.com/motdotla/dotenv
|
||||||
|
|
||||||
> Copyright (c) 2015, Scott Motte
|
> Copyright (c) 2015, Scott Motte
|
||||||
> All rights reserved.
|
> All rights reserved.
|
||||||
|
|
@ -625,7 +625,7 @@ Repository: https://github.com/motdotla/dotenv-expand
|
||||||
## ee-first
|
## ee-first
|
||||||
License: MIT
|
License: MIT
|
||||||
By: Jonathan Ong, Douglas Christopher Wilson
|
By: Jonathan Ong, Douglas Christopher Wilson
|
||||||
Repository: jonathanong/ee-first
|
Repository: https://github.com/jonathanong/ee-first
|
||||||
|
|
||||||
> The MIT License (MIT)
|
> The MIT License (MIT)
|
||||||
>
|
>
|
||||||
|
|
@ -654,7 +654,7 @@ Repository: jonathanong/ee-first
|
||||||
## encodeurl
|
## encodeurl
|
||||||
License: MIT
|
License: MIT
|
||||||
By: Douglas Christopher Wilson
|
By: Douglas Christopher Wilson
|
||||||
Repository: pillarjs/encodeurl
|
Repository: https://github.com/pillarjs/encodeurl
|
||||||
|
|
||||||
> (The MIT License)
|
> (The MIT License)
|
||||||
>
|
>
|
||||||
|
|
@ -684,7 +684,7 @@ Repository: pillarjs/encodeurl
|
||||||
## entities
|
## entities
|
||||||
License: BSD-2-Clause
|
License: BSD-2-Clause
|
||||||
By: Felix Boehm
|
By: Felix Boehm
|
||||||
Repository: git://github.com/fb55/entities.git
|
Repository: https://github.com/fb55/entities
|
||||||
|
|
||||||
> Copyright (c) Felix Böhm
|
> Copyright (c) Felix Böhm
|
||||||
> All rights reserved.
|
> All rights reserved.
|
||||||
|
|
@ -703,7 +703,7 @@ Repository: git://github.com/fb55/entities.git
|
||||||
## es-module-lexer
|
## es-module-lexer
|
||||||
License: MIT
|
License: MIT
|
||||||
By: Guy Bedford
|
By: Guy Bedford
|
||||||
Repository: git+https://github.com/guybedford/es-module-lexer.git
|
Repository: https://github.com/guybedford/es-module-lexer
|
||||||
|
|
||||||
> MIT License
|
> MIT License
|
||||||
> -----------
|
> -----------
|
||||||
|
|
@ -720,7 +720,7 @@ Repository: git+https://github.com/guybedford/es-module-lexer.git
|
||||||
|
|
||||||
## escape-html
|
## escape-html
|
||||||
License: MIT
|
License: MIT
|
||||||
Repository: component/escape-html
|
Repository: https://github.com/component/escape-html
|
||||||
|
|
||||||
> (The MIT License)
|
> (The MIT License)
|
||||||
>
|
>
|
||||||
|
|
@ -767,7 +767,7 @@ Repository: https://github.com/Rich-Harris/estree-walker
|
||||||
## etag
|
## etag
|
||||||
License: MIT
|
License: MIT
|
||||||
By: Douglas Christopher Wilson, David Björklund
|
By: Douglas Christopher Wilson, David Björklund
|
||||||
Repository: jshttp/etag
|
Repository: https://github.com/jshttp/etag
|
||||||
|
|
||||||
> (The MIT License)
|
> (The MIT License)
|
||||||
>
|
>
|
||||||
|
|
@ -797,7 +797,7 @@ Repository: jshttp/etag
|
||||||
## finalhandler
|
## finalhandler
|
||||||
License: MIT
|
License: MIT
|
||||||
By: Douglas Christopher Wilson
|
By: Douglas Christopher Wilson
|
||||||
Repository: pillarjs/finalhandler
|
Repository: https://github.com/pillarjs/finalhandler
|
||||||
|
|
||||||
> (The MIT License)
|
> (The MIT License)
|
||||||
>
|
>
|
||||||
|
|
@ -827,7 +827,7 @@ Repository: pillarjs/finalhandler
|
||||||
## follow-redirects
|
## follow-redirects
|
||||||
License: MIT
|
License: MIT
|
||||||
By: Ruben Verborgh, Olivier Lalonde, James Talmage
|
By: Ruben Verborgh, Olivier Lalonde, James Talmage
|
||||||
Repository: git+ssh://git@github.com/follow-redirects/follow-redirects.git
|
Repository: https://github.com/follow-redirects/follow-redirects
|
||||||
|
|
||||||
> Copyright 2014–present Olivier Lalonde <olalonde@gmail.com>, James Talmage <james@talmage.io>, Ruben Verborgh
|
> Copyright 2014–present Olivier Lalonde <olalonde@gmail.com>, James Talmage <james@talmage.io>, Ruben Verborgh
|
||||||
>
|
>
|
||||||
|
|
@ -853,7 +853,7 @@ Repository: git+ssh://git@github.com/follow-redirects/follow-redirects.git
|
||||||
## generic-names
|
## generic-names
|
||||||
License: MIT
|
License: MIT
|
||||||
By: Alexey Litvinov
|
By: Alexey Litvinov
|
||||||
Repository: git+https://github.com/css-modules/generic-names.git
|
Repository: https://github.com/css-modules/generic-names
|
||||||
|
|
||||||
> The MIT License (MIT)
|
> The MIT License (MIT)
|
||||||
>
|
>
|
||||||
|
|
@ -882,7 +882,7 @@ Repository: git+https://github.com/css-modules/generic-names.git
|
||||||
## glob-parent
|
## glob-parent
|
||||||
License: ISC
|
License: ISC
|
||||||
By: Gulp Team, Elan Shanker, Blaine Bublitz
|
By: Gulp Team, Elan Shanker, Blaine Bublitz
|
||||||
Repository: gulpjs/glob-parent
|
Repository: https://github.com/gulpjs/glob-parent
|
||||||
|
|
||||||
> The ISC License
|
> The ISC License
|
||||||
>
|
>
|
||||||
|
|
@ -905,7 +905,7 @@ Repository: gulpjs/glob-parent
|
||||||
## host-validation-middleware
|
## host-validation-middleware
|
||||||
License: MIT
|
License: MIT
|
||||||
By: sapphi-red
|
By: sapphi-red
|
||||||
Repository: git+https://github.com/sapphi-red/host-validation-middleware.git
|
Repository: https://github.com/sapphi-red/host-validation-middleware
|
||||||
|
|
||||||
> MIT License
|
> MIT License
|
||||||
>
|
>
|
||||||
|
|
@ -934,7 +934,7 @@ Repository: git+https://github.com/sapphi-red/host-validation-middleware.git
|
||||||
## http-proxy-3
|
## http-proxy-3
|
||||||
License: MIT
|
License: MIT
|
||||||
By: William Stein, Charlie Robbins, Jimb Esser, jcrugzz
|
By: William Stein, Charlie Robbins, Jimb Esser, jcrugzz
|
||||||
Repository: https://github.com/sagemathinc/http-proxy-3.git
|
Repository: https://github.com/sagemathinc/http-proxy-3
|
||||||
|
|
||||||
> node-http-3
|
> node-http-3
|
||||||
>
|
>
|
||||||
|
|
@ -964,7 +964,7 @@ Repository: https://github.com/sagemathinc/http-proxy-3.git
|
||||||
## icss-utils
|
## icss-utils
|
||||||
License: ISC
|
License: ISC
|
||||||
By: Glen Maddern
|
By: Glen Maddern
|
||||||
Repository: git+https://github.com/css-modules/icss-utils.git
|
Repository: https://github.com/css-modules/icss-utils
|
||||||
|
|
||||||
> ISC License (ISC)
|
> ISC License (ISC)
|
||||||
> Copyright 2018 Glen Maddern
|
> Copyright 2018 Glen Maddern
|
||||||
|
|
@ -978,7 +978,7 @@ Repository: git+https://github.com/css-modules/icss-utils.git
|
||||||
## is-binary-path
|
## is-binary-path
|
||||||
License: MIT
|
License: MIT
|
||||||
By: Sindre Sorhus
|
By: Sindre Sorhus
|
||||||
Repository: sindresorhus/is-binary-path
|
Repository: https://github.com/sindresorhus/is-binary-path
|
||||||
|
|
||||||
> MIT License
|
> MIT License
|
||||||
>
|
>
|
||||||
|
|
@ -995,7 +995,7 @@ Repository: sindresorhus/is-binary-path
|
||||||
## is-extglob
|
## is-extglob
|
||||||
License: MIT
|
License: MIT
|
||||||
By: Jon Schlinkert
|
By: Jon Schlinkert
|
||||||
Repository: jonschlinkert/is-extglob
|
Repository: https://github.com/jonschlinkert/is-extglob
|
||||||
|
|
||||||
> The MIT License (MIT)
|
> The MIT License (MIT)
|
||||||
>
|
>
|
||||||
|
|
@ -1024,7 +1024,7 @@ Repository: jonschlinkert/is-extglob
|
||||||
## is-glob
|
## is-glob
|
||||||
License: MIT
|
License: MIT
|
||||||
By: Jon Schlinkert, Brian Woodward, Daniel Perez
|
By: Jon Schlinkert, Brian Woodward, Daniel Perez
|
||||||
Repository: micromatch/is-glob
|
Repository: https://github.com/micromatch/is-glob
|
||||||
|
|
||||||
> The MIT License (MIT)
|
> The MIT License (MIT)
|
||||||
>
|
>
|
||||||
|
|
@ -1053,14 +1053,14 @@ Repository: micromatch/is-glob
|
||||||
## is-reference
|
## is-reference
|
||||||
License: MIT
|
License: MIT
|
||||||
By: Rich Harris
|
By: Rich Harris
|
||||||
Repository: git+https://github.com/Rich-Harris/is-reference.git
|
Repository: https://github.com/Rich-Harris/is-reference
|
||||||
|
|
||||||
---------------------------------------
|
---------------------------------------
|
||||||
|
|
||||||
## isexe, which
|
## isexe, which
|
||||||
License: ISC
|
License: ISC
|
||||||
By: Isaac Z. Schlueter
|
By: Isaac Z. Schlueter
|
||||||
Repositories: git+https://github.com/isaacs/isexe.git, git://github.com/isaacs/node-which.git
|
Repositories: https://github.com/isaacs/isexe, https://github.com/isaacs/node-which
|
||||||
|
|
||||||
> The ISC License
|
> The ISC License
|
||||||
>
|
>
|
||||||
|
|
@ -1083,7 +1083,7 @@ Repositories: git+https://github.com/isaacs/isexe.git, git://github.com/isaacs/n
|
||||||
## js-tokens
|
## js-tokens
|
||||||
License: MIT
|
License: MIT
|
||||||
By: Simon Lydell
|
By: Simon Lydell
|
||||||
Repository: lydell/js-tokens
|
Repository: https://github.com/lydell/js-tokens
|
||||||
|
|
||||||
> The MIT License (MIT)
|
> The MIT License (MIT)
|
||||||
>
|
>
|
||||||
|
|
@ -1112,7 +1112,7 @@ Repository: lydell/js-tokens
|
||||||
## launch-editor, launch-editor-middleware
|
## launch-editor, launch-editor-middleware
|
||||||
License: MIT
|
License: MIT
|
||||||
By: Evan You
|
By: Evan You
|
||||||
Repositories: git+https://github.com/yyx990803/launch-editor.git, git+https://github.com/yyx990803/launch-editor.git
|
Repositories: https://github.com/yyx990803/launch-editor, https://github.com/yyx990803/launch-editor
|
||||||
|
|
||||||
> The MIT License (MIT)
|
> The MIT License (MIT)
|
||||||
>
|
>
|
||||||
|
|
@ -1170,7 +1170,7 @@ Repository: https://github.com/antonk52/lilconfig
|
||||||
## loader-utils
|
## loader-utils
|
||||||
License: MIT
|
License: MIT
|
||||||
By: Tobias Koppers @sokra
|
By: Tobias Koppers @sokra
|
||||||
Repository: https://github.com/webpack/loader-utils.git
|
Repository: https://github.com/webpack/loader-utils
|
||||||
|
|
||||||
> Copyright JS Foundation and other contributors
|
> Copyright JS Foundation and other contributors
|
||||||
>
|
>
|
||||||
|
|
@ -1198,7 +1198,7 @@ Repository: https://github.com/webpack/loader-utils.git
|
||||||
## lodash.camelcase
|
## lodash.camelcase
|
||||||
License: MIT
|
License: MIT
|
||||||
By: John-David Dalton, Blaine Bublitz, Mathias Bynens
|
By: John-David Dalton, Blaine Bublitz, Mathias Bynens
|
||||||
Repository: lodash/lodash
|
Repository: https://github.com/lodash/lodash
|
||||||
|
|
||||||
> Copyright jQuery Foundation and other contributors <https://jquery.org/>
|
> Copyright jQuery Foundation and other contributors <https://jquery.org/>
|
||||||
>
|
>
|
||||||
|
|
@ -1253,7 +1253,7 @@ Repository: lodash/lodash
|
||||||
## magic-string
|
## magic-string
|
||||||
License: MIT
|
License: MIT
|
||||||
By: Rich Harris
|
By: Rich Harris
|
||||||
Repository: https://github.com/rich-harris/magic-string.git
|
Repository: https://github.com/Rich-Harris/magic-string
|
||||||
|
|
||||||
> Copyright 2018 Rich Harris
|
> Copyright 2018 Rich Harris
|
||||||
>
|
>
|
||||||
|
|
@ -1267,7 +1267,7 @@ Repository: https://github.com/rich-harris/magic-string.git
|
||||||
|
|
||||||
## mlly, ufo
|
## mlly, ufo
|
||||||
License: MIT
|
License: MIT
|
||||||
Repositories: unjs/mlly, unjs/ufo
|
Repositories: https://github.com/unjs/mlly, https://github.com/unjs/ufo
|
||||||
|
|
||||||
> MIT License
|
> MIT License
|
||||||
>
|
>
|
||||||
|
|
@ -1296,7 +1296,7 @@ Repositories: unjs/mlly, unjs/ufo
|
||||||
## mrmime
|
## mrmime
|
||||||
License: MIT
|
License: MIT
|
||||||
By: Luke Edwards
|
By: Luke Edwards
|
||||||
Repository: lukeed/mrmime
|
Repository: https://github.com/lukeed/mrmime
|
||||||
|
|
||||||
> The MIT License (MIT)
|
> The MIT License (MIT)
|
||||||
>
|
>
|
||||||
|
|
@ -1324,7 +1324,7 @@ Repository: lukeed/mrmime
|
||||||
|
|
||||||
## ms
|
## ms
|
||||||
License: MIT
|
License: MIT
|
||||||
Repository: vercel/ms
|
Repository: https://github.com/vercel/ms
|
||||||
|
|
||||||
> The MIT License (MIT)
|
> The MIT License (MIT)
|
||||||
>
|
>
|
||||||
|
|
@ -1353,7 +1353,7 @@ Repository: vercel/ms
|
||||||
## normalize-path
|
## normalize-path
|
||||||
License: MIT
|
License: MIT
|
||||||
By: Jon Schlinkert, Blaine Bublitz
|
By: Jon Schlinkert, Blaine Bublitz
|
||||||
Repository: jonschlinkert/normalize-path
|
Repository: https://github.com/jonschlinkert/normalize-path
|
||||||
|
|
||||||
> The MIT License (MIT)
|
> The MIT License (MIT)
|
||||||
>
|
>
|
||||||
|
|
@ -1382,7 +1382,7 @@ Repository: jonschlinkert/normalize-path
|
||||||
## object-assign
|
## object-assign
|
||||||
License: MIT
|
License: MIT
|
||||||
By: Sindre Sorhus
|
By: Sindre Sorhus
|
||||||
Repository: sindresorhus/object-assign
|
Repository: https://github.com/sindresorhus/object-assign
|
||||||
|
|
||||||
> The MIT License (MIT)
|
> The MIT License (MIT)
|
||||||
>
|
>
|
||||||
|
|
@ -1411,7 +1411,7 @@ Repository: sindresorhus/object-assign
|
||||||
## on-finished
|
## on-finished
|
||||||
License: MIT
|
License: MIT
|
||||||
By: Douglas Christopher Wilson, Jonathan Ong
|
By: Douglas Christopher Wilson, Jonathan Ong
|
||||||
Repository: jshttp/on-finished
|
Repository: https://github.com/jshttp/on-finished
|
||||||
|
|
||||||
> (The MIT License)
|
> (The MIT License)
|
||||||
>
|
>
|
||||||
|
|
@ -1442,7 +1442,7 @@ Repository: jshttp/on-finished
|
||||||
## parse5
|
## parse5
|
||||||
License: MIT
|
License: MIT
|
||||||
By: Ivan Nikulin, https://github.com/inikulin/parse5/graphs/contributors
|
By: Ivan Nikulin, https://github.com/inikulin/parse5/graphs/contributors
|
||||||
Repository: git://github.com/inikulin/parse5.git
|
Repository: https://github.com/inikulin/parse5
|
||||||
|
|
||||||
> Copyright (c) 2013-2019 Ivan Nikulin (ifaaan@gmail.com, https://github.com/inikulin)
|
> Copyright (c) 2013-2019 Ivan Nikulin (ifaaan@gmail.com, https://github.com/inikulin)
|
||||||
>
|
>
|
||||||
|
|
@ -1469,7 +1469,7 @@ Repository: git://github.com/inikulin/parse5.git
|
||||||
## parseurl
|
## parseurl
|
||||||
License: MIT
|
License: MIT
|
||||||
By: Douglas Christopher Wilson, Jonathan Ong
|
By: Douglas Christopher Wilson, Jonathan Ong
|
||||||
Repository: pillarjs/parseurl
|
Repository: https://github.com/pillarjs/parseurl
|
||||||
|
|
||||||
> (The MIT License)
|
> (The MIT License)
|
||||||
>
|
>
|
||||||
|
|
@ -1500,7 +1500,7 @@ Repository: pillarjs/parseurl
|
||||||
## path-key, shebang-regex
|
## path-key, shebang-regex
|
||||||
License: MIT
|
License: MIT
|
||||||
By: Sindre Sorhus
|
By: Sindre Sorhus
|
||||||
Repositories: sindresorhus/path-key, sindresorhus/shebang-regex
|
Repositories: https://github.com/sindresorhus/path-key, https://github.com/sindresorhus/shebang-regex
|
||||||
|
|
||||||
> MIT License
|
> MIT License
|
||||||
>
|
>
|
||||||
|
|
@ -1516,7 +1516,7 @@ Repositories: sindresorhus/path-key, sindresorhus/shebang-regex
|
||||||
|
|
||||||
## periscopic
|
## periscopic
|
||||||
License: MIT
|
License: MIT
|
||||||
Repository: Rich-Harris/periscopic
|
Repository: https://github.com/Rich-Harris/periscopic
|
||||||
|
|
||||||
> Copyright (c) 2019 Rich Harris
|
> Copyright (c) 2019 Rich Harris
|
||||||
>
|
>
|
||||||
|
|
@ -1531,7 +1531,7 @@ Repository: Rich-Harris/periscopic
|
||||||
## picocolors
|
## picocolors
|
||||||
License: ISC
|
License: ISC
|
||||||
By: Alexey Raspopov
|
By: Alexey Raspopov
|
||||||
Repository: alexeyraspopov/picocolors
|
Repository: https://github.com/alexeyraspopov/picocolors
|
||||||
|
|
||||||
> ISC License
|
> ISC License
|
||||||
>
|
>
|
||||||
|
|
@ -1554,7 +1554,7 @@ Repository: alexeyraspopov/picocolors
|
||||||
## postcss-import
|
## postcss-import
|
||||||
License: MIT
|
License: MIT
|
||||||
By: Maxime Thirouin
|
By: Maxime Thirouin
|
||||||
Repository: https://github.com/postcss/postcss-import.git
|
Repository: https://github.com/postcss/postcss-import
|
||||||
|
|
||||||
> The MIT License (MIT)
|
> The MIT License (MIT)
|
||||||
>
|
>
|
||||||
|
|
@ -1582,7 +1582,7 @@ Repository: https://github.com/postcss/postcss-import.git
|
||||||
## postcss-load-config
|
## postcss-load-config
|
||||||
License: MIT
|
License: MIT
|
||||||
By: Michael Ciniawky, Ryan Dunckel, Mateusz Derks, Dalton Santos, Patrick Gilday, François Wouts
|
By: Michael Ciniawky, Ryan Dunckel, Mateusz Derks, Dalton Santos, Patrick Gilday, François Wouts
|
||||||
Repository: postcss/postcss-load-config
|
Repository: https://github.com/postcss/postcss-load-config
|
||||||
|
|
||||||
> The MIT License (MIT)
|
> The MIT License (MIT)
|
||||||
>
|
>
|
||||||
|
|
@ -1610,7 +1610,7 @@ Repository: postcss/postcss-load-config
|
||||||
## postcss-modules
|
## postcss-modules
|
||||||
License: MIT
|
License: MIT
|
||||||
By: Alexander Madyankin
|
By: Alexander Madyankin
|
||||||
Repository: https://github.com/css-modules/postcss-modules.git
|
Repository: https://github.com/css-modules/postcss-modules
|
||||||
|
|
||||||
> The MIT License (MIT)
|
> The MIT License (MIT)
|
||||||
>
|
>
|
||||||
|
|
@ -1638,7 +1638,7 @@ Repository: https://github.com/css-modules/postcss-modules.git
|
||||||
## postcss-modules-extract-imports
|
## postcss-modules-extract-imports
|
||||||
License: ISC
|
License: ISC
|
||||||
By: Glen Maddern
|
By: Glen Maddern
|
||||||
Repository: https://github.com/css-modules/postcss-modules-extract-imports.git
|
Repository: https://github.com/css-modules/postcss-modules-extract-imports
|
||||||
|
|
||||||
> Copyright 2015 Glen Maddern
|
> Copyright 2015 Glen Maddern
|
||||||
>
|
>
|
||||||
|
|
@ -1651,7 +1651,7 @@ Repository: https://github.com/css-modules/postcss-modules-extract-imports.git
|
||||||
## postcss-modules-local-by-default
|
## postcss-modules-local-by-default
|
||||||
License: MIT
|
License: MIT
|
||||||
By: Mark Dalgleish
|
By: Mark Dalgleish
|
||||||
Repository: https://github.com/css-modules/postcss-modules-local-by-default.git
|
Repository: https://github.com/css-modules/postcss-modules-local-by-default
|
||||||
|
|
||||||
> The MIT License (MIT)
|
> The MIT License (MIT)
|
||||||
>
|
>
|
||||||
|
|
@ -1679,7 +1679,7 @@ Repository: https://github.com/css-modules/postcss-modules-local-by-default.git
|
||||||
## postcss-modules-scope
|
## postcss-modules-scope
|
||||||
License: ISC
|
License: ISC
|
||||||
By: Glen Maddern
|
By: Glen Maddern
|
||||||
Repository: https://github.com/css-modules/postcss-modules-scope.git
|
Repository: https://github.com/css-modules/postcss-modules-scope
|
||||||
|
|
||||||
> ISC License (ISC)
|
> ISC License (ISC)
|
||||||
>
|
>
|
||||||
|
|
@ -1694,7 +1694,7 @@ Repository: https://github.com/css-modules/postcss-modules-scope.git
|
||||||
## postcss-modules-values
|
## postcss-modules-values
|
||||||
License: ISC
|
License: ISC
|
||||||
By: Glen Maddern
|
By: Glen Maddern
|
||||||
Repository: git+https://github.com/css-modules/postcss-modules-values.git
|
Repository: https://github.com/css-modules/postcss-modules-values
|
||||||
|
|
||||||
> ISC License (ISC)
|
> ISC License (ISC)
|
||||||
>
|
>
|
||||||
|
|
@ -1709,7 +1709,7 @@ Repository: git+https://github.com/css-modules/postcss-modules-values.git
|
||||||
## postcss-selector-parser
|
## postcss-selector-parser
|
||||||
License: MIT
|
License: MIT
|
||||||
By: Ben Briggs, Chris Eppstein
|
By: Ben Briggs, Chris Eppstein
|
||||||
Repository: postcss/postcss-selector-parser
|
Repository: https://github.com/postcss/postcss-selector-parser
|
||||||
|
|
||||||
> Copyright (c) Ben Briggs <beneb.info@gmail.com> (http://beneb.info)
|
> Copyright (c) Ben Briggs <beneb.info@gmail.com> (http://beneb.info)
|
||||||
>
|
>
|
||||||
|
|
@ -1739,7 +1739,7 @@ Repository: postcss/postcss-selector-parser
|
||||||
## postcss-value-parser
|
## postcss-value-parser
|
||||||
License: MIT
|
License: MIT
|
||||||
By: Bogdan Chadkin
|
By: Bogdan Chadkin
|
||||||
Repository: https://github.com/TrySound/postcss-value-parser.git
|
Repository: https://github.com/TrySound/postcss-value-parser
|
||||||
|
|
||||||
> Copyright (c) Bogdan Chadkin <trysound@yandex.ru>
|
> Copyright (c) Bogdan Chadkin <trysound@yandex.ru>
|
||||||
>
|
>
|
||||||
|
|
@ -1769,7 +1769,7 @@ Repository: https://github.com/TrySound/postcss-value-parser.git
|
||||||
## readdirp
|
## readdirp
|
||||||
License: MIT
|
License: MIT
|
||||||
By: Thorsten Lorenz, Paul Miller
|
By: Thorsten Lorenz, Paul Miller
|
||||||
Repository: git://github.com/paulmillr/readdirp.git
|
Repository: https://github.com/paulmillr/readdirp
|
||||||
|
|
||||||
> MIT License
|
> MIT License
|
||||||
>
|
>
|
||||||
|
|
@ -1798,7 +1798,7 @@ Repository: git://github.com/paulmillr/readdirp.git
|
||||||
## resolve.exports, totalist
|
## resolve.exports, totalist
|
||||||
License: MIT
|
License: MIT
|
||||||
By: Luke Edwards
|
By: Luke Edwards
|
||||||
Repositories: lukeed/resolve.exports, lukeed/totalist
|
Repositories: https://github.com/lukeed/resolve.exports, https://github.com/lukeed/totalist
|
||||||
|
|
||||||
> The MIT License (MIT)
|
> The MIT License (MIT)
|
||||||
>
|
>
|
||||||
|
|
@ -1827,7 +1827,7 @@ Repositories: lukeed/resolve.exports, lukeed/totalist
|
||||||
## shebang-command
|
## shebang-command
|
||||||
License: MIT
|
License: MIT
|
||||||
By: Kevin Mårtensson
|
By: Kevin Mårtensson
|
||||||
Repository: kevva/shebang-command
|
Repository: https://github.com/kevva/shebang-command
|
||||||
|
|
||||||
> MIT License
|
> MIT License
|
||||||
>
|
>
|
||||||
|
|
@ -1844,14 +1844,14 @@ Repository: kevva/shebang-command
|
||||||
## sirv
|
## sirv
|
||||||
License: MIT
|
License: MIT
|
||||||
By: Luke Edwards
|
By: Luke Edwards
|
||||||
Repository: lukeed/sirv
|
Repository: https://github.com/lukeed/sirv
|
||||||
|
|
||||||
---------------------------------------
|
---------------------------------------
|
||||||
|
|
||||||
## statuses
|
## statuses
|
||||||
License: MIT
|
License: MIT
|
||||||
By: Douglas Christopher Wilson, Jonathan Ong
|
By: Douglas Christopher Wilson, Jonathan Ong
|
||||||
Repository: jshttp/statuses
|
Repository: https://github.com/jshttp/statuses
|
||||||
|
|
||||||
> The MIT License (MIT)
|
> The MIT License (MIT)
|
||||||
>
|
>
|
||||||
|
|
@ -1881,14 +1881,14 @@ Repository: jshttp/statuses
|
||||||
## string-hash
|
## string-hash
|
||||||
License: CC0-1.0
|
License: CC0-1.0
|
||||||
By: The Dark Sky Company
|
By: The Dark Sky Company
|
||||||
Repository: git://github.com/darkskyapp/string-hash.git
|
Repository: https://github.com/darkskyapp/string-hash
|
||||||
|
|
||||||
---------------------------------------
|
---------------------------------------
|
||||||
|
|
||||||
## strip-literal
|
## strip-literal
|
||||||
License: MIT
|
License: MIT
|
||||||
By: Anthony Fu
|
By: Anthony Fu
|
||||||
Repository: git+https://github.com/antfu/strip-literal.git
|
Repository: https://github.com/antfu/strip-literal
|
||||||
|
|
||||||
> MIT License
|
> MIT License
|
||||||
>
|
>
|
||||||
|
|
@ -1917,7 +1917,7 @@ Repository: git+https://github.com/antfu/strip-literal.git
|
||||||
## to-regex-range
|
## to-regex-range
|
||||||
License: MIT
|
License: MIT
|
||||||
By: Jon Schlinkert, Rouven Weßling
|
By: Jon Schlinkert, Rouven Weßling
|
||||||
Repository: micromatch/to-regex-range
|
Repository: https://github.com/micromatch/to-regex-range
|
||||||
|
|
||||||
> The MIT License (MIT)
|
> The MIT License (MIT)
|
||||||
>
|
>
|
||||||
|
|
@ -1946,7 +1946,7 @@ Repository: micromatch/to-regex-range
|
||||||
## tsconfck
|
## tsconfck
|
||||||
License: MIT
|
License: MIT
|
||||||
By: dominikg
|
By: dominikg
|
||||||
Repository: git+https://github.com/dominikg/tsconfck.git
|
Repository: https://github.com/dominikg/tsconfck
|
||||||
|
|
||||||
> MIT License
|
> MIT License
|
||||||
>
|
>
|
||||||
|
|
@ -2000,7 +2000,7 @@ Repository: git+https://github.com/dominikg/tsconfck.git
|
||||||
## unpipe
|
## unpipe
|
||||||
License: MIT
|
License: MIT
|
||||||
By: Douglas Christopher Wilson
|
By: Douglas Christopher Wilson
|
||||||
Repository: stream-utils/unpipe
|
Repository: https://github.com/stream-utils/unpipe
|
||||||
|
|
||||||
> (The MIT License)
|
> (The MIT License)
|
||||||
>
|
>
|
||||||
|
|
@ -2030,7 +2030,7 @@ Repository: stream-utils/unpipe
|
||||||
## util-deprecate
|
## util-deprecate
|
||||||
License: MIT
|
License: MIT
|
||||||
By: Nathan Rajlich
|
By: Nathan Rajlich
|
||||||
Repository: git://github.com/TooTallNate/util-deprecate.git
|
Repository: https://github.com/TooTallNate/util-deprecate
|
||||||
|
|
||||||
> (The MIT License)
|
> (The MIT License)
|
||||||
>
|
>
|
||||||
|
|
@ -2062,7 +2062,7 @@ Repository: git://github.com/TooTallNate/util-deprecate.git
|
||||||
## utils-merge
|
## utils-merge
|
||||||
License: MIT
|
License: MIT
|
||||||
By: Jared Hanson
|
By: Jared Hanson
|
||||||
Repository: git://github.com/jaredhanson/utils-merge.git
|
Repository: https://github.com/jaredhanson/utils-merge
|
||||||
|
|
||||||
> The MIT License (MIT)
|
> The MIT License (MIT)
|
||||||
>
|
>
|
||||||
|
|
@ -2090,7 +2090,7 @@ Repository: git://github.com/jaredhanson/utils-merge.git
|
||||||
## vary
|
## vary
|
||||||
License: MIT
|
License: MIT
|
||||||
By: Douglas Christopher Wilson
|
By: Douglas Christopher Wilson
|
||||||
Repository: jshttp/vary
|
Repository: https://github.com/jshttp/vary
|
||||||
|
|
||||||
> (The MIT License)
|
> (The MIT License)
|
||||||
>
|
>
|
||||||
|
|
@ -2120,7 +2120,7 @@ Repository: jshttp/vary
|
||||||
## ws
|
## ws
|
||||||
License: MIT
|
License: MIT
|
||||||
By: Einar Otto Stangvik
|
By: Einar Otto Stangvik
|
||||||
Repository: git+https://github.com/websockets/ws.git
|
Repository: https://github.com/websockets/ws
|
||||||
|
|
||||||
> Copyright (c) 2011 Einar Otto Stangvik <einaros@gmail.com>
|
> Copyright (c) 2011 Einar Otto Stangvik <einaros@gmail.com>
|
||||||
> Copyright (c) 2013 Arnout Kazemier and contributors
|
> Copyright (c) 2013 Arnout Kazemier and contributors
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
import "@vite/env";
|
import "@vite/env";
|
||||||
|
|
||||||
//#region \0@oxc-project+runtime@0.94.0/helpers/typeof.js
|
//#region \0@oxc-project+runtime@0.96.0/helpers/typeof.js
|
||||||
function _typeof(o) {
|
function _typeof(o) {
|
||||||
"@babel/helpers - typeof";
|
"@babel/helpers - typeof";
|
||||||
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o$1) {
|
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o$1) {
|
||||||
|
|
@ -11,7 +11,7 @@ function _typeof(o) {
|
||||||
}
|
}
|
||||||
|
|
||||||
//#endregion
|
//#endregion
|
||||||
//#region \0@oxc-project+runtime@0.94.0/helpers/toPrimitive.js
|
//#region \0@oxc-project+runtime@0.96.0/helpers/toPrimitive.js
|
||||||
function toPrimitive(t, r) {
|
function toPrimitive(t, r) {
|
||||||
if ("object" != _typeof(t) || !t) return t;
|
if ("object" != _typeof(t) || !t) return t;
|
||||||
var e = t[Symbol.toPrimitive];
|
var e = t[Symbol.toPrimitive];
|
||||||
|
|
@ -24,14 +24,14 @@ function toPrimitive(t, r) {
|
||||||
}
|
}
|
||||||
|
|
||||||
//#endregion
|
//#endregion
|
||||||
//#region \0@oxc-project+runtime@0.94.0/helpers/toPropertyKey.js
|
//#region \0@oxc-project+runtime@0.96.0/helpers/toPropertyKey.js
|
||||||
function toPropertyKey(t) {
|
function toPropertyKey(t) {
|
||||||
var i = toPrimitive(t, "string");
|
var i = toPrimitive(t, "string");
|
||||||
return "symbol" == _typeof(i) ? i : i + "";
|
return "symbol" == _typeof(i) ? i : i + "";
|
||||||
}
|
}
|
||||||
|
|
||||||
//#endregion
|
//#endregion
|
||||||
//#region \0@oxc-project+runtime@0.94.0/helpers/defineProperty.js
|
//#region \0@oxc-project+runtime@0.96.0/helpers/defineProperty.js
|
||||||
function _defineProperty(e, r, t) {
|
function _defineProperty(e, r, t) {
|
||||||
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
||||||
value: t,
|
value: t,
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
import "./logger.js";
|
import "./logger.js";
|
||||||
import { BuildEnvironment, build, buildEnvironmentOptionsDefaults, builderOptionsDefaults, createBuilder, createToImportMetaURLBasedRelativeRuntime, injectEnvironmentToHooks, onRollupLog, resolveBuildEnvironmentOptions, resolveBuildOutputs, resolveBuildPlugins, resolveBuilderOptions, resolveLibFilename, resolveUserExternal, toOutputFilePathInCss, toOutputFilePathInHtml, toOutputFilePathInJS, toOutputFilePathWithoutRuntime } from "./config.js";
|
import { A as toOutputFilePathInCss, C as onRollupLog, D as resolveBuilderOptions, E as resolveBuildPlugins, M as toOutputFilePathInJS, N as toOutputFilePathWithoutRuntime, O as resolveLibFilename, S as injectEnvironmentToHooks, T as resolveBuildOutputs, _ as build, b as createBuilder, g as BuildEnvironment, j as toOutputFilePathInHtml, k as resolveUserExternal, v as buildEnvironmentOptionsDefaults, w as resolveBuildEnvironmentOptions, x as createToImportMetaURLBasedRelativeRuntime, y as builderOptionsDefaults } from "./config.js";
|
||||||
|
|
||||||
export { createBuilder, resolveBuildPlugins };
|
export { BuildEnvironment, build, buildEnvironmentOptionsDefaults, builderOptionsDefaults, createBuilder, createToImportMetaURLBasedRelativeRuntime, injectEnvironmentToHooks, onRollupLog, resolveBuildEnvironmentOptions, resolveBuildOutputs, resolveBuildPlugins, resolveBuilderOptions, resolveLibFilename, resolveUserExternal, toOutputFilePathInCss, toOutputFilePathInHtml, toOutputFilePathInJS, toOutputFilePathWithoutRuntime };
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
import { __commonJS, __require } from "./chunk.js";
|
import { n as __require, t as __commonJS } from "./chunk.js";
|
||||||
import { require_lib } from "./lib.js";
|
import { t as require_lib } from "./lib.js";
|
||||||
|
|
||||||
//#region ../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.6/node_modules/postcss-modules/build/fs.js
|
//#region ../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.6/node_modules/postcss-modules/build/fs.js
|
||||||
var require_fs = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.6/node_modules/postcss-modules/build/fs.js": ((exports) => {
|
var require_fs = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.6/node_modules/postcss-modules/build/fs.js": ((exports) => {
|
||||||
|
|
@ -188,6 +188,7 @@ var require_src$4 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/icss-
|
||||||
//#region ../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.6/node_modules/postcss-modules/build/Parser.js
|
//#region ../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.6/node_modules/postcss-modules/build/Parser.js
|
||||||
var require_Parser = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.6/node_modules/postcss-modules/build/Parser.js": ((exports) => {
|
var require_Parser = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.6/node_modules/postcss-modules/build/Parser.js": ((exports) => {
|
||||||
Object.defineProperty(exports, "__esModule", { value: true });
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
|
exports.default = void 0;
|
||||||
var _icssUtils = require_src$4();
|
var _icssUtils = require_src$4();
|
||||||
const importRegexp = /^:import\((.+)\)$/;
|
const importRegexp = /^:import\((.+)\)$/;
|
||||||
var Parser$1 = class {
|
var Parser$1 = class {
|
||||||
|
|
@ -955,6 +956,7 @@ var require_localsConvention = /* @__PURE__ */ __commonJS({ "../../node_modules/
|
||||||
//#region ../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.6/node_modules/postcss-modules/build/FileSystemLoader.js
|
//#region ../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.6/node_modules/postcss-modules/build/FileSystemLoader.js
|
||||||
var require_FileSystemLoader = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.6/node_modules/postcss-modules/build/FileSystemLoader.js": ((exports) => {
|
var require_FileSystemLoader = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.6/node_modules/postcss-modules/build/FileSystemLoader.js": ((exports) => {
|
||||||
Object.defineProperty(exports, "__esModule", { value: true });
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
|
exports.default = void 0;
|
||||||
var _postcss$1 = _interopRequireDefault$21(__require("postcss"));
|
var _postcss$1 = _interopRequireDefault$21(__require("postcss"));
|
||||||
var _path = _interopRequireDefault$21(__require("path"));
|
var _path = _interopRequireDefault$21(__require("path"));
|
||||||
var _Parser$1 = _interopRequireDefault$21(require_Parser());
|
var _Parser$1 = _interopRequireDefault$21(require_Parser());
|
||||||
|
|
@ -1746,6 +1748,7 @@ var require_stripComments = /* @__PURE__ */ __commonJS({ "../../node_modules/.pn
|
||||||
//#region ../../node_modules/.pnpm/postcss-selector-parser@7.1.0/node_modules/postcss-selector-parser/dist/util/index.js
|
//#region ../../node_modules/.pnpm/postcss-selector-parser@7.1.0/node_modules/postcss-selector-parser/dist/util/index.js
|
||||||
var require_util = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-selector-parser@7.1.0/node_modules/postcss-selector-parser/dist/util/index.js": ((exports) => {
|
var require_util = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-selector-parser@7.1.0/node_modules/postcss-selector-parser/dist/util/index.js": ((exports) => {
|
||||||
exports.__esModule = true;
|
exports.__esModule = true;
|
||||||
|
exports.unesc = exports.stripComments = exports.getProp = exports.ensureObject = void 0;
|
||||||
var _unesc$1 = _interopRequireDefault$20(require_unesc());
|
var _unesc$1 = _interopRequireDefault$20(require_unesc());
|
||||||
exports.unesc = _unesc$1["default"];
|
exports.unesc = _unesc$1["default"];
|
||||||
var _getProp = _interopRequireDefault$20(require_getProp());
|
var _getProp = _interopRequireDefault$20(require_getProp());
|
||||||
|
|
@ -1900,6 +1903,7 @@ var require_node$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/post
|
||||||
//#region ../../node_modules/.pnpm/postcss-selector-parser@7.1.0/node_modules/postcss-selector-parser/dist/selectors/types.js
|
//#region ../../node_modules/.pnpm/postcss-selector-parser@7.1.0/node_modules/postcss-selector-parser/dist/selectors/types.js
|
||||||
var require_types = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-selector-parser@7.1.0/node_modules/postcss-selector-parser/dist/selectors/types.js": ((exports) => {
|
var require_types = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-selector-parser@7.1.0/node_modules/postcss-selector-parser/dist/selectors/types.js": ((exports) => {
|
||||||
exports.__esModule = true;
|
exports.__esModule = true;
|
||||||
|
exports.UNIVERSAL = exports.TAG = exports.STRING = exports.SELECTOR = exports.ROOT = exports.PSEUDO = exports.NESTING = exports.ID = exports.COMMENT = exports.COMBINATOR = exports.CLASS = exports.ATTRIBUTE = void 0;
|
||||||
var TAG = "tag";
|
var TAG = "tag";
|
||||||
exports.TAG = TAG;
|
exports.TAG = TAG;
|
||||||
var STRING = "string";
|
var STRING = "string";
|
||||||
|
|
@ -2372,6 +2376,7 @@ var require_selector = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/po
|
||||||
|
|
||||||
//#endregion
|
//#endregion
|
||||||
//#region ../../node_modules/.pnpm/cssesc@3.0.0/node_modules/cssesc/cssesc.js
|
//#region ../../node_modules/.pnpm/cssesc@3.0.0/node_modules/cssesc/cssesc.js
|
||||||
|
/*! https://mths.be/cssesc v3.0.0 by @mathias */
|
||||||
var require_cssesc = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/cssesc@3.0.0/node_modules/cssesc/cssesc.js": ((exports, module) => {
|
var require_cssesc = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/cssesc@3.0.0/node_modules/cssesc/cssesc.js": ((exports, module) => {
|
||||||
var hasOwnProperty$1 = {}.hasOwnProperty;
|
var hasOwnProperty$1 = {}.hasOwnProperty;
|
||||||
var merge = function merge$1(options, defaults) {
|
var merge = function merge$1(options, defaults) {
|
||||||
|
|
@ -2803,6 +2808,7 @@ var require_node = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/util-d
|
||||||
//#region ../../node_modules/.pnpm/postcss-selector-parser@7.1.0/node_modules/postcss-selector-parser/dist/selectors/attribute.js
|
//#region ../../node_modules/.pnpm/postcss-selector-parser@7.1.0/node_modules/postcss-selector-parser/dist/selectors/attribute.js
|
||||||
var require_attribute = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-selector-parser@7.1.0/node_modules/postcss-selector-parser/dist/selectors/attribute.js": ((exports) => {
|
var require_attribute = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-selector-parser@7.1.0/node_modules/postcss-selector-parser/dist/selectors/attribute.js": ((exports) => {
|
||||||
exports.__esModule = true;
|
exports.__esModule = true;
|
||||||
|
exports["default"] = void 0;
|
||||||
exports.unescapeValue = unescapeValue;
|
exports.unescapeValue = unescapeValue;
|
||||||
var _cssesc = _interopRequireDefault$9(require_cssesc());
|
var _cssesc = _interopRequireDefault$9(require_cssesc());
|
||||||
var _unesc = _interopRequireDefault$9(require_unesc());
|
var _unesc = _interopRequireDefault$9(require_unesc());
|
||||||
|
|
@ -3249,6 +3255,7 @@ var require_sortAscending = /* @__PURE__ */ __commonJS({ "../../node_modules/.pn
|
||||||
//#region ../../node_modules/.pnpm/postcss-selector-parser@7.1.0/node_modules/postcss-selector-parser/dist/tokenTypes.js
|
//#region ../../node_modules/.pnpm/postcss-selector-parser@7.1.0/node_modules/postcss-selector-parser/dist/tokenTypes.js
|
||||||
var require_tokenTypes = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-selector-parser@7.1.0/node_modules/postcss-selector-parser/dist/tokenTypes.js": ((exports) => {
|
var require_tokenTypes = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-selector-parser@7.1.0/node_modules/postcss-selector-parser/dist/tokenTypes.js": ((exports) => {
|
||||||
exports.__esModule = true;
|
exports.__esModule = true;
|
||||||
|
exports.word = exports.tilde = exports.tab = exports.str = exports.space = exports.slash = exports.singleQuote = exports.semicolon = exports.plus = exports.pipe = exports.openSquare = exports.openParenthesis = exports.newline = exports.greaterThan = exports.feed = exports.equals = exports.doubleQuote = exports.dollar = exports.cr = exports.comment = exports.comma = exports.combinator = exports.colon = exports.closeSquare = exports.closeParenthesis = exports.caret = exports.bang = exports.backslash = exports.at = exports.asterisk = exports.ampersand = void 0;
|
||||||
var ampersand = 38;
|
var ampersand = 38;
|
||||||
exports.ampersand = ampersand;
|
exports.ampersand = ampersand;
|
||||||
var asterisk = 42;
|
var asterisk = 42;
|
||||||
|
|
@ -3317,6 +3324,7 @@ var require_tokenTypes = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
||||||
//#region ../../node_modules/.pnpm/postcss-selector-parser@7.1.0/node_modules/postcss-selector-parser/dist/tokenize.js
|
//#region ../../node_modules/.pnpm/postcss-selector-parser@7.1.0/node_modules/postcss-selector-parser/dist/tokenize.js
|
||||||
var require_tokenize = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-selector-parser@7.1.0/node_modules/postcss-selector-parser/dist/tokenize.js": ((exports) => {
|
var require_tokenize = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-selector-parser@7.1.0/node_modules/postcss-selector-parser/dist/tokenize.js": ((exports) => {
|
||||||
exports.__esModule = true;
|
exports.__esModule = true;
|
||||||
|
exports.FIELDS = void 0;
|
||||||
exports["default"] = tokenize;
|
exports["default"] = tokenize;
|
||||||
var t = _interopRequireWildcard$2(require_tokenTypes());
|
var t = _interopRequireWildcard$2(require_tokenTypes());
|
||||||
var _unescapable, _wordDelimiters;
|
var _unescapable, _wordDelimiters;
|
||||||
|
|
@ -4509,6 +4517,7 @@ var require_processor = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/p
|
||||||
//#region ../../node_modules/.pnpm/postcss-selector-parser@7.1.0/node_modules/postcss-selector-parser/dist/selectors/constructors.js
|
//#region ../../node_modules/.pnpm/postcss-selector-parser@7.1.0/node_modules/postcss-selector-parser/dist/selectors/constructors.js
|
||||||
var require_constructors = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-selector-parser@7.1.0/node_modules/postcss-selector-parser/dist/selectors/constructors.js": ((exports) => {
|
var require_constructors = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-selector-parser@7.1.0/node_modules/postcss-selector-parser/dist/selectors/constructors.js": ((exports) => {
|
||||||
exports.__esModule = true;
|
exports.__esModule = true;
|
||||||
|
exports.universal = exports.tag = exports.string = exports.selector = exports.root = exports.pseudo = exports.nesting = exports.id = exports.comment = exports.combinator = exports.className = exports.attribute = void 0;
|
||||||
var _attribute = _interopRequireDefault$3(require_attribute());
|
var _attribute = _interopRequireDefault$3(require_attribute());
|
||||||
var _className = _interopRequireDefault$3(require_className());
|
var _className = _interopRequireDefault$3(require_className());
|
||||||
var _combinator = _interopRequireDefault$3(require_combinator());
|
var _combinator = _interopRequireDefault$3(require_combinator());
|
||||||
|
|
@ -4578,11 +4587,16 @@ var require_constructors = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnp
|
||||||
//#region ../../node_modules/.pnpm/postcss-selector-parser@7.1.0/node_modules/postcss-selector-parser/dist/selectors/guards.js
|
//#region ../../node_modules/.pnpm/postcss-selector-parser@7.1.0/node_modules/postcss-selector-parser/dist/selectors/guards.js
|
||||||
var require_guards = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-selector-parser@7.1.0/node_modules/postcss-selector-parser/dist/selectors/guards.js": ((exports) => {
|
var require_guards = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-selector-parser@7.1.0/node_modules/postcss-selector-parser/dist/selectors/guards.js": ((exports) => {
|
||||||
exports.__esModule = true;
|
exports.__esModule = true;
|
||||||
|
exports.isComment = exports.isCombinator = exports.isClassName = exports.isAttribute = void 0;
|
||||||
exports.isContainer = isContainer;
|
exports.isContainer = isContainer;
|
||||||
|
exports.isIdentifier = void 0;
|
||||||
exports.isNamespace = isNamespace;
|
exports.isNamespace = isNamespace;
|
||||||
|
exports.isNesting = void 0;
|
||||||
exports.isNode = isNode;
|
exports.isNode = isNode;
|
||||||
|
exports.isPseudo = void 0;
|
||||||
exports.isPseudoClass = isPseudoClass;
|
exports.isPseudoClass = isPseudoClass;
|
||||||
exports.isPseudoElement = isPseudoElement;
|
exports.isPseudoElement = isPseudoElement;
|
||||||
|
exports.isUniversal = exports.isTag = exports.isString = exports.isSelector = exports.isRoot = void 0;
|
||||||
var _types$1 = require_types();
|
var _types$1 = require_types();
|
||||||
var _IS_TYPE;
|
var _IS_TYPE;
|
||||||
var IS_TYPE = (_IS_TYPE = {}, _IS_TYPE[_types$1.ATTRIBUTE] = true, _IS_TYPE[_types$1.CLASS] = true, _IS_TYPE[_types$1.COMBINATOR] = true, _IS_TYPE[_types$1.COMMENT] = true, _IS_TYPE[_types$1.ID] = true, _IS_TYPE[_types$1.NESTING] = true, _IS_TYPE[_types$1.PSEUDO] = true, _IS_TYPE[_types$1.ROOT] = true, _IS_TYPE[_types$1.SELECTOR] = true, _IS_TYPE[_types$1.STRING] = true, _IS_TYPE[_types$1.TAG] = true, _IS_TYPE[_types$1.UNIVERSAL] = true, _IS_TYPE);
|
var IS_TYPE = (_IS_TYPE = {}, _IS_TYPE[_types$1.ATTRIBUTE] = true, _IS_TYPE[_types$1.CLASS] = true, _IS_TYPE[_types$1.COMBINATOR] = true, _IS_TYPE[_types$1.COMMENT] = true, _IS_TYPE[_types$1.ID] = true, _IS_TYPE[_types$1.NESTING] = true, _IS_TYPE[_types$1.PSEUDO] = true, _IS_TYPE[_types$1.ROOT] = true, _IS_TYPE[_types$1.SELECTOR] = true, _IS_TYPE[_types$1.STRING] = true, _IS_TYPE[_types$1.TAG] = true, _IS_TYPE[_types$1.UNIVERSAL] = true, _IS_TYPE);
|
||||||
|
|
@ -5370,6 +5384,7 @@ var require_src = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss
|
||||||
//#region ../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.6/node_modules/postcss-modules/build/scoping.js
|
//#region ../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.6/node_modules/postcss-modules/build/scoping.js
|
||||||
var require_scoping = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.6/node_modules/postcss-modules/build/scoping.js": ((exports) => {
|
var require_scoping = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.6/node_modules/postcss-modules/build/scoping.js": ((exports) => {
|
||||||
Object.defineProperty(exports, "__esModule", { value: true });
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
|
exports.behaviours = void 0;
|
||||||
exports.getDefaultPlugins = getDefaultPlugins;
|
exports.getDefaultPlugins = getDefaultPlugins;
|
||||||
exports.getDefaultScopeBehaviour = getDefaultScopeBehaviour;
|
exports.getDefaultScopeBehaviour = getDefaultScopeBehaviour;
|
||||||
exports.getScopedNameGenerator = getScopedNameGenerator;
|
exports.getScopedNameGenerator = getScopedNameGenerator;
|
||||||
|
|
|
||||||
|
|
@ -28,4 +28,4 @@ var __toDynamicImportESM = (isNodeMode) => (mod) => __toESM(mod.default, isNodeM
|
||||||
var __require = /* @__PURE__ */ createRequire(import.meta.url);
|
var __require = /* @__PURE__ */ createRequire(import.meta.url);
|
||||||
|
|
||||||
//#endregion
|
//#endregion
|
||||||
export { __commonJS, __require, __toDynamicImportESM, __toESM };
|
export { __toESM as i, __require as n, __toDynamicImportESM as r, __commonJS as t };
|
||||||
File diff suppressed because it is too large
Load Diff
|
|
@ -1,4 +1,4 @@
|
||||||
import "./logger.js";
|
import "./logger.js";
|
||||||
import { configDefaults, defineConfig, getDefaultEnvironmentOptions, isResolvedConfig, loadConfigFromFile, resolveBaseUrl, resolveConfig, resolveDevEnvironmentOptions, sortUserPlugins } from "./config.js";
|
import { a as resolveBaseUrl, c as sortUserPlugins, i as loadConfigFromFile, n as getDefaultEnvironmentOptions, o as resolveConfig, r as isResolvedConfig, s as resolveDevEnvironmentOptions, t as defineConfig } from "./config.js";
|
||||||
|
|
||||||
export { resolveConfig };
|
export { defineConfig, getDefaultEnvironmentOptions, isResolvedConfig, loadConfigFromFile, resolveBaseUrl, resolveConfig, resolveDevEnvironmentOptions, sortUserPlugins };
|
||||||
|
|
@ -6755,4 +6755,4 @@ function parse(html, options) {
|
||||||
}
|
}
|
||||||
|
|
||||||
//#endregion
|
//#endregion
|
||||||
export { parse };
|
export { ERR as ErrorCodes, Parser, Tokenizer, TokenizerMode, defaultTreeAdapter, parse };
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
import { __commonJS } from "./chunk.js";
|
import { t as __commonJS } from "./chunk.js";
|
||||||
|
|
||||||
//#region ../../node_modules/.pnpm/postcss-value-parser@4.2.0/node_modules/postcss-value-parser/lib/parse.js
|
//#region ../../node_modules/.pnpm/postcss-value-parser@4.2.0/node_modules/postcss-value-parser/lib/parse.js
|
||||||
var require_parse = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-value-parser@4.2.0/node_modules/postcss-value-parser/lib/parse.js": ((exports, module) => {
|
var require_parse = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-value-parser@4.2.0/node_modules/postcss-value-parser/lib/parse.js": ((exports, module) => {
|
||||||
|
|
@ -374,4 +374,4 @@ var require_lib = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss
|
||||||
}) });
|
}) });
|
||||||
|
|
||||||
//#endregion
|
//#endregion
|
||||||
export { require_lib };
|
export { require_lib as t };
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
import { __commonJS, __toESM } from "./chunk.js";
|
import { i as __toESM, t as __commonJS } from "./chunk.js";
|
||||||
import { readFileSync } from "node:fs";
|
import { readFileSync } from "node:fs";
|
||||||
import path, { resolve } from "node:path";
|
import path, { resolve } from "node:path";
|
||||||
import { fileURLToPath } from "node:url";
|
import { fileURLToPath } from "node:url";
|
||||||
|
|
@ -127,6 +127,15 @@ const DEFAULT_CONDITIONS = [
|
||||||
const DEFAULT_CLIENT_CONDITIONS = Object.freeze(DEFAULT_CONDITIONS.filter((c) => c !== "node"));
|
const DEFAULT_CLIENT_CONDITIONS = Object.freeze(DEFAULT_CONDITIONS.filter((c) => c !== "node"));
|
||||||
const DEFAULT_SERVER_CONDITIONS = Object.freeze(DEFAULT_CONDITIONS.filter((c) => c !== "browser"));
|
const DEFAULT_SERVER_CONDITIONS = Object.freeze(DEFAULT_CONDITIONS.filter((c) => c !== "browser"));
|
||||||
const DEFAULT_EXTERNAL_CONDITIONS = Object.freeze(["node", "module-sync"]);
|
const DEFAULT_EXTERNAL_CONDITIONS = Object.freeze(["node", "module-sync"]);
|
||||||
|
const DEFAULT_EXTENSIONS = [
|
||||||
|
".mjs",
|
||||||
|
".js",
|
||||||
|
".mts",
|
||||||
|
".ts",
|
||||||
|
".jsx",
|
||||||
|
".tsx",
|
||||||
|
".json"
|
||||||
|
];
|
||||||
/**
|
/**
|
||||||
* The browser versions that are included in the Baseline Widely Available on 2025-05-01.
|
* The browser versions that are included in the Baseline Widely Available on 2025-05-01.
|
||||||
*
|
*
|
||||||
|
|
@ -317,4 +326,4 @@ function printServerUrls(urls, optionsHost, info) {
|
||||||
}
|
}
|
||||||
|
|
||||||
//#endregion
|
//#endregion
|
||||||
export { CLIENT_DIR, CLIENT_ENTRY, CLIENT_PUBLIC_PATH, CSS_LANGS_RE, DEFAULT_ASSETS_INLINE_LIMIT, DEFAULT_ASSETS_RE, DEFAULT_CLIENT_CONDITIONS, DEFAULT_CLIENT_MAIN_FIELDS, DEFAULT_CONFIG_FILES, DEFAULT_DEV_PORT, DEFAULT_EXTERNAL_CONDITIONS, DEFAULT_PREVIEW_PORT, DEFAULT_SERVER_CONDITIONS, DEFAULT_SERVER_MAIN_FIELDS, DEP_VERSION_RE, DEV_PROD_CONDITION, ENV_ENTRY, ENV_PUBLIC_PATH, ERR_FILE_NOT_FOUND_IN_OPTIMIZED_DEP_DIR, ERR_OPTIMIZE_DEPS_PROCESSING_ERROR, ESBUILD_BASELINE_WIDELY_AVAILABLE_TARGET, FS_PREFIX, JS_TYPES_RE, KNOWN_ASSET_TYPES, LogLevels, METADATA_FILENAME, OPTIMIZABLE_ENTRY_RE, ROLLUP_HOOKS, SPECIAL_QUERY_RE, VERSION, VITE_PACKAGE_DIR, createLogger, defaultAllowedOrigins, loopbackHosts, printServerUrls, require_picocolors, wildcardHosts };
|
export { OPTIMIZABLE_ENTRY_RE as A, ERR_FILE_NOT_FOUND_IN_OPTIMIZED_DEP_DIR as C, JS_TYPES_RE as D, FS_PREFIX as E, defaultAllowedOrigins as F, loopbackHosts as I, wildcardHosts as L, SPECIAL_QUERY_RE as M, VERSION as N, KNOWN_ASSET_TYPES as O, VITE_PACKAGE_DIR as P, require_picocolors as R, ENV_PUBLIC_PATH as S, ESBUILD_BASELINE_WIDELY_AVAILABLE_TARGET as T, DEFAULT_SERVER_CONDITIONS as _, CLIENT_ENTRY as a, DEV_PROD_CONDITION as b, DEFAULT_ASSETS_INLINE_LIMIT as c, DEFAULT_CLIENT_MAIN_FIELDS as d, DEFAULT_CONFIG_FILES as f, DEFAULT_PREVIEW_PORT as g, DEFAULT_EXTERNAL_CONDITIONS as h, CLIENT_DIR as i, ROLLUP_HOOKS as j, METADATA_FILENAME as k, DEFAULT_ASSETS_RE as l, DEFAULT_EXTENSIONS as m, createLogger as n, CLIENT_PUBLIC_PATH as o, DEFAULT_DEV_PORT as p, printServerUrls as r, CSS_LANGS_RE as s, LogLevels as t, DEFAULT_CLIENT_CONDITIONS as u, DEFAULT_SERVER_MAIN_FIELDS as v, ERR_OPTIMIZE_DEPS_PROCESSING_ERROR as w, ENV_ENTRY as x, DEP_VERSION_RE as y };
|
||||||
|
|
@ -24,7 +24,7 @@ interface ExternalFetchResult {
|
||||||
* Type of the module. Will be used to determine if import statement is correct.
|
* Type of the module. Will be used to determine if import statement is correct.
|
||||||
* For example, if Vite needs to throw an error if variable is not actually exported
|
* For example, if Vite needs to throw an error if variable is not actually exported
|
||||||
*/
|
*/
|
||||||
type: 'module' | 'commonjs' | 'builtin' | 'network';
|
type: "module" | "commonjs" | "builtin" | "network";
|
||||||
}
|
}
|
||||||
interface ViteFetchResult {
|
interface ViteFetchResult {
|
||||||
/**
|
/**
|
||||||
|
|
@ -53,6 +53,14 @@ interface ViteFetchResult {
|
||||||
}
|
}
|
||||||
type InvokeMethods = {
|
type InvokeMethods = {
|
||||||
fetchModule: (id: string, importer?: string, options?: FetchFunctionOptions) => Promise<FetchResult>;
|
fetchModule: (id: string, importer?: string, options?: FetchFunctionOptions) => Promise<FetchResult>;
|
||||||
|
getBuiltins: () => Promise<Array<{
|
||||||
|
type: "string";
|
||||||
|
value: string;
|
||||||
|
} | {
|
||||||
|
type: "RegExp";
|
||||||
|
source: string;
|
||||||
|
flags: string;
|
||||||
|
}>>;
|
||||||
};
|
};
|
||||||
//#endregion
|
//#endregion
|
||||||
//#region src/shared/moduleRunnerTransport.d.ts
|
//#region src/shared/moduleRunnerTransport.d.ts
|
||||||
|
|
@ -85,4 +93,4 @@ declare const createWebSocketModuleRunnerTransport: (options: {
|
||||||
pingInterval?: number;
|
pingInterval?: number;
|
||||||
}) => Required<Pick<ModuleRunnerTransport, "connect" | "disconnect" | "send">>;
|
}) => Required<Pick<ModuleRunnerTransport, "connect" | "disconnect" | "send">>;
|
||||||
//#endregion
|
//#endregion
|
||||||
export { ExternalFetchResult, FetchFunctionOptions, FetchResult, ModuleRunnerTransport, ModuleRunnerTransportHandlers, NormalizedModuleRunnerTransport, ViteFetchResult, createWebSocketModuleRunnerTransport };
|
export { ExternalFetchResult as a, ViteFetchResult as c, createWebSocketModuleRunnerTransport as i, ModuleRunnerTransportHandlers as n, FetchFunctionOptions as o, NormalizedModuleRunnerTransport as r, FetchResult as s, ModuleRunnerTransport as t };
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
import "./logger.js";
|
import "./logger.js";
|
||||||
import { addManuallyIncludedOptimizeDeps, addOptimizedDepInfo, cleanupDepsCacheStaleDirs, createIsOptimizedDepFile, createIsOptimizedDepUrl, depsFromOptimizedDepInfo, depsLogString, discoverProjectDependencies, extractExportsData, getDepsCacheDir, getOptimizedDepPath, initDepsOptimizerMetadata, isDepOptimizationDisabled, loadCachedDepOptimizationMetadata, optimizeDeps, optimizeExplicitEnvironmentDeps, optimizedDepInfoFromFile, optimizedDepInfoFromId, optimizedDepNeedsInterop, runOptimizeDeps, toDiscoveredDependencies } from "./config.js";
|
import { $ as runOptimizeDeps, B as depsLogString, F as addOptimizedDepInfo, G as initDepsOptimizerMetadata, H as extractExportsData, I as cleanupDepsCacheStaleDirs, J as optimizeDeps, K as isDepOptimizationDisabled, L as createIsOptimizedDepFile, P as addManuallyIncludedOptimizeDeps, Q as optimizedDepNeedsInterop, R as createIsOptimizedDepUrl, U as getDepsCacheDir, V as discoverProjectDependencies, W as getOptimizedDepPath, X as optimizedDepInfoFromFile, Y as optimizeExplicitEnvironmentDeps, Z as optimizedDepInfoFromId, et as toDiscoveredDependencies, q as loadCachedDepOptimizationMetadata, z as depsFromOptimizedDepInfo } from "./config.js";
|
||||||
|
|
||||||
export { optimizeDeps };
|
export { addManuallyIncludedOptimizeDeps, addOptimizedDepInfo, cleanupDepsCacheStaleDirs, createIsOptimizedDepFile, createIsOptimizedDepUrl, depsFromOptimizedDepInfo, depsLogString, discoverProjectDependencies, extractExportsData, getDepsCacheDir, getOptimizedDepPath, initDepsOptimizerMetadata, isDepOptimizationDisabled, loadCachedDepOptimizationMetadata, optimizeDeps, optimizeExplicitEnvironmentDeps, optimizedDepInfoFromFile, optimizedDepInfoFromId, optimizedDepNeedsInterop, runOptimizeDeps, toDiscoveredDependencies };
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
import { __commonJS, __require } from "./chunk.js";
|
import { n as __require, t as __commonJS } from "./chunk.js";
|
||||||
import { require_lib } from "./lib.js";
|
import { t as require_lib } from "./lib.js";
|
||||||
|
|
||||||
//#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.6/node_modules/postcss-import/lib/format-import-prelude.js
|
//#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.6/node_modules/postcss-import/lib/format-import-prelude.js
|
||||||
var require_format_import_prelude = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.6/node_modules/postcss-import/lib/format-import-prelude.js": ((exports, module) => {
|
var require_format_import_prelude = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.6/node_modules/postcss-import/lib/format-import-prelude.js": ((exports, module) => {
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
import "./logger.js";
|
import "./logger.js";
|
||||||
import { preview, resolvePreviewOptions } from "./config.js";
|
import { d as resolvePreviewOptions, u as preview } from "./config.js";
|
||||||
|
|
||||||
export { preview };
|
export { preview, resolvePreviewOptions };
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
import "./logger.js";
|
import "./logger.js";
|
||||||
import { _createServer, createServer, createServerCloseFn, resolveServerOptions, restartServerWithUrls, serverConfigDefaults } from "./config.js";
|
import { at as _createServer, ct as resolveServerOptions, lt as restartServerWithUrls, ot as createServer, st as createServerCloseFn, ut as serverConfigDefaults } from "./config.js";
|
||||||
|
|
||||||
export { createServer };
|
export { _createServer, createServer, createServerCloseFn, resolveServerOptions, restartServerWithUrls, serverConfigDefaults };
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
import { __toESM } from "./chunks/chunk.js";
|
import { i as __toESM } from "./chunks/chunk.js";
|
||||||
import { VERSION, createLogger, require_picocolors } from "./chunks/logger.js";
|
import { N as VERSION, R as require_picocolors, n as createLogger } from "./chunks/logger.js";
|
||||||
import fs from "node:fs";
|
import fs from "node:fs";
|
||||||
import path from "node:path";
|
import path from "node:path";
|
||||||
import { performance } from "node:perf_hooks";
|
import { performance } from "node:perf_hooks";
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
/// <reference types="node" />
|
/// <reference types="node" />
|
||||||
import { ModuleRunnerTransport } from "./chunks/moduleRunnerTransport.js";
|
import { t as ModuleRunnerTransport } from "./chunks/moduleRunnerTransport.js";
|
||||||
import { ConnectedPayload, CustomPayload, CustomPayload as hmrPayload_CustomPayload, ErrorPayload, FullReloadPayload, HMRPayload, HotPayload, HotPayload as hmrPayload_HotPayload, PrunePayload, Update, UpdatePayload } from "#types/hmrPayload";
|
import { ConnectedPayload, CustomPayload, CustomPayload as hmrPayload_CustomPayload, ErrorPayload, FullReloadPayload, HMRPayload, HotPayload, HotPayload as hmrPayload_HotPayload, PrunePayload, Update, UpdatePayload } from "#types/hmrPayload";
|
||||||
import { CustomEventMap, InferCustomEventPayload, InferCustomEventPayload as hmrPayload_InferCustomEventPayload, InvalidatePayload } from "#types/customEvent";
|
import { CustomEventMap, InferCustomEventPayload, InferCustomEventPayload as hmrPayload_InferCustomEventPayload, InvalidatePayload } from "#types/customEvent";
|
||||||
import * as Rollup from "rollup";
|
import * as Rollup from "rollup";
|
||||||
|
|
@ -39,7 +39,7 @@ interface Alias {
|
||||||
*/
|
*/
|
||||||
customResolver?: ResolverFunction | ResolverObject | null;
|
customResolver?: ResolverFunction | ResolverObject | null;
|
||||||
}
|
}
|
||||||
type MapToFunction<T> = T extends Function ? T : never;
|
type MapToFunction<T$1> = T$1 extends Function ? T$1 : never;
|
||||||
type ResolverFunction = MapToFunction<PluginHooks['resolveId']>;
|
type ResolverFunction = MapToFunction<PluginHooks['resolveId']>;
|
||||||
interface ResolverObject {
|
interface ResolverObject {
|
||||||
buildStart?: PluginHooks['buildStart'];
|
buildStart?: PluginHooks['buildStart'];
|
||||||
|
|
@ -339,7 +339,7 @@ type ProxyTargetUrl = URL | string | {
|
||||||
host: string;
|
host: string;
|
||||||
protocol?: string;
|
protocol?: string;
|
||||||
};
|
};
|
||||||
type NormalizeProxyTarget<T extends ProxyTargetUrl> = Exclude<T, string> | URL;
|
type NormalizeProxyTarget<T$1 extends ProxyTargetUrl> = Exclude<T$1, string> | URL;
|
||||||
interface ServerOptions$3 {
|
interface ServerOptions$3 {
|
||||||
/** URL string to be parsed with the url module. */
|
/** URL string to be parsed with the url module. */
|
||||||
target?: ProxyTarget;
|
target?: ProxyTarget;
|
||||||
|
|
@ -523,8 +523,7 @@ interface ProxyOptions extends ServerOptions$3 {
|
||||||
/**
|
/**
|
||||||
* webpack-dev-server style bypass function
|
* webpack-dev-server style bypass function
|
||||||
*/
|
*/
|
||||||
bypass?: (req: http.IncomingMessage, /** undefined for WebSocket upgrade requests */
|
bypass?: (req: http.IncomingMessage, res: http.ServerResponse | undefined, options: ProxyOptions) => void | null | undefined | false | string | Promise<void | null | undefined | boolean | string>;
|
||||||
res: http.ServerResponse | undefined, options: ProxyOptions) => void | null | undefined | false | string | Promise<void | null | undefined | boolean | string>;
|
|
||||||
/**
|
/**
|
||||||
* rewrite the Origin header of a WebSocket request to match the target
|
* rewrite the Origin header of a WebSocket request to match the target
|
||||||
*
|
*
|
||||||
|
|
@ -534,8 +533,8 @@ interface ProxyOptions extends ServerOptions$3 {
|
||||||
}
|
}
|
||||||
//#endregion
|
//#endregion
|
||||||
//#region src/node/logger.d.ts
|
//#region src/node/logger.d.ts
|
||||||
type LogType = 'error' | 'warn' | 'info';
|
type LogType = "error" | "warn" | "info";
|
||||||
type LogLevel = LogType | 'silent';
|
type LogLevel = LogType | "silent";
|
||||||
interface Logger {
|
interface Logger {
|
||||||
info(msg: string, options?: LogOptions): void;
|
info(msg: string, options?: LogOptions): void;
|
||||||
warn(msg: string, options?: LogOptions): void;
|
warn(msg: string, options?: LogOptions): void;
|
||||||
|
|
@ -662,11 +661,11 @@ interface CorsOptions {
|
||||||
type CorsOrigin = boolean | string | RegExp | (string | RegExp)[];
|
type CorsOrigin = boolean | string | RegExp | (string | RegExp)[];
|
||||||
//#endregion
|
//#endregion
|
||||||
//#region src/node/typeUtils.d.ts
|
//#region src/node/typeUtils.d.ts
|
||||||
type RequiredExceptFor<T, K extends keyof T> = Pick<T, K> & Required<Omit<T, K>>;
|
type RequiredExceptFor<T$1, K$1 extends keyof T$1> = Pick<T$1, K$1> & Required<Omit<T$1, K$1>>;
|
||||||
//#endregion
|
//#endregion
|
||||||
//#region src/node/preview.d.ts
|
//#region src/node/preview.d.ts
|
||||||
interface PreviewOptions extends CommonServerOptions {}
|
interface PreviewOptions extends CommonServerOptions {}
|
||||||
interface ResolvedPreviewOptions extends RequiredExceptFor<PreviewOptions, 'host' | 'https' | 'proxy'> {}
|
interface ResolvedPreviewOptions extends RequiredExceptFor<PreviewOptions, "host" | "https" | "proxy"> {}
|
||||||
interface PreviewServer {
|
interface PreviewServer {
|
||||||
/**
|
/**
|
||||||
* The resolved vite config object
|
* The resolved vite config object
|
||||||
|
|
@ -710,7 +709,7 @@ type PreviewServerHook = (this: MinimalPluginContextWithoutEnvironment, server:
|
||||||
declare function preview(inlineConfig?: InlineConfig): Promise<PreviewServer>;
|
declare function preview(inlineConfig?: InlineConfig): Promise<PreviewServer>;
|
||||||
//#endregion
|
//#endregion
|
||||||
//#region src/node/shortcuts.d.ts
|
//#region src/node/shortcuts.d.ts
|
||||||
type BindCLIShortcutsOptions<Server = ViteDevServer | PreviewServer> = {
|
type BindCLIShortcutsOptions<Server$3 = ViteDevServer | PreviewServer> = {
|
||||||
/**
|
/**
|
||||||
* Print a one-line shortcuts "help" hint to the terminal
|
* Print a one-line shortcuts "help" hint to the terminal
|
||||||
*/
|
*/
|
||||||
|
|
@ -720,12 +719,12 @@ type BindCLIShortcutsOptions<Server = ViteDevServer | PreviewServer> = {
|
||||||
* over the default shortcuts if they have the same keys (except the `h` key).
|
* over the default shortcuts if they have the same keys (except the `h` key).
|
||||||
* To disable a default shortcut, define the same key but with `action: undefined`.
|
* To disable a default shortcut, define the same key but with `action: undefined`.
|
||||||
*/
|
*/
|
||||||
customShortcuts?: CLIShortcut<Server>[];
|
customShortcuts?: CLIShortcut<Server$3>[];
|
||||||
};
|
};
|
||||||
type CLIShortcut<Server = ViteDevServer | PreviewServer> = {
|
type CLIShortcut<Server$3 = ViteDevServer | PreviewServer> = {
|
||||||
key: string;
|
key: string;
|
||||||
description: string;
|
description: string;
|
||||||
action?(server: Server): void | Promise<void>;
|
action?(server: Server$3): void | Promise<void>;
|
||||||
};
|
};
|
||||||
//#endregion
|
//#endregion
|
||||||
//#region src/node/baseEnvironment.d.ts
|
//#region src/node/baseEnvironment.d.ts
|
||||||
|
|
@ -737,7 +736,7 @@ declare class PartialEnvironment {
|
||||||
constructor(name: string, topLevelConfig: ResolvedConfig, options?: ResolvedEnvironmentOptions);
|
constructor(name: string, topLevelConfig: ResolvedConfig, options?: ResolvedEnvironmentOptions);
|
||||||
}
|
}
|
||||||
declare class BaseEnvironment extends PartialEnvironment {
|
declare class BaseEnvironment extends PartialEnvironment {
|
||||||
get plugins(): readonly Plugin$1[];
|
get plugins(): readonly Plugin[];
|
||||||
constructor(name: string, config: ResolvedConfig, options?: ResolvedEnvironmentOptions);
|
constructor(name: string, config: ResolvedConfig, options?: ResolvedEnvironmentOptions);
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
|
|
@ -809,7 +808,7 @@ interface DepOptimizationConfig {
|
||||||
*
|
*
|
||||||
* https://esbuild.github.io/api
|
* https://esbuild.github.io/api
|
||||||
*/
|
*/
|
||||||
esbuildOptions?: Omit<esbuild_BuildOptions, 'bundle' | 'entryPoints' | 'external' | 'write' | 'watch' | 'outdir' | 'outfile' | 'outbase' | 'outExtension' | 'metafile'>;
|
esbuildOptions?: Omit<esbuild_BuildOptions, "bundle" | "entryPoints" | "external" | "write" | "watch" | "outdir" | "outfile" | "outbase" | "outExtension" | "metafile">;
|
||||||
/**
|
/**
|
||||||
* List of file extensions that can be optimized. A corresponding esbuild
|
* List of file extensions that can be optimized. A corresponding esbuild
|
||||||
* plugin must exist to handle the specific extension.
|
* plugin must exist to handle the specific extension.
|
||||||
|
|
@ -829,7 +828,7 @@ interface DepOptimizationConfig {
|
||||||
* @deprecated
|
* @deprecated
|
||||||
* @experimental
|
* @experimental
|
||||||
*/
|
*/
|
||||||
disabled?: boolean | 'build' | 'dev';
|
disabled?: boolean | "build" | "dev";
|
||||||
/**
|
/**
|
||||||
* Automatic dependency discovery. When `noDiscovery` is true, only dependencies
|
* Automatic dependency discovery. When `noDiscovery` is true, only dependencies
|
||||||
* listed in `include` will be optimized. The scanner isn't run for cold start
|
* listed in `include` will be optimized. The scanner isn't run for cold start
|
||||||
|
|
@ -936,7 +935,7 @@ declare function optimizeDeps(config: ResolvedConfig, force?: boolean | undefine
|
||||||
interface TransformResult {
|
interface TransformResult {
|
||||||
code: string;
|
code: string;
|
||||||
map: SourceMap | {
|
map: SourceMap | {
|
||||||
mappings: '';
|
mappings: "";
|
||||||
} | null;
|
} | null;
|
||||||
ssr?: boolean;
|
ssr?: boolean;
|
||||||
etag?: string;
|
etag?: string;
|
||||||
|
|
@ -963,7 +962,7 @@ declare class EnvironmentModuleNode {
|
||||||
*/
|
*/
|
||||||
id: string | null;
|
id: string | null;
|
||||||
file: string | null;
|
file: string | null;
|
||||||
type: 'js' | 'css' | 'asset';
|
type: "js" | "css" | "asset";
|
||||||
info?: ModuleInfo;
|
info?: ModuleInfo;
|
||||||
meta?: Record<string, any>;
|
meta?: Record<string, any>;
|
||||||
importers: Set<EnvironmentModuleNode>;
|
importers: Set<EnvironmentModuleNode>;
|
||||||
|
|
@ -995,7 +994,7 @@ declare class EnvironmentModuleGraph {
|
||||||
getModulesByFile(file: string): Set<EnvironmentModuleNode> | undefined;
|
getModulesByFile(file: string): Set<EnvironmentModuleNode> | undefined;
|
||||||
onFileChange(file: string): void;
|
onFileChange(file: string): void;
|
||||||
onFileDelete(file: string): void;
|
onFileDelete(file: string): void;
|
||||||
invalidateModule(mod: EnvironmentModuleNode, seen?: Set<EnvironmentModuleNode>, timestamp?: number, isHmr?: boolean, ): void;
|
invalidateModule(mod: EnvironmentModuleNode, seen?: Set<EnvironmentModuleNode>, timestamp?: number, isHmr?: boolean, softInvalidate?: boolean): void;
|
||||||
invalidateAll(): void;
|
invalidateAll(): void;
|
||||||
/**
|
/**
|
||||||
* Update the module graph based on a module's updated imports information
|
* Update the module graph based on a module's updated imports information
|
||||||
|
|
@ -1005,7 +1004,7 @@ declare class EnvironmentModuleGraph {
|
||||||
* @param staticImportedUrls Subset of `importedModules` where they're statically imported in code.
|
* @param staticImportedUrls Subset of `importedModules` where they're statically imported in code.
|
||||||
* This is only used for soft invalidations so `undefined` is fine but may cause more runtime processing.
|
* This is only used for soft invalidations so `undefined` is fine but may cause more runtime processing.
|
||||||
*/
|
*/
|
||||||
updateModuleInfo(mod: EnvironmentModuleNode, importedModules: Set<string | EnvironmentModuleNode>, importedBindings: Map<string, Set<string>> | null, acceptedModules: Set<string | EnvironmentModuleNode>, acceptedExports: Set<string> | null, isSelfAccepting: boolean, ): Promise<Set<EnvironmentModuleNode> | undefined>;
|
updateModuleInfo(mod: EnvironmentModuleNode, importedModules: Set<string | EnvironmentModuleNode>, importedBindings: Map<string, Set<string>> | null, acceptedModules: Set<string | EnvironmentModuleNode>, acceptedExports: Set<string> | null, isSelfAccepting: boolean, staticImportedUrls?: Set<string>): Promise<Set<EnvironmentModuleNode> | undefined>;
|
||||||
ensureEntryFromUrl(rawUrl: string, setIsSelfAccepting?: boolean): Promise<EnvironmentModuleNode>;
|
ensureEntryFromUrl(rawUrl: string, setIsSelfAccepting?: boolean): Promise<EnvironmentModuleNode>;
|
||||||
createFileOnlyEntry(file: string): EnvironmentModuleNode;
|
createFileOnlyEntry(file: string): EnvironmentModuleNode;
|
||||||
resolveUrl(url: string): Promise<ResolvedUrl>;
|
resolveUrl(url: string): Promise<ResolvedUrl>;
|
||||||
|
|
@ -1019,19 +1018,19 @@ declare class ModuleNode {
|
||||||
_clientModule: EnvironmentModuleNode | undefined;
|
_clientModule: EnvironmentModuleNode | undefined;
|
||||||
_ssrModule: EnvironmentModuleNode | undefined;
|
_ssrModule: EnvironmentModuleNode | undefined;
|
||||||
constructor(moduleGraph: ModuleGraph, clientModule?: EnvironmentModuleNode, ssrModule?: EnvironmentModuleNode);
|
constructor(moduleGraph: ModuleGraph, clientModule?: EnvironmentModuleNode, ssrModule?: EnvironmentModuleNode);
|
||||||
_get<T extends keyof EnvironmentModuleNode>(prop: T): EnvironmentModuleNode[T];
|
_get<T$1 extends keyof EnvironmentModuleNode>(prop: T$1): EnvironmentModuleNode[T$1];
|
||||||
_set<T extends keyof EnvironmentModuleNode>(prop: T, value: EnvironmentModuleNode[T]): void;
|
_set<T$1 extends keyof EnvironmentModuleNode>(prop: T$1, value: EnvironmentModuleNode[T$1]): void;
|
||||||
_wrapModuleSet(prop: ModuleSetNames, module: EnvironmentModuleNode | undefined): Set<ModuleNode>;
|
_wrapModuleSet(prop: ModuleSetNames, module: EnvironmentModuleNode | undefined): Set<ModuleNode>;
|
||||||
_getModuleSetUnion(prop: 'importedModules' | 'importers'): Set<ModuleNode>;
|
_getModuleSetUnion(prop: "importedModules" | "importers"): Set<ModuleNode>;
|
||||||
_getModuleInfoUnion(prop: 'info'): ModuleInfo | undefined;
|
_getModuleInfoUnion(prop: "info"): ModuleInfo | undefined;
|
||||||
_getModuleObjectUnion(prop: 'meta'): Record<string, any> | undefined;
|
_getModuleObjectUnion(prop: "meta"): Record<string, any> | undefined;
|
||||||
get url(): string;
|
get url(): string;
|
||||||
set url(value: string);
|
set url(value: string);
|
||||||
get id(): string | null;
|
get id(): string | null;
|
||||||
set id(value: string | null);
|
set id(value: string | null);
|
||||||
get file(): string | null;
|
get file(): string | null;
|
||||||
set file(value: string | null);
|
set file(value: string | null);
|
||||||
get type(): 'js' | 'css' | 'asset';
|
get type(): "js" | "css" | "asset";
|
||||||
get info(): ModuleInfo | undefined;
|
get info(): ModuleInfo | undefined;
|
||||||
get meta(): Record<string, any> | undefined;
|
get meta(): Record<string, any> | undefined;
|
||||||
get importers(): Set<ModuleNode>;
|
get importers(): Set<ModuleNode>;
|
||||||
|
|
@ -1051,8 +1050,8 @@ declare class ModuleNode {
|
||||||
get lastHMRTimestamp(): number;
|
get lastHMRTimestamp(): number;
|
||||||
set lastHMRTimestamp(value: number);
|
set lastHMRTimestamp(value: number);
|
||||||
get lastInvalidationTimestamp(): number;
|
get lastInvalidationTimestamp(): number;
|
||||||
get invalidationState(): TransformResult | 'HARD_INVALIDATED' | undefined;
|
get invalidationState(): TransformResult | "HARD_INVALIDATED" | undefined;
|
||||||
get ssrInvalidationState(): TransformResult | 'HARD_INVALIDATED' | undefined;
|
get ssrInvalidationState(): TransformResult | "HARD_INVALIDATED" | undefined;
|
||||||
}
|
}
|
||||||
declare class ModuleGraph {
|
declare class ModuleGraph {
|
||||||
urlToModuleMap: Map<string, ModuleNode>;
|
urlToModuleMap: Map<string, ModuleNode>;
|
||||||
|
|
@ -1069,7 +1068,7 @@ declare class ModuleGraph {
|
||||||
getModulesByFile(file: string): Set<ModuleNode> | undefined;
|
getModulesByFile(file: string): Set<ModuleNode> | undefined;
|
||||||
onFileChange(file: string): void;
|
onFileChange(file: string): void;
|
||||||
onFileDelete(file: string): void;
|
onFileDelete(file: string): void;
|
||||||
invalidateModule(mod: ModuleNode, seen?: Set<ModuleNode>, timestamp?: number, isHmr?: boolean, ): void;
|
invalidateModule(mod: ModuleNode, seen?: Set<ModuleNode>, timestamp?: number, isHmr?: boolean, softInvalidate?: boolean): void;
|
||||||
invalidateAll(): void;
|
invalidateAll(): void;
|
||||||
ensureEntryFromUrl(rawUrl: string, ssr?: boolean, setIsSelfAccepting?: boolean): Promise<ModuleNode>;
|
ensureEntryFromUrl(rawUrl: string, ssr?: boolean, setIsSelfAccepting?: boolean): Promise<ModuleNode>;
|
||||||
createFileOnlyEntry(file: string): ModuleNode;
|
createFileOnlyEntry(file: string): ModuleNode;
|
||||||
|
|
@ -1081,7 +1080,7 @@ declare class ModuleGraph {
|
||||||
getBackwardCompatibleModuleNode(mod: EnvironmentModuleNode): ModuleNode;
|
getBackwardCompatibleModuleNode(mod: EnvironmentModuleNode): ModuleNode;
|
||||||
getBackwardCompatibleModuleNodeDual(clientModule?: EnvironmentModuleNode, ssrModule?: EnvironmentModuleNode): ModuleNode;
|
getBackwardCompatibleModuleNodeDual(clientModule?: EnvironmentModuleNode, ssrModule?: EnvironmentModuleNode): ModuleNode;
|
||||||
}
|
}
|
||||||
type ModuleSetNames = 'acceptedHmrDeps' | 'importedModules';
|
type ModuleSetNames = "acceptedHmrDeps" | "importedModules";
|
||||||
//#endregion
|
//#endregion
|
||||||
//#region src/node/server/hmr.d.ts
|
//#region src/node/server/hmr.d.ts
|
||||||
interface HmrOptions {
|
interface HmrOptions {
|
||||||
|
|
@ -1095,7 +1094,7 @@ interface HmrOptions {
|
||||||
server?: HttpServer;
|
server?: HttpServer;
|
||||||
}
|
}
|
||||||
interface HotUpdateOptions {
|
interface HotUpdateOptions {
|
||||||
type: 'create' | 'update' | 'delete';
|
type: "create" | "update" | "delete";
|
||||||
file: string;
|
file: string;
|
||||||
timestamp: number;
|
timestamp: number;
|
||||||
modules: Array<EnvironmentModuleNode>;
|
modules: Array<EnvironmentModuleNode>;
|
||||||
|
|
@ -1112,7 +1111,7 @@ interface HmrContext {
|
||||||
interface HotChannelClient {
|
interface HotChannelClient {
|
||||||
send(payload: hmrPayload_HotPayload): void;
|
send(payload: hmrPayload_HotPayload): void;
|
||||||
}
|
}
|
||||||
type HotChannelListener<T extends string = string> = (data: InferCustomEventPayload<T>, client: HotChannelClient) => void;
|
type HotChannelListener<T$1 extends string = string> = (data: InferCustomEventPayload<T$1>, client: HotChannelClient) => void;
|
||||||
interface HotChannel<Api = any> {
|
interface HotChannel<Api = any> {
|
||||||
/**
|
/**
|
||||||
* Broadcast events to all clients
|
* Broadcast events to all clients
|
||||||
|
|
@ -1121,8 +1120,8 @@ interface HotChannel<Api = any> {
|
||||||
/**
|
/**
|
||||||
* Handle custom event emitted by `import.meta.hot.send`
|
* Handle custom event emitted by `import.meta.hot.send`
|
||||||
*/
|
*/
|
||||||
on?<T extends string>(event: T, listener: HotChannelListener<T>): void;
|
on?<T$1 extends string>(event: T$1, listener: HotChannelListener<T$1>): void;
|
||||||
on?(event: 'connection', listener: () => void): void;
|
on?(event: "connection", listener: () => void): void;
|
||||||
/**
|
/**
|
||||||
* Unregister event listener
|
* Unregister event listener
|
||||||
*/
|
*/
|
||||||
|
|
@ -1145,7 +1144,7 @@ interface NormalizedHotChannelClient {
|
||||||
/**
|
/**
|
||||||
* Send custom event
|
* Send custom event
|
||||||
*/
|
*/
|
||||||
send(event: string, payload?: hmrPayload_CustomPayload['data']): void;
|
send(event: string, payload?: hmrPayload_CustomPayload["data"]): void;
|
||||||
}
|
}
|
||||||
interface NormalizedHotChannel<Api = any> {
|
interface NormalizedHotChannel<Api = any> {
|
||||||
/**
|
/**
|
||||||
|
|
@ -1155,12 +1154,15 @@ interface NormalizedHotChannel<Api = any> {
|
||||||
/**
|
/**
|
||||||
* Send custom event
|
* Send custom event
|
||||||
*/
|
*/
|
||||||
send<T extends string>(event: T, payload?: InferCustomEventPayload<T>): void;
|
send<T$1 extends string>(event: T$1, payload?: InferCustomEventPayload<T$1>): void;
|
||||||
/**
|
/**
|
||||||
* Handle custom event emitted by `import.meta.hot.send`
|
* Handle custom event emitted by `import.meta.hot.send`
|
||||||
*/
|
*/
|
||||||
on<T extends string>(event: T, listener: (data: InferCustomEventPayload<T>, client: NormalizedHotChannelClient) => void): void;
|
on<T$1 extends string>(event: T$1, listener: (data: InferCustomEventPayload<T$1>, client: NormalizedHotChannelClient) => void): void;
|
||||||
on(event: 'connection', listener: () => void): void;
|
/**
|
||||||
|
* @deprecated use `vite:client:connect` event instead
|
||||||
|
*/
|
||||||
|
on(event: "connection", listener: () => void): void;
|
||||||
/**
|
/**
|
||||||
* Unregister event listener
|
* Unregister event listener
|
||||||
*/
|
*/
|
||||||
|
|
@ -1427,38 +1429,38 @@ declare namespace WebSocket {
|
||||||
}
|
}
|
||||||
|
|
||||||
// WebSocket Server
|
// WebSocket Server
|
||||||
class Server<T extends WebSocket = WebSocket> extends EventEmitter {
|
class Server<T$1 extends WebSocket = WebSocket> extends EventEmitter {
|
||||||
options: ServerOptions;
|
options: ServerOptions;
|
||||||
path: string;
|
path: string;
|
||||||
clients: Set<T>;
|
clients: Set<T$1>;
|
||||||
constructor(options?: ServerOptions, callback?: () => void);
|
constructor(options?: ServerOptions, callback?: () => void);
|
||||||
address(): AddressInfo | string;
|
address(): AddressInfo | string;
|
||||||
close(cb?: (err?: Error) => void): void;
|
close(cb?: (err?: Error) => void): void;
|
||||||
handleUpgrade(request: http.IncomingMessage, socket: Duplex, upgradeHead: Buffer, callback: (client: T, request: http.IncomingMessage) => void): void;
|
handleUpgrade(request: http.IncomingMessage, socket: Duplex, upgradeHead: Buffer, callback: (client: T$1, request: http.IncomingMessage) => void): void;
|
||||||
shouldHandle(request: http.IncomingMessage): boolean | Promise<boolean>;
|
shouldHandle(request: http.IncomingMessage): boolean | Promise<boolean>;
|
||||||
|
|
||||||
// Events
|
// Events
|
||||||
on(event: 'connection', cb: (this: Server<T>, socket: T, request: http.IncomingMessage) => void): this;
|
on(event: 'connection', cb: (this: Server<T$1>, socket: T$1, request: http.IncomingMessage) => void): this;
|
||||||
on(event: 'error', cb: (this: Server<T>, error: Error) => void): this;
|
on(event: 'error', cb: (this: Server<T$1>, error: Error) => void): this;
|
||||||
on(event: 'headers', cb: (this: Server<T>, headers: string[], request: http.IncomingMessage) => void): this;
|
on(event: 'headers', cb: (this: Server<T$1>, headers: string[], request: http.IncomingMessage) => void): this;
|
||||||
on(event: 'close' | 'listening', cb: (this: Server<T>) => void): this;
|
on(event: 'close' | 'listening', cb: (this: Server<T$1>) => void): this;
|
||||||
on(event: string | symbol, listener: (this: Server<T>, ...args: any[]) => void): this;
|
on(event: string | symbol, listener: (this: Server<T$1>, ...args: any[]) => void): this;
|
||||||
once(event: 'connection', cb: (this: Server<T>, socket: T, request: http.IncomingMessage) => void): this;
|
once(event: 'connection', cb: (this: Server<T$1>, socket: T$1, request: http.IncomingMessage) => void): this;
|
||||||
once(event: 'error', cb: (this: Server<T>, error: Error) => void): this;
|
once(event: 'error', cb: (this: Server<T$1>, error: Error) => void): this;
|
||||||
once(event: 'headers', cb: (this: Server<T>, headers: string[], request: http.IncomingMessage) => void): this;
|
once(event: 'headers', cb: (this: Server<T$1>, headers: string[], request: http.IncomingMessage) => void): this;
|
||||||
once(event: 'close' | 'listening', cb: (this: Server<T>) => void): this;
|
once(event: 'close' | 'listening', cb: (this: Server<T$1>) => void): this;
|
||||||
once(event: string | symbol, listener: (this: Server<T>, ...args: any[]) => void): this;
|
once(event: string | symbol, listener: (this: Server<T$1>, ...args: any[]) => void): this;
|
||||||
off(event: 'connection', cb: (this: Server<T>, socket: T, request: http.IncomingMessage) => void): this;
|
off(event: 'connection', cb: (this: Server<T$1>, socket: T$1, request: http.IncomingMessage) => void): this;
|
||||||
off(event: 'error', cb: (this: Server<T>, error: Error) => void): this;
|
off(event: 'error', cb: (this: Server<T$1>, error: Error) => void): this;
|
||||||
off(event: 'headers', cb: (this: Server<T>, headers: string[], request: http.IncomingMessage) => void): this;
|
off(event: 'headers', cb: (this: Server<T$1>, headers: string[], request: http.IncomingMessage) => void): this;
|
||||||
off(event: 'close' | 'listening', cb: (this: Server<T>) => void): this;
|
off(event: 'close' | 'listening', cb: (this: Server<T$1>) => void): this;
|
||||||
off(event: string | symbol, listener: (this: Server<T>, ...args: any[]) => void): this;
|
off(event: string | symbol, listener: (this: Server<T$1>, ...args: any[]) => void): this;
|
||||||
addListener(event: 'connection', cb: (client: T, request: http.IncomingMessage) => void): this;
|
addListener(event: 'connection', cb: (client: T$1, request: http.IncomingMessage) => void): this;
|
||||||
addListener(event: 'error', cb: (err: Error) => void): this;
|
addListener(event: 'error', cb: (err: Error) => void): this;
|
||||||
addListener(event: 'headers', cb: (headers: string[], request: http.IncomingMessage) => void): this;
|
addListener(event: 'headers', cb: (headers: string[], request: http.IncomingMessage) => void): this;
|
||||||
addListener(event: 'close' | 'listening', cb: () => void): this;
|
addListener(event: 'close' | 'listening', cb: () => void): this;
|
||||||
addListener(event: string | symbol, listener: (...args: any[]) => void): this;
|
addListener(event: string | symbol, listener: (...args: any[]) => void): this;
|
||||||
removeListener(event: 'connection', cb: (client: T) => void): this;
|
removeListener(event: 'connection', cb: (client: T$1) => void): this;
|
||||||
removeListener(event: 'error', cb: (err: Error) => void): this;
|
removeListener(event: 'error', cb: (err: Error) => void): this;
|
||||||
removeListener(event: 'headers', cb: (headers: string[], request: http.IncomingMessage) => void): this;
|
removeListener(event: 'headers', cb: (headers: string[], request: http.IncomingMessage) => void): this;
|
||||||
removeListener(event: 'close' | 'listening', cb: () => void): this;
|
removeListener(event: 'close' | 'listening', cb: () => void): this;
|
||||||
|
|
@ -1476,19 +1478,19 @@ declare namespace WebSocket {
|
||||||
// export = WebSocket
|
// export = WebSocket
|
||||||
//#endregion
|
//#endregion
|
||||||
//#region src/node/server/ws.d.ts
|
//#region src/node/server/ws.d.ts
|
||||||
type WebSocketCustomListener<T> = (data: T, client: WebSocketClient, invoke?: 'send' | `send:${string}`) => void;
|
type WebSocketCustomListener<T$1> = (data: T$1, client: WebSocketClient) => void;
|
||||||
declare const isWebSocketServer: unique symbol;
|
declare const isWebSocketServer: unique symbol;
|
||||||
interface WebSocketServer extends NormalizedHotChannel {
|
interface WebSocketServer extends NormalizedHotChannel {
|
||||||
/**
|
/**
|
||||||
* Handle custom event emitted by `import.meta.hot.send`
|
* Handle custom event emitted by `import.meta.hot.send`
|
||||||
*/
|
*/
|
||||||
on: WebSocket.Server['on'] & {
|
on: WebSocket.Server["on"] & {
|
||||||
<T extends string>(event: T, listener: WebSocketCustomListener<hmrPayload_InferCustomEventPayload<T>>): void;
|
<T$1 extends string>(event: T$1, listener: WebSocketCustomListener<hmrPayload_InferCustomEventPayload<T$1>>): void;
|
||||||
};
|
};
|
||||||
/**
|
/**
|
||||||
* Unregister event listener.
|
* Unregister event listener.
|
||||||
*/
|
*/
|
||||||
off: WebSocket.Server['off'] & {
|
off: WebSocket.Server["off"] & {
|
||||||
(event: string, listener: Function): void;
|
(event: string, listener: Function): void;
|
||||||
};
|
};
|
||||||
/**
|
/**
|
||||||
|
|
@ -1555,7 +1557,7 @@ declare class DevEnvironment extends BaseEnvironment {
|
||||||
listen(server: ViteDevServer): Promise<void>;
|
listen(server: ViteDevServer): Promise<void>;
|
||||||
fetchModule(id: string, importer?: string, options?: FetchFunctionOptions): Promise<moduleRunner_FetchResult>;
|
fetchModule(id: string, importer?: string, options?: FetchFunctionOptions): Promise<moduleRunner_FetchResult>;
|
||||||
reloadModule(module: EnvironmentModuleNode): Promise<void>;
|
reloadModule(module: EnvironmentModuleNode): Promise<void>;
|
||||||
transformRequest(url: string, ): Promise<TransformResult | null>;
|
transformRequest(url: string, options?: TransformOptionsInternal): Promise<TransformResult | null>;
|
||||||
warmupRequest(url: string): Promise<void>;
|
warmupRequest(url: string): Promise<void>;
|
||||||
close(): Promise<void>;
|
close(): Promise<void>;
|
||||||
/**
|
/**
|
||||||
|
|
@ -1876,7 +1878,7 @@ interface InternalResolveOptions extends Required<ResolveOptions>, ResolvePlugin
|
||||||
type PackageCache = Map<string, PackageData>;
|
type PackageCache = Map<string, PackageData>;
|
||||||
interface PackageData {
|
interface PackageData {
|
||||||
dir: string;
|
dir: string;
|
||||||
hasSideEffects: (id: string) => boolean | 'no-treeshake' | null;
|
hasSideEffects: (id: string) => boolean | "no-treeshake" | null;
|
||||||
setResolvedCache: (key: string, entry: string, options: InternalResolveOptions) => void;
|
setResolvedCache: (key: string, entry: string, options: InternalResolveOptions) => void;
|
||||||
getResolvedCache: (key: string, options: InternalResolveOptions) => string | undefined;
|
getResolvedCache: (key: string, options: InternalResolveOptions) => string | undefined;
|
||||||
data: {
|
data: {
|
||||||
|
|
@ -1893,6 +1895,17 @@ interface PackageData {
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
//#endregion
|
//#endregion
|
||||||
|
//#region src/node/plugins/license.d.ts
|
||||||
|
interface LicenseOptions {
|
||||||
|
/**
|
||||||
|
* The output file name of the license file relative to the output directory.
|
||||||
|
* Specify a path that ends with `.json` to output the raw JSON metadata.
|
||||||
|
*
|
||||||
|
* @default '.vite/license.md'
|
||||||
|
*/
|
||||||
|
fileName: string;
|
||||||
|
}
|
||||||
|
//#endregion
|
||||||
//#region src/node/build.d.ts
|
//#region src/node/build.d.ts
|
||||||
interface BuildEnvironmentOptions {
|
interface BuildEnvironmentOptions {
|
||||||
/**
|
/**
|
||||||
|
|
@ -1911,7 +1924,7 @@ interface BuildEnvironmentOptions {
|
||||||
* https://esbuild.github.io/content-types/#javascript for more details.
|
* https://esbuild.github.io/content-types/#javascript for more details.
|
||||||
* @default 'baseline-widely-available'
|
* @default 'baseline-widely-available'
|
||||||
*/
|
*/
|
||||||
target?: 'baseline-widely-available' | esbuild_TransformOptions['target'] | false;
|
target?: "baseline-widely-available" | esbuild_TransformOptions["target"] | false;
|
||||||
/**
|
/**
|
||||||
* whether to inject module preload polyfill.
|
* whether to inject module preload polyfill.
|
||||||
* Note: does not apply to library mode.
|
* Note: does not apply to library mode.
|
||||||
|
|
@ -1962,13 +1975,13 @@ interface BuildEnvironmentOptions {
|
||||||
* doesn't support the #RGBA syntax.
|
* doesn't support the #RGBA syntax.
|
||||||
* @default target
|
* @default target
|
||||||
*/
|
*/
|
||||||
cssTarget?: esbuild_TransformOptions['target'] | false;
|
cssTarget?: esbuild_TransformOptions["target"] | false;
|
||||||
/**
|
/**
|
||||||
* Override CSS minification specifically instead of defaulting to `build.minify`,
|
* Override CSS minification specifically instead of defaulting to `build.minify`,
|
||||||
* so you can configure minification for JS and CSS separately.
|
* so you can configure minification for JS and CSS separately.
|
||||||
* @default 'esbuild'
|
* @default 'esbuild'
|
||||||
*/
|
*/
|
||||||
cssMinify?: boolean | 'esbuild' | 'lightningcss';
|
cssMinify?: boolean | "esbuild" | "lightningcss";
|
||||||
/**
|
/**
|
||||||
* If `true`, a separate sourcemap file will be created. If 'inline', the
|
* If `true`, a separate sourcemap file will be created. If 'inline', the
|
||||||
* sourcemap will be appended to the resulting output file as data URI.
|
* sourcemap will be appended to the resulting output file as data URI.
|
||||||
|
|
@ -1976,13 +1989,13 @@ interface BuildEnvironmentOptions {
|
||||||
* comments in the bundled files are suppressed.
|
* comments in the bundled files are suppressed.
|
||||||
* @default false
|
* @default false
|
||||||
*/
|
*/
|
||||||
sourcemap?: boolean | 'inline' | 'hidden';
|
sourcemap?: boolean | "inline" | "hidden";
|
||||||
/**
|
/**
|
||||||
* Set to `false` to disable minification, or specify the minifier to use.
|
* Set to `false` to disable minification, or specify the minifier to use.
|
||||||
* Available options are 'terser' or 'esbuild'.
|
* Available options are 'terser' or 'esbuild'.
|
||||||
* @default 'esbuild'
|
* @default 'esbuild'
|
||||||
*/
|
*/
|
||||||
minify?: boolean | 'terser' | 'esbuild';
|
minify?: boolean | "terser" | "esbuild";
|
||||||
/**
|
/**
|
||||||
* Options for terser
|
* Options for terser
|
||||||
* https://terser.org/docs/api-reference#minify-options
|
* https://terser.org/docs/api-reference#minify-options
|
||||||
|
|
@ -2020,6 +2033,12 @@ interface BuildEnvironmentOptions {
|
||||||
*/
|
*/
|
||||||
copyPublicDir?: boolean;
|
copyPublicDir?: boolean;
|
||||||
/**
|
/**
|
||||||
|
* Whether to emit a `.vite/license.md` file that includes all bundled dependencies'
|
||||||
|
* licenses. Pass an object to customize the output file name.
|
||||||
|
* @default false
|
||||||
|
*/
|
||||||
|
license?: boolean | LicenseOptions;
|
||||||
|
/**
|
||||||
* Whether to emit a .vite/manifest.json in the output dir to map hash-less filenames
|
* Whether to emit a .vite/manifest.json in the output dir to map hash-less filenames
|
||||||
* to their hashed versions. Useful when you want to generate your own HTML
|
* to their hashed versions. Useful when you want to generate your own HTML
|
||||||
* instead of using the one generated by Vite.
|
* instead of using the one generated by Vite.
|
||||||
|
|
@ -2119,7 +2138,7 @@ interface LibraryOptions {
|
||||||
*/
|
*/
|
||||||
cssFileName?: string;
|
cssFileName?: string;
|
||||||
}
|
}
|
||||||
type LibraryFormats = 'es' | 'cjs' | 'umd' | 'iife' | 'system';
|
type LibraryFormats = "es" | "cjs" | "umd" | "iife" | "system";
|
||||||
interface ModulePreloadOptions {
|
interface ModulePreloadOptions {
|
||||||
/**
|
/**
|
||||||
* Whether to inject a module preload polyfill.
|
* Whether to inject a module preload polyfill.
|
||||||
|
|
@ -2139,12 +2158,12 @@ interface ResolvedModulePreloadOptions {
|
||||||
}
|
}
|
||||||
type ResolveModulePreloadDependenciesFn = (filename: string, deps: string[], context: {
|
type ResolveModulePreloadDependenciesFn = (filename: string, deps: string[], context: {
|
||||||
hostId: string;
|
hostId: string;
|
||||||
hostType: 'html' | 'js';
|
hostType: "html" | "js";
|
||||||
}) => string[];
|
}) => string[];
|
||||||
interface ResolvedBuildEnvironmentOptions extends Required<Omit<BuildEnvironmentOptions, 'polyfillModulePreload'>> {
|
interface ResolvedBuildEnvironmentOptions extends Required<Omit<BuildEnvironmentOptions, "polyfillModulePreload">> {
|
||||||
modulePreload: false | ResolvedModulePreloadOptions;
|
modulePreload: false | ResolvedModulePreloadOptions;
|
||||||
}
|
}
|
||||||
interface ResolvedBuildOptions extends Required<Omit<BuildOptions, 'polyfillModulePreload'>> {
|
interface ResolvedBuildOptions extends Required<Omit<BuildOptions, "polyfillModulePreload">> {
|
||||||
modulePreload: false | ResolvedModulePreloadOptions;
|
modulePreload: false | ResolvedModulePreloadOptions;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
|
|
@ -2153,9 +2172,9 @@ interface ResolvedBuildOptions extends Required<Omit<BuildOptions, 'polyfillModu
|
||||||
*/
|
*/
|
||||||
declare function build(inlineConfig?: InlineConfig): Promise<RollupOutput | RollupOutput[] | RollupWatcher>;
|
declare function build(inlineConfig?: InlineConfig): Promise<RollupOutput | RollupOutput[] | RollupWatcher>;
|
||||||
type RenderBuiltAssetUrl = (filename: string, type: {
|
type RenderBuiltAssetUrl = (filename: string, type: {
|
||||||
type: 'asset' | 'public';
|
type: "asset" | "public";
|
||||||
hostId: string;
|
hostId: string;
|
||||||
hostType: 'js' | 'css' | 'html';
|
hostType: "js" | "css" | "html";
|
||||||
ssr: boolean;
|
ssr: boolean;
|
||||||
}) => string | {
|
}) => string | {
|
||||||
relative?: boolean;
|
relative?: boolean;
|
||||||
|
|
@ -2201,7 +2220,7 @@ declare function createBuilder(inlineConfig?: InlineConfig, useLegacyBuilder?: n
|
||||||
type BuildAppHook = (this: MinimalPluginContextWithoutEnvironment, builder: ViteBuilder) => Promise<void>;
|
type BuildAppHook = (this: MinimalPluginContextWithoutEnvironment, builder: ViteBuilder) => Promise<void>;
|
||||||
//#endregion
|
//#endregion
|
||||||
//#region src/node/environment.d.ts
|
//#region src/node/environment.d.ts
|
||||||
type Environment = DevEnvironment | BuildEnvironment | UnknownEnvironment;
|
type Environment = DevEnvironment | BuildEnvironment | ScanEnvironment | UnknownEnvironment;
|
||||||
/**
|
/**
|
||||||
* Creates a function that hides the complexities of a WeakMap with an initial value
|
* Creates a function that hides the complexities of a WeakMap with an initial value
|
||||||
* to implement object metadata. Used by plugins to implement cross hooks per
|
* to implement object metadata. Used by plugins to implement cross hooks per
|
||||||
|
|
@ -2215,20 +2234,17 @@ declare function perEnvironmentState<State>(initial: (environment: Environment)
|
||||||
type SkipInformation = {
|
type SkipInformation = {
|
||||||
id: string;
|
id: string;
|
||||||
importer: string | undefined;
|
importer: string | undefined;
|
||||||
plugin: Plugin$1;
|
plugin: Plugin;
|
||||||
called?: boolean;
|
called?: boolean;
|
||||||
};
|
};
|
||||||
declare class EnvironmentPluginContainer<Env extends Environment = Environment> {
|
declare class EnvironmentPluginContainer<Env extends Environment = Environment> {
|
||||||
environment: Env;
|
|
||||||
plugins: readonly Plugin$1[];
|
|
||||||
watcher?: FSWatcher | undefined;
|
|
||||||
private _pluginContextMap;
|
private _pluginContextMap;
|
||||||
private _resolvedRollupOptions?;
|
private _resolvedRollupOptions?;
|
||||||
private _processesing;
|
private _processesing;
|
||||||
private _seenResolves;
|
private _seenResolves;
|
||||||
private _moduleNodeToLoadAddedImports;
|
private _moduleNodeToLoadAddedImports;
|
||||||
getSortedPluginHooks: PluginHookUtils['getSortedPluginHooks'];
|
getSortedPluginHooks: PluginHookUtils["getSortedPluginHooks"];
|
||||||
getSortedPlugins: PluginHookUtils['getSortedPlugins'];
|
getSortedPlugins: PluginHookUtils["getSortedPlugins"];
|
||||||
moduleGraph: EnvironmentModuleGraph | undefined;
|
moduleGraph: EnvironmentModuleGraph | undefined;
|
||||||
watchFiles: Set<string>;
|
watchFiles: Set<string>;
|
||||||
minimalContext: MinimalPluginContext$1<Env>;
|
minimalContext: MinimalPluginContext$1<Env>;
|
||||||
|
|
@ -2248,21 +2264,22 @@ declare class EnvironmentPluginContainer<Env extends Environment = Environment>
|
||||||
attributes?: Record<string, string>;
|
attributes?: Record<string, string>;
|
||||||
custom?: CustomPluginOptions;
|
custom?: CustomPluginOptions;
|
||||||
/** @deprecated use `skipCalls` instead */
|
/** @deprecated use `skipCalls` instead */
|
||||||
skip?: Set<Plugin$1>;
|
skip?: Set<Plugin>;
|
||||||
skipCalls?: readonly SkipInformation[];
|
skipCalls?: readonly SkipInformation[];
|
||||||
|
|
||||||
isEntry?: boolean;
|
isEntry?: boolean;
|
||||||
}): Promise<PartialResolvedId | null>;
|
}): Promise<PartialResolvedId | null>;
|
||||||
load(id: string): Promise<LoadResult | null>;
|
load(id: string): Promise<LoadResult | null>;
|
||||||
transform(code: string, id: string, options?: {
|
transform(code: string, id: string, options?: {
|
||||||
inMap?: SourceDescription['map'];
|
inMap?: SourceDescription["map"];
|
||||||
}): Promise<{
|
}): Promise<{
|
||||||
code: string;
|
code: string;
|
||||||
map: SourceMap | {
|
map: SourceMap | {
|
||||||
mappings: '';
|
mappings: "";
|
||||||
} | null;
|
} | null;
|
||||||
}>;
|
}>;
|
||||||
watchChange(id: string, change: {
|
watchChange(id: string, change: {
|
||||||
event: 'create' | 'update' | 'delete';
|
event: "create" | "update" | "delete";
|
||||||
}): Promise<void>;
|
}): Promise<void>;
|
||||||
close(): Promise<void>;
|
close(): Promise<void>;
|
||||||
}
|
}
|
||||||
|
|
@ -2276,9 +2293,9 @@ declare class BasicMinimalPluginContext<Meta = PluginContextMeta> {
|
||||||
error(e: string | RollupError): never;
|
error(e: string | RollupError): never;
|
||||||
private _normalizeRawLog;
|
private _normalizeRawLog;
|
||||||
}
|
}
|
||||||
declare class MinimalPluginContext$1<T extends Environment = Environment> extends BasicMinimalPluginContext implements MinimalPluginContext {
|
declare class MinimalPluginContext$1<T$1 extends Environment = Environment> extends BasicMinimalPluginContext implements MinimalPluginContext {
|
||||||
environment: T;
|
environment: T$1;
|
||||||
constructor(meta: PluginContextMeta, environment: T);
|
constructor(meta: PluginContextMeta, environment: T$1);
|
||||||
}
|
}
|
||||||
declare class PluginContainer {
|
declare class PluginContainer {
|
||||||
private environments;
|
private environments;
|
||||||
|
|
@ -2289,15 +2306,16 @@ declare class PluginContainer {
|
||||||
get options(): InputOptions;
|
get options(): InputOptions;
|
||||||
buildStart(_options?: InputOptions): Promise<void>;
|
buildStart(_options?: InputOptions): Promise<void>;
|
||||||
watchChange(id: string, change: {
|
watchChange(id: string, change: {
|
||||||
event: 'create' | 'update' | 'delete';
|
event: "create" | "update" | "delete";
|
||||||
}): Promise<void>;
|
}): Promise<void>;
|
||||||
resolveId(rawId: string, importer?: string, options?: {
|
resolveId(rawId: string, importer?: string, options?: {
|
||||||
attributes?: Record<string, string>;
|
attributes?: Record<string, string>;
|
||||||
custom?: CustomPluginOptions;
|
custom?: CustomPluginOptions;
|
||||||
/** @deprecated use `skipCalls` instead */
|
/** @deprecated use `skipCalls` instead */
|
||||||
skip?: Set<Plugin$1>;
|
skip?: Set<Plugin>;
|
||||||
skipCalls?: readonly SkipInformation[];
|
skipCalls?: readonly SkipInformation[];
|
||||||
ssr?: boolean;
|
ssr?: boolean;
|
||||||
|
|
||||||
isEntry?: boolean;
|
isEntry?: boolean;
|
||||||
}): Promise<PartialResolvedId | null>;
|
}): Promise<PartialResolvedId | null>;
|
||||||
load(id: string, options?: {
|
load(id: string, options?: {
|
||||||
|
|
@ -2306,11 +2324,11 @@ declare class PluginContainer {
|
||||||
transform(code: string, id: string, options?: {
|
transform(code: string, id: string, options?: {
|
||||||
ssr?: boolean;
|
ssr?: boolean;
|
||||||
environment?: Environment;
|
environment?: Environment;
|
||||||
inMap?: SourceDescription['map'];
|
inMap?: SourceDescription["map"];
|
||||||
}): Promise<{
|
}): Promise<{
|
||||||
code: string;
|
code: string;
|
||||||
map: SourceMap | {
|
map: SourceMap | {
|
||||||
mappings: '';
|
mappings: "";
|
||||||
} | null;
|
} | null;
|
||||||
}>;
|
}>;
|
||||||
close(): Promise<void>;
|
close(): Promise<void>;
|
||||||
|
|
@ -2392,22 +2410,29 @@ interface ServerOptions$1 extends CommonServerOptions {
|
||||||
*/
|
*/
|
||||||
sourcemapIgnoreList?: false | ((sourcePath: string, sourcemapPath: string) => boolean);
|
sourcemapIgnoreList?: false | ((sourcePath: string, sourcemapPath: string) => boolean);
|
||||||
/**
|
/**
|
||||||
* Backward compatibility. The buildStart and buildEnd hooks were called only once for all
|
* Backward compatibility. The buildStart and buildEnd hooks were called only once for
|
||||||
* environments. This option enables per-environment buildStart and buildEnd hooks.
|
* the client environment. This option enables per-environment buildStart and buildEnd hooks.
|
||||||
* @default false
|
* @default false
|
||||||
* @experimental
|
* @experimental
|
||||||
*/
|
*/
|
||||||
perEnvironmentStartEndDuringDev?: boolean;
|
perEnvironmentStartEndDuringDev?: boolean;
|
||||||
/**
|
/**
|
||||||
|
* Backward compatibility. The watchChange hook was called only once for the client environment.
|
||||||
|
* This option enables per-environment watchChange hooks.
|
||||||
|
* @default false
|
||||||
|
* @experimental
|
||||||
|
*/
|
||||||
|
perEnvironmentWatchChangeDuringDev?: boolean;
|
||||||
|
/**
|
||||||
* Run HMR tasks, by default the HMR propagation is done in parallel for all environments
|
* Run HMR tasks, by default the HMR propagation is done in parallel for all environments
|
||||||
* @experimental
|
* @experimental
|
||||||
*/
|
*/
|
||||||
hotUpdateEnvironments?: (server: ViteDevServer, hmr: (environment: DevEnvironment) => Promise<void>) => Promise<void>;
|
hotUpdateEnvironments?: (server: ViteDevServer, hmr: (environment: DevEnvironment) => Promise<void>) => Promise<void>;
|
||||||
}
|
}
|
||||||
interface ResolvedServerOptions extends Omit<RequiredExceptFor<ServerOptions$1, 'host' | 'https' | 'proxy' | 'hmr' | 'ws' | 'watch' | 'origin' | 'hotUpdateEnvironments'>, 'fs' | 'middlewareMode' | 'sourcemapIgnoreList'> {
|
interface ResolvedServerOptions extends Omit<RequiredExceptFor<ServerOptions$1, "host" | "https" | "proxy" | "hmr" | "ws" | "watch" | "origin" | "hotUpdateEnvironments">, "fs" | "middlewareMode" | "sourcemapIgnoreList"> {
|
||||||
fs: Required<FileSystemServeOptions>;
|
fs: Required<FileSystemServeOptions>;
|
||||||
middlewareMode: NonNullable<ServerOptions$1['middlewareMode']>;
|
middlewareMode: NonNullable<ServerOptions$1["middlewareMode"]>;
|
||||||
sourcemapIgnoreList: Exclude<ServerOptions$1['sourcemapIgnoreList'], false | undefined>;
|
sourcemapIgnoreList: Exclude<ServerOptions$1["sourcemapIgnoreList"], false | undefined>;
|
||||||
}
|
}
|
||||||
interface FileSystemServeOptions {
|
interface FileSystemServeOptions {
|
||||||
/**
|
/**
|
||||||
|
|
@ -2478,7 +2503,7 @@ interface ViteDevServer {
|
||||||
/**
|
/**
|
||||||
* Module execution environments attached to the Vite server.
|
* Module execution environments attached to the Vite server.
|
||||||
*/
|
*/
|
||||||
environments: Record<'client' | 'ssr' | (string & {}), DevEnvironment>;
|
environments: Record<"client" | "ssr" | (string & {}), DevEnvironment>;
|
||||||
/**
|
/**
|
||||||
* Module graph that tracks the import relationships, url to file mapping
|
* Module graph that tracks the import relationships, url to file mapping
|
||||||
* and hmr state.
|
* and hmr state.
|
||||||
|
|
@ -2508,7 +2533,7 @@ interface ViteDevServer {
|
||||||
* Transform module code into SSR format.
|
* Transform module code into SSR format.
|
||||||
*/
|
*/
|
||||||
ssrTransform(code: string, inMap: SourceMap | {
|
ssrTransform(code: string, inMap: SourceMap | {
|
||||||
mappings: '';
|
mappings: "";
|
||||||
} | null, url: string, originalCode?: string): Promise<TransformResult | null>;
|
} | null, url: string, originalCode?: string): Promise<TransformResult | null>;
|
||||||
/**
|
/**
|
||||||
* Load a given URL as an instantiated module for SSR.
|
* Load a given URL as an instantiated module for SSR.
|
||||||
|
|
@ -2572,12 +2597,15 @@ declare function createServer(inlineConfig?: InlineConfig | ResolvedConfig): Pro
|
||||||
//#region src/node/plugins/html.d.ts
|
//#region src/node/plugins/html.d.ts
|
||||||
interface HtmlTagDescriptor {
|
interface HtmlTagDescriptor {
|
||||||
tag: string;
|
tag: string;
|
||||||
|
/**
|
||||||
|
* attribute values will be escaped automatically if needed
|
||||||
|
*/
|
||||||
attrs?: Record<string, string | boolean | undefined>;
|
attrs?: Record<string, string | boolean | undefined>;
|
||||||
children?: string | HtmlTagDescriptor[];
|
children?: string | HtmlTagDescriptor[];
|
||||||
/**
|
/**
|
||||||
* default: 'head-prepend'
|
* default: 'head-prepend'
|
||||||
*/
|
*/
|
||||||
injectTo?: 'head' | 'body' | 'head-prepend' | 'body-prepend';
|
injectTo?: "head" | "body" | "head-prepend" | "body-prepend";
|
||||||
}
|
}
|
||||||
type IndexHtmlTransformResult = string | HtmlTagDescriptor[] | {
|
type IndexHtmlTransformResult = string | HtmlTagDescriptor[] | {
|
||||||
html: string;
|
html: string;
|
||||||
|
|
@ -2599,7 +2627,7 @@ interface IndexHtmlTransformContext {
|
||||||
}
|
}
|
||||||
type IndexHtmlTransformHook = (this: MinimalPluginContextWithoutEnvironment, html: string, ctx: IndexHtmlTransformContext) => IndexHtmlTransformResult | void | Promise<IndexHtmlTransformResult | void>;
|
type IndexHtmlTransformHook = (this: MinimalPluginContextWithoutEnvironment, html: string, ctx: IndexHtmlTransformContext) => IndexHtmlTransformResult | void | Promise<IndexHtmlTransformResult | void>;
|
||||||
type IndexHtmlTransform = IndexHtmlTransformHook | {
|
type IndexHtmlTransform = IndexHtmlTransformHook | {
|
||||||
order?: 'pre' | 'post' | null;
|
order?: "pre" | "post" | null;
|
||||||
handler: IndexHtmlTransformHook;
|
handler: IndexHtmlTransformHook;
|
||||||
};
|
};
|
||||||
//#endregion
|
//#endregion
|
||||||
|
|
@ -2645,11 +2673,11 @@ interface PluginContextExtension {
|
||||||
interface PluginContextMetaExtension {
|
interface PluginContextMetaExtension {
|
||||||
viteVersion: string;
|
viteVersion: string;
|
||||||
}
|
}
|
||||||
interface ConfigPluginContext extends Omit<MinimalPluginContext, 'meta' | 'environment'> {
|
interface ConfigPluginContext extends Omit<MinimalPluginContext, "meta" | "environment"> {
|
||||||
meta: Omit<PluginContextMeta, 'watchMode'>;
|
meta: Omit<PluginContextMeta, "watchMode">;
|
||||||
}
|
}
|
||||||
interface MinimalPluginContextWithoutEnvironment extends Omit<MinimalPluginContext, 'environment'> {}
|
interface MinimalPluginContextWithoutEnvironment extends Omit<MinimalPluginContext, "environment"> {}
|
||||||
declare module 'rollup' {
|
declare module "rollup" {
|
||||||
interface MinimalPluginContext extends PluginContextExtension {}
|
interface MinimalPluginContext extends PluginContextExtension {}
|
||||||
interface PluginContextMeta extends PluginContextMetaExtension {}
|
interface PluginContextMeta extends PluginContextMetaExtension {}
|
||||||
}
|
}
|
||||||
|
|
@ -2663,7 +2691,7 @@ declare module 'rollup' {
|
||||||
* Environment Plugins are closer to regular rollup plugins. They can't define
|
* Environment Plugins are closer to regular rollup plugins. They can't define
|
||||||
* app level hooks (like config, configResolved, configureServer, etc).
|
* app level hooks (like config, configResolved, configureServer, etc).
|
||||||
*/
|
*/
|
||||||
interface Plugin$1<A = any> extends Rollup.Plugin<A> {
|
interface Plugin<A = any> extends Rollup.Plugin<A> {
|
||||||
/**
|
/**
|
||||||
* Perform custom handling of HMR updates.
|
* Perform custom handling of HMR updates.
|
||||||
* The handler receives an options containing changed filename, timestamp, a
|
* The handler receives an options containing changed filename, timestamp, a
|
||||||
|
|
@ -2688,7 +2716,8 @@ interface Plugin$1<A = any> extends Rollup.Plugin<A> {
|
||||||
resolveId?: ObjectHook<(this: PluginContext, source: string, importer: string | undefined, options: {
|
resolveId?: ObjectHook<(this: PluginContext, source: string, importer: string | undefined, options: {
|
||||||
attributes: Record<string, string>;
|
attributes: Record<string, string>;
|
||||||
custom?: CustomPluginOptions;
|
custom?: CustomPluginOptions;
|
||||||
ssr?: boolean;
|
ssr?: boolean | undefined;
|
||||||
|
|
||||||
isEntry: boolean;
|
isEntry: boolean;
|
||||||
}) => Promise<ResolveIdResult> | ResolveIdResult, {
|
}) => Promise<ResolveIdResult> | ResolveIdResult, {
|
||||||
filter?: {
|
filter?: {
|
||||||
|
|
@ -2696,14 +2725,14 @@ interface Plugin$1<A = any> extends Rollup.Plugin<A> {
|
||||||
};
|
};
|
||||||
}>;
|
}>;
|
||||||
load?: ObjectHook<(this: PluginContext, id: string, options?: {
|
load?: ObjectHook<(this: PluginContext, id: string, options?: {
|
||||||
ssr?: boolean;
|
ssr?: boolean | undefined;
|
||||||
}) => Promise<LoadResult> | LoadResult, {
|
}) => Promise<LoadResult> | LoadResult, {
|
||||||
filter?: {
|
filter?: {
|
||||||
id?: StringFilter;
|
id?: StringFilter;
|
||||||
};
|
};
|
||||||
}>;
|
}>;
|
||||||
transform?: ObjectHook<(this: TransformPluginContext, code: string, id: string, options?: {
|
transform?: ObjectHook<(this: TransformPluginContext, code: string, id: string, options?: {
|
||||||
ssr?: boolean;
|
ssr?: boolean | undefined;
|
||||||
}) => Promise<Rollup.TransformResult> | Rollup.TransformResult, {
|
}) => Promise<Rollup.TransformResult> | Rollup.TransformResult, {
|
||||||
filter?: {
|
filter?: {
|
||||||
id?: StringFilter;
|
id?: StringFilter;
|
||||||
|
|
@ -2728,6 +2757,14 @@ interface Plugin$1<A = any> extends Rollup.Plugin<A> {
|
||||||
*/
|
*/
|
||||||
perEnvironmentStartEndDuringDev?: boolean;
|
perEnvironmentStartEndDuringDev?: boolean;
|
||||||
/**
|
/**
|
||||||
|
* Opt-in this plugin into per-environment watchChange during dev.
|
||||||
|
* For backward-compatibility, the watchChange hook is called only once during
|
||||||
|
* dev, for the client environment. Plugins can opt-in to be called
|
||||||
|
* per-environment, aligning with the watchChange hook behavior.
|
||||||
|
* @experimental
|
||||||
|
*/
|
||||||
|
perEnvironmentWatchChangeDuringDev?: boolean;
|
||||||
|
/**
|
||||||
* Enforce plugin invocation tier similar to webpack loaders. Hooks ordering
|
* Enforce plugin invocation tier similar to webpack loaders. Hooks ordering
|
||||||
* is still subject to the `order` property in the hook object.
|
* is still subject to the `order` property in the hook object.
|
||||||
*
|
*
|
||||||
|
|
@ -2740,11 +2777,11 @@ interface Plugin$1<A = any> extends Rollup.Plugin<A> {
|
||||||
* - `enforce: 'post'` plugins
|
* - `enforce: 'post'` plugins
|
||||||
* - vite build post plugins
|
* - vite build post plugins
|
||||||
*/
|
*/
|
||||||
enforce?: 'pre' | 'post';
|
enforce?: "pre" | "post";
|
||||||
/**
|
/**
|
||||||
* Apply the plugin only for serve or build, or on certain conditions.
|
* Apply the plugin only for serve or build, or on certain conditions.
|
||||||
*/
|
*/
|
||||||
apply?: 'serve' | 'build' | ((this: void, config: UserConfig, env: ConfigEnv) => boolean);
|
apply?: "serve" | "build" | ((this: void, config: UserConfig, env: ConfigEnv) => boolean);
|
||||||
/**
|
/**
|
||||||
* Define environments where this plugin should be active
|
* Define environments where this plugin should be active
|
||||||
* By default, the plugin is active in all environments
|
* By default, the plugin is active in all environments
|
||||||
|
|
@ -2759,7 +2796,7 @@ interface Plugin$1<A = any> extends Rollup.Plugin<A> {
|
||||||
* Note: User plugins are resolved before running this hook so injecting other
|
* Note: User plugins are resolved before running this hook so injecting other
|
||||||
* plugins inside the `config` hook will have no effect.
|
* plugins inside the `config` hook will have no effect.
|
||||||
*/
|
*/
|
||||||
config?: ObjectHook<(this: ConfigPluginContext, config: UserConfig, env: ConfigEnv) => Omit<UserConfig, 'plugins'> | null | void | Promise<Omit<UserConfig, 'plugins'> | null | void>>;
|
config?: ObjectHook<(this: ConfigPluginContext, config: UserConfig, env: ConfigEnv) => Omit<UserConfig, "plugins"> | null | void | Promise<Omit<UserConfig, "plugins"> | null | void>>;
|
||||||
/**
|
/**
|
||||||
* Modify environment configs before it's resolved. The hook can either mutate the
|
* Modify environment configs before it's resolved. The hook can either mutate the
|
||||||
* passed-in environment config directly, or return a partial config object that will be
|
* passed-in environment config directly, or return a partial config object that will be
|
||||||
|
|
@ -2845,15 +2882,15 @@ interface Plugin$1<A = any> extends Rollup.Plugin<A> {
|
||||||
*/
|
*/
|
||||||
handleHotUpdate?: ObjectHook<(this: MinimalPluginContextWithoutEnvironment, ctx: HmrContext) => Array<ModuleNode> | void | Promise<Array<ModuleNode> | void>>;
|
handleHotUpdate?: ObjectHook<(this: MinimalPluginContextWithoutEnvironment, ctx: HmrContext) => Array<ModuleNode> | void | Promise<Array<ModuleNode> | void>>;
|
||||||
}
|
}
|
||||||
type HookHandler<T> = T extends ObjectHook<infer H> ? H : T;
|
type HookHandler<T$1> = T$1 extends ObjectHook<infer H> ? H : T$1;
|
||||||
type PluginWithRequiredHook<K extends keyof Plugin$1> = Plugin$1 & { [P in K]: NonNullable<Plugin$1[P]> };
|
type PluginWithRequiredHook<K$1 extends keyof Plugin> = Plugin & { [P in K$1]: NonNullable<Plugin[P]> };
|
||||||
type Thenable<T> = T | Promise<T>;
|
type Thenable<T$1> = T$1 | Promise<T$1>;
|
||||||
type FalsyPlugin = false | null | undefined;
|
type FalsyPlugin = false | null | undefined;
|
||||||
type PluginOption = Thenable<Plugin$1 | FalsyPlugin | PluginOption[]>;
|
type PluginOption = Thenable<Plugin | FalsyPlugin | PluginOption[]>;
|
||||||
/**
|
/**
|
||||||
* @experimental
|
* @experimental
|
||||||
*/
|
*/
|
||||||
declare function perEnvironmentPlugin(name: string, applyToEnvironment: (environment: PartialEnvironment) => boolean | Promise<boolean> | PluginOption): Plugin$1;
|
declare function perEnvironmentPlugin(name: string, applyToEnvironment: (environment: PartialEnvironment) => boolean | Promise<boolean> | PluginOption): Plugin;
|
||||||
//#endregion
|
//#endregion
|
||||||
//#region src/node/plugins/css.d.ts
|
//#region src/node/plugins/css.d.ts
|
||||||
interface CSSOptions {
|
interface CSSOptions {
|
||||||
|
|
@ -2865,7 +2902,7 @@ interface CSSOptions {
|
||||||
* @default 'postcss'
|
* @default 'postcss'
|
||||||
* @experimental
|
* @experimental
|
||||||
*/
|
*/
|
||||||
transformer?: 'postcss' | 'lightningcss';
|
transformer?: "postcss" | "lightningcss";
|
||||||
/**
|
/**
|
||||||
* https://github.com/css-modules/postcss-modules
|
* https://github.com/css-modules/postcss-modules
|
||||||
*/
|
*/
|
||||||
|
|
@ -2906,7 +2943,7 @@ interface CSSOptions {
|
||||||
}
|
}
|
||||||
interface CSSModulesOptions {
|
interface CSSModulesOptions {
|
||||||
getJSON?: (cssFileName: string, json: Record<string, string>, outputFileName: string) => void;
|
getJSON?: (cssFileName: string, json: Record<string, string>, outputFileName: string) => void;
|
||||||
scopeBehaviour?: 'global' | 'local';
|
scopeBehaviour?: "global" | "local";
|
||||||
globalModulePaths?: RegExp[];
|
globalModulePaths?: RegExp[];
|
||||||
exportGlobals?: boolean;
|
exportGlobals?: boolean;
|
||||||
generateScopedName?: string | ((name: string, filename: string, css: string) => string);
|
generateScopedName?: string | ((name: string, filename: string, css: string) => string);
|
||||||
|
|
@ -2914,9 +2951,9 @@ interface CSSModulesOptions {
|
||||||
/**
|
/**
|
||||||
* default: undefined
|
* default: undefined
|
||||||
*/
|
*/
|
||||||
localsConvention?: 'camelCase' | 'camelCaseOnly' | 'dashes' | 'dashesOnly' | ((originalClassName: string, generatedClassName: string, inputFile: string) => string);
|
localsConvention?: "camelCase" | "camelCaseOnly" | "dashes" | "dashesOnly" | ((originalClassName: string, generatedClassName: string, inputFile: string) => string);
|
||||||
}
|
}
|
||||||
type ResolvedCSSOptions = Omit<CSSOptions, 'lightningcss'> & Required<Pick<CSSOptions, 'transformer' | 'devSourcemap'>> & {
|
type ResolvedCSSOptions = Omit<CSSOptions, "lightningcss"> & Required<Pick<CSSOptions, "transformer" | "devSourcemap">> & {
|
||||||
lightningcss?: lightningcssOptions_LightningCSSOptions;
|
lightningcss?: lightningcssOptions_LightningCSSOptions;
|
||||||
};
|
};
|
||||||
interface PreprocessCSSResult {
|
interface PreprocessCSSResult {
|
||||||
|
|
@ -2955,7 +2992,7 @@ interface ESBuildOptions extends esbuild_TransformOptions {
|
||||||
*/
|
*/
|
||||||
minify?: never;
|
minify?: never;
|
||||||
}
|
}
|
||||||
type ESBuildTransformResult = Omit<esbuild_TransformResult, 'map'> & {
|
type ESBuildTransformResult = Omit<esbuild_TransformResult, "map"> & {
|
||||||
map: SourceMap;
|
map: SourceMap;
|
||||||
};
|
};
|
||||||
declare function transformWithEsbuild(code: string, filename: string, options?: esbuild_TransformOptions, inMap?: object, config?: ResolvedConfig, watcher?: FSWatcher): Promise<ESBuildTransformResult>;
|
declare function transformWithEsbuild(code: string, filename: string, options?: esbuild_TransformOptions, inMap?: object, config?: ResolvedConfig, watcher?: FSWatcher): Promise<ESBuildTransformResult>;
|
||||||
|
|
@ -2973,11 +3010,11 @@ interface JsonOptions {
|
||||||
* When set to 'auto', the data will be stringified only if the data is bigger than 10kB.
|
* When set to 'auto', the data will be stringified only if the data is bigger than 10kB.
|
||||||
* @default 'auto'
|
* @default 'auto'
|
||||||
*/
|
*/
|
||||||
stringify?: boolean | 'auto';
|
stringify?: boolean | "auto";
|
||||||
}
|
}
|
||||||
//#endregion
|
//#endregion
|
||||||
//#region src/node/ssr/index.d.ts
|
//#region src/node/ssr/index.d.ts
|
||||||
type SSRTarget = 'node' | 'webworker';
|
type SSRTarget = "node" | "webworker";
|
||||||
type SsrDepOptimizationConfig = DepOptimizationConfig;
|
type SsrDepOptimizationConfig = DepOptimizationConfig;
|
||||||
interface SSROptions {
|
interface SSROptions {
|
||||||
noExternal?: string | RegExp | (string | RegExp)[] | true;
|
noExternal?: string | RegExp | (string | RegExp)[] | true;
|
||||||
|
|
@ -3027,7 +3064,7 @@ interface ConfigEnv {
|
||||||
* 'serve': during dev (`vite` command)
|
* 'serve': during dev (`vite` command)
|
||||||
* 'build': when building for production (`vite build` command)
|
* 'build': when building for production (`vite build` command)
|
||||||
*/
|
*/
|
||||||
command: 'build' | 'serve';
|
command: "build" | "serve";
|
||||||
mode: string;
|
mode: string;
|
||||||
isSsrBuild?: boolean;
|
isSsrBuild?: boolean;
|
||||||
isPreview?: boolean;
|
isPreview?: boolean;
|
||||||
|
|
@ -3039,7 +3076,7 @@ interface ConfigEnv {
|
||||||
*
|
*
|
||||||
* custom: don't include HTML middlewares
|
* custom: don't include HTML middlewares
|
||||||
*/
|
*/
|
||||||
type AppType = 'spa' | 'mpa' | 'custom';
|
type AppType = "spa" | "mpa" | "custom";
|
||||||
type UserConfigFnObject = (env: ConfigEnv) => UserConfig;
|
type UserConfigFnObject = (env: ConfigEnv) => UserConfig;
|
||||||
type UserConfigFnPromise = (env: ConfigEnv) => Promise<UserConfig>;
|
type UserConfigFnPromise = (env: ConfigEnv) => Promise<UserConfig>;
|
||||||
type UserConfigFn = (env: ConfigEnv) => UserConfig | Promise<UserConfig>;
|
type UserConfigFn = (env: ConfigEnv) => UserConfig | Promise<UserConfig>;
|
||||||
|
|
@ -3104,8 +3141,8 @@ interface DevEnvironmentOptions {
|
||||||
*/
|
*/
|
||||||
moduleRunnerTransform?: boolean;
|
moduleRunnerTransform?: boolean;
|
||||||
}
|
}
|
||||||
type ResolvedDevEnvironmentOptions = Omit<Required<DevEnvironmentOptions>, 'sourcemapIgnoreList'> & {
|
type ResolvedDevEnvironmentOptions = Omit<Required<DevEnvironmentOptions>, "sourcemapIgnoreList"> & {
|
||||||
sourcemapIgnoreList: Exclude<DevEnvironmentOptions['sourcemapIgnoreList'], false | undefined>;
|
sourcemapIgnoreList: Exclude<DevEnvironmentOptions["sourcemapIgnoreList"], false | undefined>;
|
||||||
};
|
};
|
||||||
type AllResolveOptions = ResolveOptions & {
|
type AllResolveOptions = ResolveOptions & {
|
||||||
alias?: AliasOptions;
|
alias?: AliasOptions;
|
||||||
|
|
@ -3124,7 +3161,7 @@ interface SharedEnvironmentOptions {
|
||||||
* Define if this environment is used for Server-Side Rendering
|
* Define if this environment is used for Server-Side Rendering
|
||||||
* @default 'server' if it isn't the client environment
|
* @default 'server' if it isn't the client environment
|
||||||
*/
|
*/
|
||||||
consumer?: 'client' | 'server';
|
consumer?: "client" | "server";
|
||||||
/**
|
/**
|
||||||
* If true, `process.env` referenced in code will be preserved as-is and evaluated in runtime.
|
* If true, `process.env` referenced in code will be preserved as-is and evaluated in runtime.
|
||||||
* Otherwise, it is statically replaced as an empty object.
|
* Otherwise, it is statically replaced as an empty object.
|
||||||
|
|
@ -3149,14 +3186,14 @@ type ResolvedResolveOptions = Required<ResolveOptions>;
|
||||||
type ResolvedEnvironmentOptions = {
|
type ResolvedEnvironmentOptions = {
|
||||||
define?: Record<string, any>;
|
define?: Record<string, any>;
|
||||||
resolve: ResolvedResolveOptions;
|
resolve: ResolvedResolveOptions;
|
||||||
consumer: 'client' | 'server';
|
consumer: "client" | "server";
|
||||||
keepProcessEnv?: boolean;
|
keepProcessEnv?: boolean;
|
||||||
optimizeDeps: DepOptimizationOptions;
|
optimizeDeps: DepOptimizationOptions;
|
||||||
dev: ResolvedDevEnvironmentOptions;
|
dev: ResolvedDevEnvironmentOptions;
|
||||||
build: ResolvedBuildEnvironmentOptions;
|
build: ResolvedBuildEnvironmentOptions;
|
||||||
plugins: readonly Plugin$1[];
|
plugins: readonly Plugin[];
|
||||||
};
|
};
|
||||||
type DefaultEnvironmentOptions = Omit<EnvironmentOptions, 'consumer' | 'resolve' | 'keepProcessEnv'> & {
|
type DefaultEnvironmentOptions = Omit<EnvironmentOptions, "consumer" | "resolve" | "keepProcessEnv"> & {
|
||||||
resolve?: AllResolveOptions;
|
resolve?: AllResolveOptions;
|
||||||
};
|
};
|
||||||
interface UserConfig extends DefaultEnvironmentOptions {
|
interface UserConfig extends DefaultEnvironmentOptions {
|
||||||
|
|
@ -3244,7 +3281,7 @@ interface UserConfig extends DefaultEnvironmentOptions {
|
||||||
/**
|
/**
|
||||||
* Options to opt-in to future behavior
|
* Options to opt-in to future behavior
|
||||||
*/
|
*/
|
||||||
future?: FutureOptions | 'warn';
|
future?: FutureOptions | "warn";
|
||||||
/**
|
/**
|
||||||
* Legacy options
|
* Legacy options
|
||||||
*
|
*
|
||||||
|
|
@ -3284,7 +3321,7 @@ interface UserConfig extends DefaultEnvironmentOptions {
|
||||||
* Output format for worker bundle
|
* Output format for worker bundle
|
||||||
* @default 'iife'
|
* @default 'iife'
|
||||||
*/
|
*/
|
||||||
format?: 'es' | 'iife';
|
format?: "es" | "iife";
|
||||||
/**
|
/**
|
||||||
* Vite plugins that apply to worker bundle. The plugins returned by this function
|
* Vite plugins that apply to worker bundle. The plugins returned by this function
|
||||||
* should be new instances every time it is called, because they are used for each
|
* should be new instances every time it is called, because they are used for each
|
||||||
|
|
@ -3294,7 +3331,7 @@ interface UserConfig extends DefaultEnvironmentOptions {
|
||||||
/**
|
/**
|
||||||
* Rollup options to build worker bundle
|
* Rollup options to build worker bundle
|
||||||
*/
|
*/
|
||||||
rollupOptions?: Omit<RollupOptions, 'plugins' | 'input' | 'onwarn' | 'preserveEntrySignatures'>;
|
rollupOptions?: Omit<RollupOptions, "plugins" | "input" | "onwarn" | "preserveEntrySignatures">;
|
||||||
};
|
};
|
||||||
/**
|
/**
|
||||||
* Dep optimization options
|
* Dep optimization options
|
||||||
|
|
@ -3327,15 +3364,15 @@ interface HTMLOptions {
|
||||||
cspNonce?: string;
|
cspNonce?: string;
|
||||||
}
|
}
|
||||||
interface FutureOptions {
|
interface FutureOptions {
|
||||||
removePluginHookHandleHotUpdate?: 'warn';
|
removePluginHookHandleHotUpdate?: "warn";
|
||||||
removePluginHookSsrArgument?: 'warn';
|
removePluginHookSsrArgument?: "warn";
|
||||||
removeServerModuleGraph?: 'warn';
|
removeServerModuleGraph?: "warn";
|
||||||
removeServerReloadModule?: 'warn';
|
removeServerReloadModule?: "warn";
|
||||||
removeServerPluginContainer?: 'warn';
|
removeServerPluginContainer?: "warn";
|
||||||
removeServerHot?: 'warn';
|
removeServerHot?: "warn";
|
||||||
removeServerTransformRequest?: 'warn';
|
removeServerTransformRequest?: "warn";
|
||||||
removeServerWarmupRequest?: 'warn';
|
removeServerWarmupRequest?: "warn";
|
||||||
removeSsrLoadModule?: 'warn';
|
removeSsrLoadModule?: "warn";
|
||||||
}
|
}
|
||||||
interface ExperimentalOptions {
|
interface ExperimentalOptions {
|
||||||
/**
|
/**
|
||||||
|
|
@ -3374,19 +3411,19 @@ interface LegacyOptions {
|
||||||
skipWebSocketTokenCheck?: boolean;
|
skipWebSocketTokenCheck?: boolean;
|
||||||
}
|
}
|
||||||
interface ResolvedWorkerOptions {
|
interface ResolvedWorkerOptions {
|
||||||
format: 'es' | 'iife';
|
format: "es" | "iife";
|
||||||
plugins: (bundleChain: string[]) => Promise<ResolvedConfig>;
|
plugins: (bundleChain: string[]) => Promise<ResolvedConfig>;
|
||||||
rollupOptions: RollupOptions;
|
rollupOptions: RollupOptions;
|
||||||
}
|
}
|
||||||
interface InlineConfig extends UserConfig {
|
interface InlineConfig extends UserConfig {
|
||||||
configFile?: string | false;
|
configFile?: string | false;
|
||||||
/** @experimental */
|
/** @experimental */
|
||||||
configLoader?: 'bundle' | 'runner' | 'native';
|
configLoader?: "bundle" | "runner" | "native";
|
||||||
/** @deprecated */
|
/** @deprecated */
|
||||||
envFile?: false;
|
envFile?: false;
|
||||||
forceOptimizeDeps?: boolean;
|
forceOptimizeDeps?: boolean;
|
||||||
}
|
}
|
||||||
interface ResolvedConfig extends Readonly<Omit<UserConfig, 'plugins' | 'css' | 'json' | 'assetsInclude' | 'optimizeDeps' | 'worker' | 'build' | 'dev' | 'environments' | 'experimental' | 'future' | 'server' | 'preview'> & {
|
interface ResolvedConfig extends Readonly<Omit<UserConfig, "plugins" | "css" | "json" | "assetsInclude" | "optimizeDeps" | "worker" | "build" | "dev" | "environments" | "experimental" | "future" | "server" | "preview"> & {
|
||||||
configFile: string | undefined;
|
configFile: string | undefined;
|
||||||
configFileDependencies: string[];
|
configFileDependencies: string[];
|
||||||
inlineConfig: InlineConfig;
|
inlineConfig: InlineConfig;
|
||||||
|
|
@ -3394,7 +3431,7 @@ interface ResolvedConfig extends Readonly<Omit<UserConfig, 'plugins' | 'css' | '
|
||||||
base: string;
|
base: string;
|
||||||
publicDir: string;
|
publicDir: string;
|
||||||
cacheDir: string;
|
cacheDir: string;
|
||||||
command: 'build' | 'serve';
|
command: "build" | "serve";
|
||||||
mode: string;
|
mode: string;
|
||||||
isWorker: boolean;
|
isWorker: boolean;
|
||||||
isProduction: boolean;
|
isProduction: boolean;
|
||||||
|
|
@ -3403,7 +3440,7 @@ interface ResolvedConfig extends Readonly<Omit<UserConfig, 'plugins' | 'css' | '
|
||||||
resolve: Required<ResolveOptions> & {
|
resolve: Required<ResolveOptions> & {
|
||||||
alias: Alias[];
|
alias: Alias[];
|
||||||
};
|
};
|
||||||
plugins: readonly Plugin$1[];
|
plugins: readonly Plugin[];
|
||||||
css: ResolvedCSSOptions;
|
css: ResolvedCSSOptions;
|
||||||
json: Required<JsonOptions>;
|
json: Required<JsonOptions>;
|
||||||
esbuild: ESBuildOptions | false;
|
esbuild: ESBuildOptions | false;
|
||||||
|
|
@ -3430,7 +3467,7 @@ interface ResolvedConfig extends Readonly<Omit<UserConfig, 'plugins' | 'css' | '
|
||||||
optimizeDeps: DepOptimizationOptions;
|
optimizeDeps: DepOptimizationOptions;
|
||||||
worker: ResolvedWorkerOptions;
|
worker: ResolvedWorkerOptions;
|
||||||
appType: AppType;
|
appType: AppType;
|
||||||
experimental: RequiredExceptFor<ExperimentalOptions, 'renderBuiltUrl'>;
|
experimental: RequiredExceptFor<ExperimentalOptions, "renderBuiltUrl">;
|
||||||
future: FutureOptions | undefined;
|
future: FutureOptions | undefined;
|
||||||
environments: Record<string, ResolvedEnvironmentOptions>;
|
environments: Record<string, ResolvedEnvironmentOptions>;
|
||||||
/**
|
/**
|
||||||
|
|
@ -3446,13 +3483,13 @@ interface ResolvedConfig extends Readonly<Omit<UserConfig, 'plugins' | 'css' | '
|
||||||
webSocketToken: string;
|
webSocketToken: string;
|
||||||
} & PluginHookUtils> {}
|
} & PluginHookUtils> {}
|
||||||
interface PluginHookUtils {
|
interface PluginHookUtils {
|
||||||
getSortedPlugins: <K extends keyof Plugin$1>(hookName: K) => PluginWithRequiredHook<K>[];
|
getSortedPlugins: <K$1 extends keyof Plugin>(hookName: K$1) => PluginWithRequiredHook<K$1>[];
|
||||||
getSortedPluginHooks: <K extends keyof Plugin$1>(hookName: K) => NonNullable<HookHandler<Plugin$1[K]>>[];
|
getSortedPluginHooks: <K$1 extends keyof Plugin>(hookName: K$1) => NonNullable<HookHandler<Plugin[K$1]>>[];
|
||||||
}
|
}
|
||||||
type ResolveFn = (id: string, importer?: string, aliasOnly?: boolean, ssr?: boolean) => Promise<string | undefined>;
|
type ResolveFn = (id: string, importer?: string, aliasOnly?: boolean, ssr?: boolean) => Promise<string | undefined>;
|
||||||
declare function resolveConfig(inlineConfig: InlineConfig, command: 'build' | 'serve', defaultMode?: string, defaultNodeEnv?: string, isPreview?: boolean, ): Promise<ResolvedConfig>;
|
declare function resolveConfig(inlineConfig: InlineConfig, command: "build" | "serve", defaultMode?: string, defaultNodeEnv?: string, isPreview?: boolean, patchConfig?: ((config: ResolvedConfig) => void) | undefined, patchPlugins?: ((resolvedPlugins: Plugin[]) => void) | undefined): Promise<ResolvedConfig>;
|
||||||
declare function sortUserPlugins(plugins: (Plugin$1 | Plugin$1[])[] | undefined): [Plugin$1[], Plugin$1[], Plugin$1[]];
|
declare function sortUserPlugins(plugins: (Plugin | Plugin[])[] | undefined): [Plugin[], Plugin[], Plugin[]];
|
||||||
declare function loadConfigFromFile(configEnv: ConfigEnv, configFile?: string, configRoot?: string, logLevel?: LogLevel, customLogger?: Logger, configLoader?: 'bundle' | 'runner' | 'native'): Promise<{
|
declare function loadConfigFromFile(configEnv: ConfigEnv, configFile?: string, configRoot?: string, logLevel?: LogLevel, customLogger?: Logger, configLoader?: "bundle" | "runner" | "native"): Promise<{
|
||||||
path: string;
|
path: string;
|
||||||
config: UserConfig;
|
config: UserConfig;
|
||||||
dependencies: string[];
|
dependencies: string[];
|
||||||
|
|
@ -3473,12 +3510,12 @@ declare function buildErrorMessage(err: RollupError, args?: string[], includeSta
|
||||||
/**
|
/**
|
||||||
* @experimental
|
* @experimental
|
||||||
*/
|
*/
|
||||||
interface ServerModuleRunnerOptions extends Omit<ModuleRunnerOptions, 'root' | 'fetchModule' | 'hmr' | 'transport'> {
|
interface ServerModuleRunnerOptions extends Omit<ModuleRunnerOptions, "root" | "fetchModule" | "hmr" | "transport"> {
|
||||||
/**
|
/**
|
||||||
* Disable HMR or configure HMR logger.
|
* Disable HMR or configure HMR logger.
|
||||||
*/
|
*/
|
||||||
hmr?: false | {
|
hmr?: false | {
|
||||||
logger?: ModuleRunnerHmr['logger'];
|
logger?: ModuleRunnerHmr["logger"];
|
||||||
};
|
};
|
||||||
/**
|
/**
|
||||||
* Provide a custom module evaluator. This controls how the code is executed.
|
* Provide a custom module evaluator. This controls how the code is executed.
|
||||||
|
|
@ -3496,7 +3533,7 @@ declare function createServerModuleRunner(environment: DevEnvironment, options?:
|
||||||
//#endregion
|
//#endregion
|
||||||
//#region src/node/server/environments/runnableEnvironment.d.ts
|
//#region src/node/server/environments/runnableEnvironment.d.ts
|
||||||
declare function createRunnableDevEnvironment(name: string, config: ResolvedConfig, context?: RunnableDevEnvironmentContext): RunnableDevEnvironment;
|
declare function createRunnableDevEnvironment(name: string, config: ResolvedConfig, context?: RunnableDevEnvironmentContext): RunnableDevEnvironment;
|
||||||
interface RunnableDevEnvironmentContext extends Omit<DevEnvironmentContext, 'hot'> {
|
interface RunnableDevEnvironmentContext extends Omit<DevEnvironmentContext, "hot"> {
|
||||||
runner?: (environment: RunnableDevEnvironment, options?: ServerModuleRunnerOptions) => ModuleRunner;
|
runner?: (environment: RunnableDevEnvironment, options?: ServerModuleRunnerOptions) => ModuleRunner;
|
||||||
runnerOptions?: ServerModuleRunnerOptions;
|
runnerOptions?: ServerModuleRunnerOptions;
|
||||||
hot?: boolean;
|
hot?: boolean;
|
||||||
|
|
@ -3524,15 +3561,15 @@ declare class FetchableDevEnvironment extends DevEnvironment {
|
||||||
}
|
}
|
||||||
//#endregion
|
//#endregion
|
||||||
//#region src/node/ssr/runnerImport.d.ts
|
//#region src/node/ssr/runnerImport.d.ts
|
||||||
interface RunnerImportResult<T> {
|
interface RunnerImportResult<T$1> {
|
||||||
module: T;
|
module: T$1;
|
||||||
dependencies: string[];
|
dependencies: string[];
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* Import any file using the default Vite environment.
|
* Import any file using the default Vite environment.
|
||||||
* @experimental
|
* @experimental
|
||||||
*/
|
*/
|
||||||
declare function runnerImport<T>(moduleId: string, inlineConfig?: InlineConfig): Promise<RunnerImportResult<T>>;
|
declare function runnerImport<T$1>(moduleId: string, inlineConfig?: InlineConfig): Promise<RunnerImportResult<T$1>>;
|
||||||
//#endregion
|
//#endregion
|
||||||
//#region src/node/ssr/fetchModule.d.ts
|
//#region src/node/ssr/fetchModule.d.ts
|
||||||
interface FetchModuleOptions {
|
interface FetchModuleOptions {
|
||||||
|
|
@ -3553,7 +3590,7 @@ interface ModuleRunnerTransformOptions {
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
declare function ssrTransform(code: string, inMap: SourceMap | {
|
declare function ssrTransform(code: string, inMap: SourceMap | {
|
||||||
mappings: '';
|
mappings: "";
|
||||||
} | null, url: string, originalCode: string, options?: ModuleRunnerTransformOptions): Promise<TransformResult | null>;
|
} | null, url: string, originalCode: string, options?: ModuleRunnerTransformOptions): Promise<TransformResult | null>;
|
||||||
//#endregion
|
//#endregion
|
||||||
//#region src/node/constants.d.ts
|
//#region src/node/constants.d.ts
|
||||||
|
|
@ -3585,7 +3622,7 @@ interface SendOptions {
|
||||||
cacheControl?: string;
|
cacheControl?: string;
|
||||||
headers?: OutgoingHttpHeaders;
|
headers?: OutgoingHttpHeaders;
|
||||||
map?: SourceMap | {
|
map?: SourceMap | {
|
||||||
mappings: '';
|
mappings: "";
|
||||||
} | null;
|
} | null;
|
||||||
}
|
}
|
||||||
declare function send(req: http.IncomingMessage, res: ServerResponse, content: string | Buffer, type: string, options: SendOptions): void;
|
declare function send(req: http.IncomingMessage, res: ServerResponse, content: string | Buffer, type: string, options: SendOptions): void;
|
||||||
|
|
@ -3623,10 +3660,9 @@ interface ManifestChunk {
|
||||||
assets?: string[];
|
assets?: string[];
|
||||||
isEntry?: boolean;
|
isEntry?: boolean;
|
||||||
name?: string;
|
name?: string;
|
||||||
names?: string[];
|
|
||||||
isDynamicEntry?: boolean;
|
isDynamicEntry?: boolean;
|
||||||
imports?: string[];
|
imports?: string[];
|
||||||
dynamicImports?: string[];
|
dynamicImports?: string[];
|
||||||
}
|
}
|
||||||
//#endregion
|
//#endregion
|
||||||
export { type Alias, type AliasOptions, type AnymatchFn, type AnymatchPattern, type AppType, type BindCLIShortcutsOptions, type BuildAppHook, BuildEnvironment, type BuildEnvironmentOptions, type BuildOptions, type BuilderOptions, type CLIShortcut, type CSSModulesOptions, type CSSOptions, type ChunkMetadata, type CommonServerOptions, type ConfigEnv, type ConfigPluginContext, type Connect, type ConnectedPayload, type CorsOptions, type CorsOrigin, type CustomEventMap, type CustomPayload, type CustomPluginOptionsVite, type DepOptimizationConfig, type DepOptimizationMetadata, type DepOptimizationOptions, DevEnvironment, type DevEnvironmentContext, type DevEnvironmentOptions, type ESBuildOptions, type ESBuildTransformResult, type Environment, type EnvironmentModuleGraph, type EnvironmentModuleNode, type EnvironmentOptions, type ErrorPayload, type EsbuildTransformOptions, type ExperimentalOptions, type ExportsData, type FSWatcher, type FetchFunction, type FetchModuleOptions, type FetchResult, type FetchableDevEnvironment, type FetchableDevEnvironmentContext, type FileSystemServeOptions, type FilterPattern, type FullReloadPayload, type GeneralImportGlobOptions, type HMRPayload, type HTMLOptions, type HmrContext, type HmrOptions, type HookHandler, type HotChannel, type HotChannelClient, type HotChannelListener, type HotPayload, type HotUpdateOptions, type HtmlTagDescriptor, type index_d_exports as HttpProxy, type HttpServer, type ImportGlobFunction, type ImportGlobOptions, type IndexHtmlTransform, type IndexHtmlTransformContext, type IndexHtmlTransformHook, type IndexHtmlTransformResult, type InferCustomEventPayload, type InlineConfig, type InternalResolveOptions, type InvalidatePayload, type JsonOptions, type KnownAsTypeMap, type LegacyOptions, type LessPreprocessorOptions, type LibraryFormats, type LibraryOptions, type LightningCSSOptions, type LogErrorOptions, type LogLevel, type LogOptions, type LogType, type Logger, type LoggerOptions, type Manifest, type ManifestChunk, type MapToFunction, type AnymatchMatcher as Matcher, type MinimalPluginContextWithoutEnvironment, type ModuleGraph, type ModuleNode, type ModulePreloadOptions, type ModuleRunnerTransformOptions, type NormalizedHotChannel, type NormalizedHotChannelClient, type NormalizedServerHotChannel, type OptimizedDepInfo, type Plugin$1 as Plugin, type PluginContainer, type PluginHookUtils, type PluginOption, type PreprocessCSSResult, type PreviewOptions, type PreviewServer, type PreviewServerHook, type ProxyOptions, type PrunePayload, type RenderBuiltAssetUrl, type ResolveFn, type ResolveModulePreloadDependenciesFn, type ResolveOptions, type ResolvedBuildEnvironmentOptions, type ResolvedBuildOptions, type ResolvedCSSOptions, type ResolvedConfig, type ResolvedDevEnvironmentOptions, type ResolvedModulePreloadOptions, type ResolvedPreviewOptions, type ResolvedSSROptions, type ResolvedServerOptions, type ResolvedServerUrls, type ResolvedUrl, type ResolvedWorkerOptions, type ResolverFunction, type ResolverObject, type Rollup, type RollupCommonJSOptions, type RollupDynamicImportVarsOptions, type RunnableDevEnvironment, type RunnableDevEnvironmentContext, type SSROptions, type SSRTarget, type SassPreprocessorOptions, type SendOptions, type ServerHook, type ServerHotChannel, type ServerModuleRunnerOptions, type ServerOptions$1 as ServerOptions, type SkipInformation, type SsrDepOptimizationConfig, type StylusPreprocessorOptions, type Terser, type TerserOptions, type TransformOptions, type TransformResult, type Update, type UpdatePayload, type UserConfig, type UserConfigExport, type UserConfigFn, type UserConfigFnObject, type UserConfigFnPromise, type ViteBuilder, type ViteDevServer, type WatchOptions, type WebSocket, type WebSocketAlias, type WebSocketClient, type WebSocketCustomListener, type WebSocketServer, build, buildErrorMessage, createBuilder, createFetchableDevEnvironment, createFilter, createIdResolver, createLogger, createRunnableDevEnvironment, createServer, createServerHotChannel, createServerModuleRunner, createServerModuleRunnerTransport, defaultAllowedOrigins, DEFAULT_CLIENT_CONDITIONS as defaultClientConditions, DEFAULT_CLIENT_MAIN_FIELDS as defaultClientMainFields, DEFAULT_EXTERNAL_CONDITIONS as defaultExternalConditions, DEFAULT_SERVER_CONDITIONS as defaultServerConditions, DEFAULT_SERVER_MAIN_FIELDS as defaultServerMainFields, defineConfig, esbuildVersion, fetchModule, formatPostcssSourceMap, isCSSRequest, isFetchableDevEnvironment, isFileLoadingAllowed, isFileServingAllowed, isRunnableDevEnvironment, loadConfigFromFile, loadEnv, mergeAlias, mergeConfig, ssrTransform as moduleRunnerTransform, normalizePath, optimizeDeps, parseAst, parseAstAsync, perEnvironmentPlugin, perEnvironmentState, preprocessCSS, preview, resolveConfig, resolveEnvPrefix, rollupVersion, runnerImport, searchForWorkspaceRoot, send, sortUserPlugins, transformWithEsbuild, VERSION as version };
|
export { type Alias, type AliasOptions, type AnymatchFn, type AnymatchPattern, type AppType, type BindCLIShortcutsOptions, type BuildAppHook, BuildEnvironment, type BuildEnvironmentOptions, type BuildOptions, type BuilderOptions, type CLIShortcut, type CSSModulesOptions, type CSSOptions, type ChunkMetadata, type CommonServerOptions, type ConfigEnv, type ConfigPluginContext, type Connect, type ConnectedPayload, type CorsOptions, type CorsOrigin, type CustomEventMap, type CustomPayload, type CustomPluginOptionsVite, type DepOptimizationConfig, type DepOptimizationMetadata, type DepOptimizationOptions, DevEnvironment, type DevEnvironmentContext, type DevEnvironmentOptions, type ESBuildOptions, type ESBuildTransformResult, type Environment, type EnvironmentModuleGraph, type EnvironmentModuleNode, type EnvironmentOptions, type ErrorPayload, type EsbuildTransformOptions, type ExperimentalOptions, type ExportsData, type FSWatcher, type FetchFunction, type FetchModuleOptions, type FetchResult, type FetchableDevEnvironment, type FetchableDevEnvironmentContext, type FileSystemServeOptions, type FilterPattern, type FullReloadPayload, type GeneralImportGlobOptions, type HMRPayload, type HTMLOptions, type HmrContext, type HmrOptions, type HookHandler, type HotChannel, type HotChannelClient, type HotChannelListener, type HotPayload, type HotUpdateOptions, type HtmlTagDescriptor, type index_d_exports as HttpProxy, type HttpServer, type ImportGlobFunction, type ImportGlobOptions, type IndexHtmlTransform, type IndexHtmlTransformContext, type IndexHtmlTransformHook, type IndexHtmlTransformResult, type InferCustomEventPayload, type InlineConfig, type InternalResolveOptions, type InvalidatePayload, type JsonOptions, type KnownAsTypeMap, type LegacyOptions, type LessPreprocessorOptions, type LibraryFormats, type LibraryOptions, type LightningCSSOptions, type LogErrorOptions, type LogLevel, type LogOptions, type LogType, type Logger, type LoggerOptions, type Manifest, type ManifestChunk, type MapToFunction, type AnymatchMatcher as Matcher, type MinimalPluginContextWithoutEnvironment, type ModuleGraph, type ModuleNode, type ModulePreloadOptions, type ModuleRunnerTransformOptions, type NormalizedHotChannel, type NormalizedHotChannelClient, type NormalizedServerHotChannel, type OptimizedDepInfo, type Plugin, type PluginContainer, type PluginHookUtils, type PluginOption, type PreprocessCSSResult, type PreviewOptions, type PreviewServer, type PreviewServerHook, type ProxyOptions, type PrunePayload, type RenderBuiltAssetUrl, type ResolveFn, type ResolveModulePreloadDependenciesFn, type ResolveOptions, type ResolvedBuildEnvironmentOptions, type ResolvedBuildOptions, type ResolvedCSSOptions, type ResolvedConfig, type ResolvedDevEnvironmentOptions, type ResolvedModulePreloadOptions, type ResolvedPreviewOptions, type ResolvedSSROptions, type ResolvedServerOptions, type ResolvedServerUrls, type ResolvedUrl, type ResolvedWorkerOptions, type ResolverFunction, type ResolverObject, type Rollup, type RollupCommonJSOptions, type RollupDynamicImportVarsOptions, type RunnableDevEnvironment, type RunnableDevEnvironmentContext, type SSROptions, type SSRTarget, type SassPreprocessorOptions, type SendOptions, type ServerHook, type ServerHotChannel, type ServerModuleRunnerOptions, type ServerOptions$1 as ServerOptions, type SkipInformation, type SsrDepOptimizationConfig, type StylusPreprocessorOptions, type Terser, type TerserOptions, type TransformOptions, type TransformResult, type Update, type UpdatePayload, type UserConfig, type UserConfigExport, type UserConfigFn, type UserConfigFnObject, type UserConfigFnPromise, type ViteBuilder, type ViteDevServer, type WatchOptions, type WebSocket, type WebSocketAlias, type WebSocketClient, type WebSocketCustomListener, type WebSocketServer, build, buildErrorMessage, createBuilder, createFetchableDevEnvironment, createFilter, createIdResolver, createLogger, createRunnableDevEnvironment, createServer, createServerHotChannel, createServerModuleRunner, createServerModuleRunnerTransport, defaultAllowedOrigins, DEFAULT_CLIENT_CONDITIONS as defaultClientConditions, DEFAULT_CLIENT_MAIN_FIELDS as defaultClientMainFields, DEFAULT_EXTERNAL_CONDITIONS as defaultExternalConditions, DEFAULT_SERVER_CONDITIONS as defaultServerConditions, DEFAULT_SERVER_MAIN_FIELDS as defaultServerMainFields, defineConfig, esbuildVersion, fetchModule, formatPostcssSourceMap, isCSSRequest, isFetchableDevEnvironment, isFileLoadingAllowed, isFileServingAllowed, isRunnableDevEnvironment, loadConfigFromFile, loadEnv, mergeAlias, mergeConfig, ssrTransform as moduleRunnerTransform, normalizePath, optimizeDeps, parseAst, parseAstAsync, perEnvironmentPlugin, perEnvironmentState, preprocessCSS, preview, resolveConfig, resolveEnvPrefix, rollupVersion, runnerImport, searchForWorkspaceRoot, send, sortUserPlugins, transformWithEsbuild, VERSION as version };
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
import { DEFAULT_CLIENT_CONDITIONS, DEFAULT_CLIENT_MAIN_FIELDS, DEFAULT_EXTERNAL_CONDITIONS, DEFAULT_SERVER_CONDITIONS, DEFAULT_SERVER_MAIN_FIELDS, VERSION, createLogger, defaultAllowedOrigins } from "./chunks/logger.js";
|
import { F as defaultAllowedOrigins, N as VERSION, _ as DEFAULT_SERVER_CONDITIONS, d as DEFAULT_CLIENT_MAIN_FIELDS, h as DEFAULT_EXTERNAL_CONDITIONS, n as createLogger, u as DEFAULT_CLIENT_CONDITIONS, v as DEFAULT_SERVER_MAIN_FIELDS } from "./chunks/logger.js";
|
||||||
import { BuildEnvironment, DevEnvironment, build, buildErrorMessage, createBuilder, createFilter, createIdResolver, createRunnableDevEnvironment, createServer, createServerHotChannel, createServerModuleRunner, createServerModuleRunnerTransport, defineConfig, fetchModule, formatPostcssSourceMap, isCSSRequest, isFileLoadingAllowed, isFileServingAllowed, isRunnableDevEnvironment, loadConfigFromFile, loadEnv, mergeAlias, mergeConfig, normalizePath, optimizeDeps, perEnvironmentPlugin, perEnvironmentState, preprocessCSS, preview, resolveConfig, resolveEnvPrefix, rollupVersion, runnerImport, searchForWorkspaceRoot, send, sortUserPlugins, ssrTransform, transformWithEsbuild } from "./chunks/config.js";
|
import { Ct as perEnvironmentPlugin, Dt as mergeConfig, Et as mergeAlias, J as optimizeDeps, Ot as normalizePath, St as perEnvironmentState, Tt as isCSSRequest, _ as build, _t as createServerModuleRunnerTransport, b as createBuilder, bt as resolveEnvPrefix, c as sortUserPlugins, dt as searchForWorkspaceRoot, f as createRunnableDevEnvironment, ft as isFileLoadingAllowed, g as BuildEnvironment, gt as createServerModuleRunner, h as fetchModule, ht as ssrTransform, i as loadConfigFromFile, it as createServerHotChannel, kt as rollupVersion, l as runnerImport, m as DevEnvironment, mt as send, nt as preprocessCSS, o as resolveConfig, ot as createServer, p as isRunnableDevEnvironment, pt as isFileServingAllowed, rt as createIdResolver, t as defineConfig, tt as formatPostcssSourceMap, u as preview, vt as buildErrorMessage, wt as createFilter, xt as transformWithEsbuild, yt as loadEnv } from "./chunks/config.js";
|
||||||
import { parseAst, parseAstAsync } from "rollup/parseAst";
|
import { parseAst, parseAstAsync } from "rollup/parseAst";
|
||||||
import { version as esbuildVersion } from "esbuild";
|
import { version as esbuildVersion } from "esbuild";
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
import { ExternalFetchResult, FetchFunctionOptions, FetchResult, ModuleRunnerTransport, ModuleRunnerTransportHandlers, NormalizedModuleRunnerTransport, ViteFetchResult, createWebSocketModuleRunnerTransport } from "./chunks/moduleRunnerTransport.js";
|
import { a as ExternalFetchResult, c as ViteFetchResult, i as createWebSocketModuleRunnerTransport, n as ModuleRunnerTransportHandlers, o as FetchFunctionOptions, r as NormalizedModuleRunnerTransport, s as FetchResult, t as ModuleRunnerTransport } from "./chunks/moduleRunnerTransport.js";
|
||||||
import { ModuleNamespace, ViteHotContext } from "#types/hot";
|
import { ModuleNamespace, ViteHotContext } from "#types/hot";
|
||||||
import { HotPayload, Update } from "#types/hmrPayload";
|
import { HotPayload, Update } from "#types/hmrPayload";
|
||||||
import { InferCustomEventPayload } from "#types/customEvent";
|
import { InferCustomEventPayload } from "#types/customEvent";
|
||||||
|
|
@ -17,6 +17,7 @@ declare class DecodedMap {
|
||||||
_decoded: undefined | number[][][];
|
_decoded: undefined | number[][][];
|
||||||
_decodedMemo: Stats;
|
_decodedMemo: Stats;
|
||||||
url: string;
|
url: string;
|
||||||
|
file: string;
|
||||||
version: number;
|
version: number;
|
||||||
names: string[];
|
names: string[];
|
||||||
resolvedSources: string[];
|
resolvedSources: string[];
|
||||||
|
|
@ -108,6 +109,8 @@ declare class ModuleRunner {
|
||||||
private readonly transport;
|
private readonly transport;
|
||||||
private readonly resetSourceMapSupport?;
|
private readonly resetSourceMapSupport?;
|
||||||
private readonly concurrentModuleNodePromises;
|
private readonly concurrentModuleNodePromises;
|
||||||
|
private isBuiltin?;
|
||||||
|
private builtinsPromise?;
|
||||||
private closed;
|
private closed;
|
||||||
constructor(options: ModuleRunnerOptions, evaluator?: ModuleEvaluator, debug?: ModuleRunnerDebugger | undefined);
|
constructor(options: ModuleRunnerOptions, evaluator?: ModuleEvaluator, debug?: ModuleRunnerDebugger | undefined);
|
||||||
/**
|
/**
|
||||||
|
|
@ -132,6 +135,7 @@ declare class ModuleRunner {
|
||||||
private isCircularImport;
|
private isCircularImport;
|
||||||
private cachedRequest;
|
private cachedRequest;
|
||||||
private cachedModule;
|
private cachedModule;
|
||||||
|
private ensureBuiltins;
|
||||||
private getModuleInformation;
|
private getModuleInformation;
|
||||||
protected directRequest(url: string, mod: EvaluatedModuleNode, _callstack: string[]): Promise<any>;
|
protected directRequest(url: string, mod: EvaluatedModuleNode, _callstack: string[]): Promise<any>;
|
||||||
}
|
}
|
||||||
|
|
@ -205,7 +209,7 @@ interface ModuleRunnerOptions {
|
||||||
* Otherwise it will use `prepareStackTrace` by default which overrides `Error.prepareStackTrace` method.
|
* Otherwise it will use `prepareStackTrace` by default which overrides `Error.prepareStackTrace` method.
|
||||||
* You can provide an object to configure how file contents and source maps are resolved for files that were not processed by Vite.
|
* You can provide an object to configure how file contents and source maps are resolved for files that were not processed by Vite.
|
||||||
*/
|
*/
|
||||||
sourcemapInterceptor?: false | 'node' | 'prepareStackTrace' | InterceptorOptions;
|
sourcemapInterceptor?: false | "node" | "prepareStackTrace" | InterceptorOptions;
|
||||||
/**
|
/**
|
||||||
* Disable HMR or configure HMR options.
|
* Disable HMR or configure HMR options.
|
||||||
*
|
*
|
||||||
|
|
|
||||||
|
|
@ -216,13 +216,16 @@ var DecodedMap = class {
|
||||||
_decoded;
|
_decoded;
|
||||||
_decodedMemo;
|
_decodedMemo;
|
||||||
url;
|
url;
|
||||||
|
file;
|
||||||
version;
|
version;
|
||||||
names = [];
|
names = [];
|
||||||
resolvedSources;
|
resolvedSources;
|
||||||
constructor(map, from) {
|
constructor(map, from) {
|
||||||
this.map = map;
|
this.map = map;
|
||||||
let { mappings, names, sources } = map;
|
let { mappings, names, sources } = map;
|
||||||
this.version = map.version, this.names = names || [], this._encoded = mappings || "", this._decodedMemo = memoizedState(), this.url = from, this.resolvedSources = (sources || []).map((s) => posixResolve(s || "", from));
|
this.version = map.version, this.names = names || [], this._encoded = mappings || "", this._decodedMemo = memoizedState(), this.url = from, this.file = from;
|
||||||
|
let originDir = posixDirname(from);
|
||||||
|
this.resolvedSources = (sources || []).map((s) => posixResolve(originDir, s || ""));
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
function memoizedState() {
|
function memoizedState() {
|
||||||
|
|
@ -619,7 +622,12 @@ const createInvokeableTransport = (transport) => {
|
||||||
ws.send(JSON.stringify(data));
|
ws.send(JSON.stringify(data));
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}, ssrModuleExportsKey = "__vite_ssr_exports__", ssrImportKey = "__vite_ssr_import__", ssrDynamicImportKey = "__vite_ssr_dynamic_import__", ssrExportAllKey = "__vite_ssr_exportAll__", ssrExportNameKey = "__vite_ssr_exportName__", ssrImportMetaKey = "__vite_ssr_import_meta__", noop = () => {}, silentConsole = {
|
};
|
||||||
|
function createIsBuiltin(builtins) {
|
||||||
|
let plainBuiltinsSet = new Set(builtins.filter((builtin) => typeof builtin == "string")), regexBuiltins = builtins.filter((builtin) => typeof builtin != "string");
|
||||||
|
return (id) => plainBuiltinsSet.has(id) || regexBuiltins.some((regexp) => regexp.test(id));
|
||||||
|
}
|
||||||
|
const ssrModuleExportsKey = "__vite_ssr_exports__", ssrImportKey = "__vite_ssr_import__", ssrDynamicImportKey = "__vite_ssr_dynamic_import__", ssrExportAllKey = "__vite_ssr_exportAll__", ssrExportNameKey = "__vite_ssr_exportName__", ssrImportMetaKey = "__vite_ssr_import_meta__", noop = () => {}, silentConsole = {
|
||||||
debug: noop,
|
debug: noop,
|
||||||
error: noop
|
error: noop
|
||||||
}, hmrLogger = {
|
}, hmrLogger = {
|
||||||
|
|
@ -917,11 +925,17 @@ export async function resolve(specifier, context, nextResolve) {
|
||||||
specifier = parsedSpecifier
|
specifier = parsedSpecifier
|
||||||
context.parentURL = parsedImporter
|
context.parentURL = parsedImporter
|
||||||
}
|
}
|
||||||
|
|
||||||
return nextResolve(specifier, context)
|
return nextResolve(specifier, context)
|
||||||
}
|
}
|
||||||
|
|
||||||
`;
|
`;
|
||||||
|
function customizationHookResolve(specifier, context, nextResolve) {
|
||||||
|
if (specifier.startsWith(customizationHookNamespace)) {
|
||||||
|
let data = specifier.slice(42), [parsedSpecifier, parsedImporter] = JSON.parse(data);
|
||||||
|
specifier = parsedSpecifier, context.parentURL = parsedImporter;
|
||||||
|
}
|
||||||
|
return nextResolve(specifier, context);
|
||||||
|
}
|
||||||
async function createImportMetaResolver() {
|
async function createImportMetaResolver() {
|
||||||
let module;
|
let module;
|
||||||
try {
|
try {
|
||||||
|
|
@ -929,7 +943,9 @@ async function createImportMetaResolver() {
|
||||||
} catch {
|
} catch {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (module?.register) {
|
if (module) {
|
||||||
|
if (module.registerHooks) return module.registerHooks({ resolve: customizationHookResolve }), importMetaResolveWithCustomHook;
|
||||||
|
if (module.register) {
|
||||||
try {
|
try {
|
||||||
let hookModuleContent = `data:text/javascript,${encodeURI(customizationHooksModule)}`;
|
let hookModuleContent = `data:text/javascript,${encodeURI(customizationHooksModule)}`;
|
||||||
module.register(hookModuleContent);
|
module.register(hookModuleContent);
|
||||||
|
|
@ -937,9 +953,14 @@ async function createImportMetaResolver() {
|
||||||
if ("code" in e && e.code === "ERR_NETWORK_IMPORT_DISALLOWED") return;
|
if ("code" in e && e.code === "ERR_NETWORK_IMPORT_DISALLOWED") return;
|
||||||
throw e;
|
throw e;
|
||||||
}
|
}
|
||||||
return (specifier, importer) => import.meta.resolve(`${customizationHookNamespace}${JSON.stringify([specifier, importer])}`);
|
return importMetaResolveWithCustomHook;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
function importMetaResolveWithCustomHook(specifier, importer) {
|
||||||
|
return import.meta.resolve(`${customizationHookNamespace}${JSON.stringify([specifier, importer])}`);
|
||||||
|
}
|
||||||
|
`${customizationHookNamespace}`;
|
||||||
const envProxy = new Proxy({}, { get(_, p) {
|
const envProxy = new Proxy({}, { get(_, p) {
|
||||||
throw Error(`[module runner] Dynamic access of "import.meta.env" is not supported. Please, use "import.meta.env.${String(p)}" instead.`);
|
throw Error(`[module runner] Dynamic access of "import.meta.env" is not supported. Please, use "import.meta.env.${String(p)}" instead.`);
|
||||||
} });
|
} });
|
||||||
|
|
@ -977,6 +998,8 @@ var ModuleRunner = class {
|
||||||
transport;
|
transport;
|
||||||
resetSourceMapSupport;
|
resetSourceMapSupport;
|
||||||
concurrentModuleNodePromises = /* @__PURE__ */ new Map();
|
concurrentModuleNodePromises = /* @__PURE__ */ new Map();
|
||||||
|
isBuiltin;
|
||||||
|
builtinsPromise;
|
||||||
closed = !1;
|
closed = !1;
|
||||||
constructor(options, evaluator = new ESModulesEvaluator(), debug) {
|
constructor(options, evaluator = new ESModulesEvaluator(), debug) {
|
||||||
if (this.options = options, this.evaluator = evaluator, this.debug = debug, this.evaluatedModules = options.evaluatedModules ?? new EvaluatedModules(), this.transport = normalizeModuleRunnerTransport(options.transport), options.hmr !== !1) {
|
if (this.options = options, this.evaluator = evaluator, this.debug = debug, this.evaluatedModules = options.evaluatedModules ?? new EvaluatedModules(), this.transport = normalizeModuleRunnerTransport(options.transport), options.hmr !== !1) {
|
||||||
|
|
@ -1043,10 +1066,21 @@ var ModuleRunner = class {
|
||||||
}
|
}
|
||||||
return cached;
|
return cached;
|
||||||
}
|
}
|
||||||
|
ensureBuiltins() {
|
||||||
|
if (!this.isBuiltin) return this.builtinsPromise ??= (async () => {
|
||||||
|
try {
|
||||||
|
this.debug?.("[module runner] fetching builtins from server");
|
||||||
|
let builtins = (await this.transport.invoke("getBuiltins", [])).map((builtin) => typeof builtin == "object" && builtin && "type" in builtin ? builtin.type === "string" ? builtin.value : new RegExp(builtin.source, builtin.flags) : builtin);
|
||||||
|
this.isBuiltin = createIsBuiltin(builtins), this.debug?.("[module runner] builtins loaded:", builtins);
|
||||||
|
} finally {
|
||||||
|
this.builtinsPromise = void 0;
|
||||||
|
}
|
||||||
|
})(), this.builtinsPromise;
|
||||||
|
}
|
||||||
async getModuleInformation(url, importer, cachedModule) {
|
async getModuleInformation(url, importer, cachedModule) {
|
||||||
if (this.closed) throw Error("Vite module runner has been closed.");
|
if (this.closed) throw Error("Vite module runner has been closed.");
|
||||||
this.debug?.("[module runner] fetching", url);
|
await this.ensureBuiltins(), this.debug?.("[module runner] fetching", url);
|
||||||
let isCached = !!(typeof cachedModule == "object" && cachedModule.meta), fetchedModule = url.startsWith("data:") ? {
|
let isCached = !!(typeof cachedModule == "object" && cachedModule.meta), fetchedModule = url.startsWith("data:") || this.isBuiltin?.(url) ? {
|
||||||
externalize: url,
|
externalize: url,
|
||||||
type: "builtin"
|
type: "builtin"
|
||||||
} : await this.transport.invoke("fetchModule", [
|
} : await this.transport.invoke("fetchModule", [
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "vite",
|
"name": "vite",
|
||||||
"version": "7.1.12",
|
"version": "7.2.2",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"author": "Evan You",
|
"author": "Evan You",
|
||||||
|
|
@ -79,12 +79,12 @@
|
||||||
"fsevents": "~2.3.3"
|
"fsevents": "~2.3.3"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/parser": "^7.28.4",
|
"@babel/parser": "^7.28.5",
|
||||||
"@jridgewell/remapping": "^2.3.5",
|
"@jridgewell/remapping": "^2.3.5",
|
||||||
"@jridgewell/trace-mapping": "^0.3.31",
|
"@jridgewell/trace-mapping": "^0.3.31",
|
||||||
"@oxc-project/types": "0.90.0",
|
"@oxc-project/types": "0.95.0",
|
||||||
"@polka/compression": "^1.0.0-next.25",
|
"@polka/compression": "^1.0.0-next.25",
|
||||||
"@rolldown/pluginutils": "^1.0.0-beta.43",
|
"@rolldown/pluginutils": "^1.0.0-beta.44",
|
||||||
"@rollup/plugin-alias": "^5.1.1",
|
"@rollup/plugin-alias": "^5.1.1",
|
||||||
"@rollup/plugin-commonjs": "28.0.6",
|
"@rollup/plugin-commonjs": "28.0.6",
|
||||||
"@rollup/plugin-dynamic-import-vars": "2.1.4",
|
"@rollup/plugin-dynamic-import-vars": "2.1.4",
|
||||||
|
|
@ -92,7 +92,7 @@
|
||||||
"@types/escape-html": "^1.0.4",
|
"@types/escape-html": "^1.0.4",
|
||||||
"@types/pnpapi": "^0.0.5",
|
"@types/pnpapi": "^0.0.5",
|
||||||
"artichokie": "^0.4.2",
|
"artichokie": "^0.4.2",
|
||||||
"baseline-browser-mapping": "^2.8.18",
|
"baseline-browser-mapping": "^2.8.20",
|
||||||
"cac": "^6.7.14",
|
"cac": "^6.7.14",
|
||||||
"chokidar": "^3.6.0",
|
"chokidar": "^3.6.0",
|
||||||
"connect": "^3.7.0",
|
"connect": "^3.7.0",
|
||||||
|
|
@ -110,7 +110,7 @@
|
||||||
"http-proxy-3": "^1.22.0",
|
"http-proxy-3": "^1.22.0",
|
||||||
"launch-editor-middleware": "^2.11.1",
|
"launch-editor-middleware": "^2.11.1",
|
||||||
"lightningcss": "^1.30.2",
|
"lightningcss": "^1.30.2",
|
||||||
"magic-string": "^0.30.19",
|
"magic-string": "^0.30.21",
|
||||||
"mlly": "^1.8.0",
|
"mlly": "^1.8.0",
|
||||||
"mrmime": "^2.0.1",
|
"mrmime": "^2.0.1",
|
||||||
"nanoid": "^5.1.6",
|
"nanoid": "^5.1.6",
|
||||||
|
|
@ -124,8 +124,8 @@
|
||||||
"postcss-modules": "^6.0.1",
|
"postcss-modules": "^6.0.1",
|
||||||
"premove": "^4.0.0",
|
"premove": "^4.0.0",
|
||||||
"resolve.exports": "^2.0.3",
|
"resolve.exports": "^2.0.3",
|
||||||
"rolldown": "^1.0.0-beta.43",
|
"rolldown": "^1.0.0-beta.46",
|
||||||
"rolldown-plugin-dts": "^0.16.11",
|
"rolldown-plugin-dts": "^0.17.3",
|
||||||
"rollup-plugin-license": "^3.6.0",
|
"rollup-plugin-license": "^3.6.0",
|
||||||
"sass": "^1.93.2",
|
"sass": "^1.93.2",
|
||||||
"sass-embedded": "^1.93.2",
|
"sass-embedded": "^1.93.2",
|
||||||
|
|
@ -191,7 +191,7 @@
|
||||||
"build-types": "pnpm build-types-roll && pnpm build-types-check",
|
"build-types": "pnpm build-types-roll && pnpm build-types-check",
|
||||||
"build-types-roll": "rolldown --config rolldown.dts.config.ts",
|
"build-types-roll": "rolldown --config rolldown.dts.config.ts",
|
||||||
"build-types-check": "tsc --project tsconfig.check.json",
|
"build-types-check": "tsc --project tsconfig.check.json",
|
||||||
"typecheck": "tsc && tsc -p src/node",
|
"typecheck": "tsc && tsc -p src/node && tsc -p src/module-runner && tsc -p src/shared && tsc -p src/node/__tests_dts__",
|
||||||
"lint": "eslint --cache --ext .ts src/**",
|
"lint": "eslint --cache --ext .ts src/**",
|
||||||
"format": "prettier --write --cache --parser typescript \"src/**/*.ts\"",
|
"format": "prettier --write --cache --parser typescript \"src/**/*.ts\"",
|
||||||
"generate-target": "tsx scripts/generateTarget.ts"
|
"generate-target": "tsx scripts/generateTarget.ts"
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,7 @@ import type {
|
||||||
} from './hmrPayload'
|
} from './hmrPayload'
|
||||||
|
|
||||||
export interface CustomEventMap {
|
export interface CustomEventMap {
|
||||||
|
// client events
|
||||||
'vite:beforeUpdate': UpdatePayload
|
'vite:beforeUpdate': UpdatePayload
|
||||||
'vite:afterUpdate': UpdatePayload
|
'vite:afterUpdate': UpdatePayload
|
||||||
'vite:beforePrune': PrunePayload
|
'vite:beforePrune': PrunePayload
|
||||||
|
|
@ -14,6 +15,10 @@ export interface CustomEventMap {
|
||||||
'vite:invalidate': InvalidatePayload
|
'vite:invalidate': InvalidatePayload
|
||||||
'vite:ws:connect': WebSocketConnectionPayload
|
'vite:ws:connect': WebSocketConnectionPayload
|
||||||
'vite:ws:disconnect': WebSocketConnectionPayload
|
'vite:ws:disconnect': WebSocketConnectionPayload
|
||||||
|
|
||||||
|
// server events
|
||||||
|
'vite:client:connect': undefined
|
||||||
|
'vite:client:disconnect': undefined
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface WebSocketConnectionPayload {
|
export interface WebSocketConnectionPayload {
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@
|
||||||
"three": "^0.181.0"
|
"three": "^0.181.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"vite": "^7.1.12"
|
"vite": "^7.2.2"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@esbuild/aix-ppc64": {
|
"node_modules/@esbuild/aix-ppc64": {
|
||||||
|
|
@ -991,11 +991,10 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/vite": {
|
"node_modules/vite": {
|
||||||
"version": "7.1.12",
|
"version": "7.2.2",
|
||||||
"resolved": "https://registry.npmjs.org/vite/-/vite-7.1.12.tgz",
|
"resolved": "https://registry.npmjs.org/vite/-/vite-7.2.2.tgz",
|
||||||
"integrity": "sha512-ZWyE8YXEXqJrrSLvYgrRP7p62OziLW7xI5HYGWFzOvupfAlrLvURSzv/FyGyy0eidogEM3ujU+kUG1zuHgb6Ug==",
|
"integrity": "sha512-BxAKBWmIbrDgrokdGZH1IgkIk/5mMHDreLDmCJ0qpyJaAteP8NvMhkwr/ZCQNqNH97bw/dANTE9PDzqwJghfMQ==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "MIT",
|
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"esbuild": "^0.25.0",
|
"esbuild": "^0.25.0",
|
||||||
"fdir": "^6.5.0",
|
"fdir": "^6.5.0",
|
||||||
|
|
|
||||||
|
|
@ -14,6 +14,6 @@
|
||||||
"three": "^0.181.0"
|
"three": "^0.181.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"vite": "^7.1.12"
|
"vite": "^7.2.2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue