first commit
This commit is contained in:
+21
@@ -0,0 +1,21 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2018-present, Yuxi (Evan) You
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
||||
+58
@@ -0,0 +1,58 @@
|
||||
# vue
|
||||
|
||||
## Which dist file to use?
|
||||
|
||||
### From CDN or without a Bundler
|
||||
|
||||
- **`vue(.runtime).global(.prod).js`**:
|
||||
- For direct use via `<script src="...">` in the browser. Exposes the `Vue` global.
|
||||
- Note that global builds are not [UMD](https://github.com/umdjs/umd) builds. They are built as [IIFEs](https://developer.mozilla.org/en-US/docs/Glossary/IIFE) and are only meant for direct use via `<script src="...">`.
|
||||
- In-browser template compilation:
|
||||
- **`vue.global.js`** is the "full" build that includes both the compiler and the runtime so it supports compiling templates on the fly.
|
||||
- **`vue.runtime.global.js`** contains only the runtime and requires templates to be pre-compiled during a build step.
|
||||
- Inlines all Vue core internal packages - i.e. it's a single file with no dependencies on other files. This means you **must** import everything from this file and this file only to ensure you are getting the same instance of code.
|
||||
- Contains hard-coded prod/dev branches, and the prod build is pre-minified. Use the `*.prod.js` files for production.
|
||||
|
||||
- **`vue(.runtime).esm-browser(.prod).js`**:
|
||||
- For usage via native ES modules imports (in browser via `<script type="module">`).
|
||||
- Shares the same runtime compilation, dependency inlining and hard-coded prod/dev behavior with the global build.
|
||||
|
||||
### With a Bundler
|
||||
|
||||
- **`vue(.runtime).esm-bundler.js`**:
|
||||
- For use with bundlers like `rolldown`, `webpack`, `rollup` and `parcel`.
|
||||
- Leaves prod/dev branches with `process.env.NODE_ENV` guards (must be replaced by bundler)
|
||||
- Does not ship minified builds (to be done together with the rest of the code after bundling)
|
||||
- Imports dependencies (e.g. `@vue/runtime-core`, `@vue/compiler-core`)
|
||||
- Imported dependencies are also `esm-bundler` builds and will in turn import their dependencies (e.g. `@vue/runtime-core` imports `@vue/reactivity`)
|
||||
- This means you **can** install/import these deps individually without ending up with different instances of these dependencies, but you must make sure they all resolve to the same version.
|
||||
- In-browser template compilation:
|
||||
- **`vue.runtime.esm-bundler.js` (default)** is runtime only, and requires all templates to be pre-compiled. This is the default entry for bundlers (via `module` field in `package.json`) because when using a bundler templates are typically pre-compiled (e.g. in `*.vue` files).
|
||||
- **`vue.esm-bundler.js`**: includes the runtime compiler. Use this if you are using a bundler but still want runtime template compilation (e.g. in-DOM templates or templates via inline JavaScript strings). You will need to configure your bundler to alias `vue` to this file.
|
||||
|
||||
#### Bundler Build Feature Flags
|
||||
|
||||
[Detailed Reference on vuejs.org](https://vuejs.org/api/compile-time-flags.html)
|
||||
|
||||
`esm-bundler` builds of Vue expose global feature flags that can be overwritten at compile time:
|
||||
|
||||
- `__VUE_OPTIONS_API__`
|
||||
- Default: `true`
|
||||
- Enable / disable Options API support
|
||||
|
||||
- `__VUE_PROD_DEVTOOLS__`
|
||||
- Default: `false`
|
||||
- Enable / disable devtools support in production
|
||||
|
||||
- `__VUE_PROD_HYDRATION_MISMATCH_DETAILS__`
|
||||
- Default: `false`
|
||||
- Enable / disable detailed warnings for hydration mismatches in production
|
||||
|
||||
The build will work without configuring these flags, however it is **strongly recommended** to properly configure them in order to get proper tree-shaking in the final bundle.
|
||||
|
||||
### For Server-Side Rendering
|
||||
|
||||
- **`vue.cjs(.prod).js`**:
|
||||
- For use in Node.js server-side rendering via `require()`.
|
||||
- If you bundle your app with webpack with `target: 'node'` and properly externalize `vue`, this is the build that will be loaded.
|
||||
- The dev/prod files are pre-built, but the appropriate file is automatically required based on `process.env.NODE_ENV`.
|
||||
+1
@@ -0,0 +1 @@
|
||||
module.exports = require('@vue/compiler-sfc')
|
||||
+1
@@ -0,0 +1 @@
|
||||
export * from '@vue/compiler-sfc'
|
||||
+1
@@ -0,0 +1 @@
|
||||
export * from '@vue/compiler-sfc'
|
||||
+1
@@ -0,0 +1 @@
|
||||
export * from '@vue/compiler-sfc'
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
module.exports = require('@vue/compiler-sfc')
|
||||
|
||||
require('./register-ts.js')
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
export * from '@vue/compiler-sfc'
|
||||
|
||||
import './register-ts.js'
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"main": "index.js",
|
||||
"module": "index.mjs"
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
if (typeof require !== 'undefined') {
|
||||
require('@vue/compiler-sfc').registerTS(() => require('typescript'))
|
||||
}
|
||||
+81
@@ -0,0 +1,81 @@
|
||||
/**
|
||||
* vue v3.6.0-rc.10
|
||||
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||||
* @license MIT
|
||||
**/
|
||||
Object.defineProperties(exports, {
|
||||
__esModule: { value: true },
|
||||
[Symbol.toStringTag]: { value: "Module" }
|
||||
});
|
||||
//#region \0rolldown/runtime.js
|
||||
var __create = Object.create;
|
||||
var __defProp = Object.defineProperty;
|
||||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||
var __getProtoOf = Object.getPrototypeOf;
|
||||
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||
var __copyProps = (to, from, except, desc) => {
|
||||
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
||||
key = keys[i];
|
||||
if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
||||
get: ((k) => from[k]).bind(null, key),
|
||||
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
||||
});
|
||||
}
|
||||
return to;
|
||||
};
|
||||
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule || !__hasOwnProp.call(mod, "default") ? __defProp(target, "default", {
|
||||
value: mod,
|
||||
enumerable: true
|
||||
}) : target, mod));
|
||||
//#endregion
|
||||
let _vue_runtime_dom = require("@vue/runtime-dom");
|
||||
_vue_runtime_dom = __toESM(_vue_runtime_dom);
|
||||
let _vue_compiler_dom = require("@vue/compiler-dom");
|
||||
let _vue_shared = require("@vue/shared");
|
||||
//#region packages/vue/src/index.ts
|
||||
const compileCache = Object.create(null);
|
||||
function compileToFunction(template, options) {
|
||||
if (!(0, _vue_shared.isString)(template)) {
|
||||
if (template.nodeType) template = template.innerHTML;
|
||||
else {
|
||||
(0, _vue_runtime_dom.warn)(`invalid template option: `, template);
|
||||
return _vue_shared.NOOP;
|
||||
}
|
||||
}
|
||||
const key = (0, _vue_shared.genCacheKey)(template, options);
|
||||
const cached = compileCache[key];
|
||||
if (cached) return cached;
|
||||
if (template[0] === "#") {
|
||||
const el = document.querySelector(template);
|
||||
if (!el) (0, _vue_runtime_dom.warn)(`Template element not found or is empty: ${template}`);
|
||||
template = el ? el.innerHTML : ``;
|
||||
}
|
||||
const opts = (0, _vue_shared.extend)({
|
||||
hoistStatic: true,
|
||||
onError,
|
||||
onWarn: (e) => onError(e, true)
|
||||
}, options);
|
||||
if (!opts.isCustomElement && typeof customElements !== "undefined") opts.isCustomElement = (tag) => !!customElements.get(tag);
|
||||
const { code } = (0, _vue_compiler_dom.compile)(template, opts);
|
||||
function onError(err, asWarning = false) {
|
||||
const message = asWarning ? err.message : `Template compilation error: ${err.message}`;
|
||||
const codeFrame = err.loc && (0, _vue_shared.generateCodeFrame)(template, err.loc.start.offset, err.loc.end.offset);
|
||||
(0, _vue_runtime_dom.warn)(codeFrame ? `${message}\n${codeFrame}` : message);
|
||||
}
|
||||
const render = new Function("Vue", code)(_vue_runtime_dom);
|
||||
render._rc = true;
|
||||
return compileCache[key] = render;
|
||||
}
|
||||
(0, _vue_runtime_dom.registerRuntimeCompiler)(compileToFunction);
|
||||
//#endregion
|
||||
exports.compile = compileToFunction;
|
||||
exports.defineVaporAsyncComponent = _vue_runtime_dom.defineAsyncComponent;
|
||||
Object.keys(_vue_runtime_dom).forEach(function(k) {
|
||||
if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
||||
enumerable: true,
|
||||
get: function() {
|
||||
return _vue_runtime_dom[k];
|
||||
}
|
||||
});
|
||||
});
|
||||
+72
@@ -0,0 +1,72 @@
|
||||
/**
|
||||
* vue v3.6.0-rc.10
|
||||
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||||
* @license MIT
|
||||
**/
|
||||
Object.defineProperties(exports, {
|
||||
__esModule: { value: true },
|
||||
[Symbol.toStringTag]: { value: "Module" }
|
||||
});
|
||||
//#region \0rolldown/runtime.js
|
||||
var __create = Object.create;
|
||||
var __defProp = Object.defineProperty;
|
||||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||
var __getProtoOf = Object.getPrototypeOf;
|
||||
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||
var __copyProps = (to, from, except, desc) => {
|
||||
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
||||
key = keys[i];
|
||||
if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
||||
get: ((k) => from[k]).bind(null, key),
|
||||
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
||||
});
|
||||
}
|
||||
return to;
|
||||
};
|
||||
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule || !__hasOwnProp.call(mod, "default") ? __defProp(target, "default", {
|
||||
value: mod,
|
||||
enumerable: true
|
||||
}) : target, mod));
|
||||
//#endregion
|
||||
let _vue_runtime_dom = require("@vue/runtime-dom");
|
||||
_vue_runtime_dom = __toESM(_vue_runtime_dom);
|
||||
let _vue_compiler_dom = require("@vue/compiler-dom");
|
||||
let _vue_shared = require("@vue/shared");
|
||||
//#region packages/vue/src/index.ts
|
||||
const compileCache = Object.create(null);
|
||||
function compileToFunction(template, options) {
|
||||
if (!(0, _vue_shared.isString)(template)) {
|
||||
if (template.nodeType) template = template.innerHTML;
|
||||
else return _vue_shared.NOOP;
|
||||
}
|
||||
const key = (0, _vue_shared.genCacheKey)(template, options);
|
||||
const cached = compileCache[key];
|
||||
if (cached) return cached;
|
||||
if (template[0] === "#") {
|
||||
const el = document.querySelector(template);
|
||||
template = el ? el.innerHTML : ``;
|
||||
}
|
||||
const opts = (0, _vue_shared.extend)({
|
||||
hoistStatic: true,
|
||||
onError: void 0,
|
||||
onWarn: _vue_shared.NOOP
|
||||
}, options);
|
||||
if (!opts.isCustomElement && typeof customElements !== "undefined") opts.isCustomElement = (tag) => !!customElements.get(tag);
|
||||
const { code } = (0, _vue_compiler_dom.compile)(template, opts);
|
||||
const render = new Function("Vue", code)(_vue_runtime_dom);
|
||||
render._rc = true;
|
||||
return compileCache[key] = render;
|
||||
}
|
||||
(0, _vue_runtime_dom.registerRuntimeCompiler)(compileToFunction);
|
||||
//#endregion
|
||||
exports.compile = compileToFunction;
|
||||
exports.defineVaporAsyncComponent = _vue_runtime_dom.defineAsyncComponent;
|
||||
Object.keys(_vue_runtime_dom).forEach(function(k) {
|
||||
if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
||||
enumerable: true,
|
||||
get: function() {
|
||||
return _vue_runtime_dom[k];
|
||||
}
|
||||
});
|
||||
});
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
import { CompilerOptions } from "@vue/compiler-dom";
|
||||
import { RenderFunction, defineAsyncComponent as defineVaporAsyncComponent$1 } from "@vue/runtime-dom";
|
||||
import { VaporSlot, defineVaporAsyncComponent } from "@vue/runtime-vapor";
|
||||
export * from "@vue/runtime-dom";
|
||||
export * from "@vue/runtime-vapor";
|
||||
//#region temp/packages/vue/src/index.d.ts
|
||||
export declare function compileToFunction(template: string | HTMLElement, options?: CompilerOptions): RenderFunction;
|
||||
//#endregion
|
||||
export { type VaporSlot, compileToFunction as compile, defineVaporAsyncComponent };
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
import { CompilerOptions } from "@vue/compiler-dom";
|
||||
import { RenderFunction, defineAsyncComponent as defineVaporAsyncComponent$1 } from "@vue/runtime-dom";
|
||||
import { VaporSlot, defineVaporAsyncComponent } from "@vue/runtime-vapor";
|
||||
export * from "@vue/runtime-dom";
|
||||
export * from "@vue/runtime-vapor";
|
||||
//#region temp/packages/vue/src/index.d.ts
|
||||
export declare function compileToFunction(template: string | HTMLElement, options?: CompilerOptions): RenderFunction;
|
||||
//#endregion
|
||||
export { type VaporSlot, compileToFunction as compile, defineVaporAsyncComponent };
|
||||
+14782
File diff suppressed because it is too large
Load Diff
+12
File diff suppressed because one or more lines are too long
+55
@@ -0,0 +1,55 @@
|
||||
/**
|
||||
* vue v3.6.0-rc.10
|
||||
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||||
* @license MIT
|
||||
**/
|
||||
import * as runtimeDom from "@vue/runtime-dom";
|
||||
import { initCustomFormatter, registerRuntimeCompiler, warn } from "@vue/runtime-dom";
|
||||
import { compile } from "@vue/compiler-dom";
|
||||
import { NOOP, extend, genCacheKey, generateCodeFrame, isString } from "@vue/shared";
|
||||
import { defineVaporAsyncComponent } from "@vue/runtime-vapor";
|
||||
export * from "@vue/runtime-dom";
|
||||
export * from "@vue/runtime-vapor";
|
||||
//#region packages/vue/src/dev.ts
|
||||
function initDev() {
|
||||
initCustomFormatter();
|
||||
}
|
||||
//#endregion
|
||||
//#region packages/vue/src/index.ts
|
||||
if (!!(process.env.NODE_ENV !== "production")) initDev();
|
||||
const compileCache = Object.create(null);
|
||||
function compileToFunction(template, options) {
|
||||
if (!isString(template)) {
|
||||
if (template.nodeType) template = template.innerHTML;
|
||||
else {
|
||||
process.env.NODE_ENV !== "production" && warn(`invalid template option: `, template);
|
||||
return NOOP;
|
||||
}
|
||||
}
|
||||
const key = genCacheKey(template, options);
|
||||
const cached = compileCache[key];
|
||||
if (cached) return cached;
|
||||
if (template[0] === "#") {
|
||||
const el = document.querySelector(template);
|
||||
if (!!(process.env.NODE_ENV !== "production") && !el) warn(`Template element not found or is empty: ${template}`);
|
||||
template = el ? el.innerHTML : ``;
|
||||
}
|
||||
const opts = extend({
|
||||
hoistStatic: true,
|
||||
onError: !!(process.env.NODE_ENV !== "production") ? onError : void 0,
|
||||
onWarn: !!(process.env.NODE_ENV !== "production") ? (e) => onError(e, true) : NOOP
|
||||
}, options);
|
||||
if (!opts.isCustomElement && typeof customElements !== "undefined") opts.isCustomElement = (tag) => !!customElements.get(tag);
|
||||
const { code } = compile(template, opts);
|
||||
function onError(err, asWarning = false) {
|
||||
const message = asWarning ? err.message : `Template compilation error: ${err.message}`;
|
||||
const codeFrame = err.loc && generateCodeFrame(template, err.loc.start.offset, err.loc.end.offset);
|
||||
warn(codeFrame ? `${message}\n${codeFrame}` : message);
|
||||
}
|
||||
const render = new Function("Vue", code)(runtimeDom);
|
||||
render._rc = true;
|
||||
return compileCache[key] = render;
|
||||
}
|
||||
registerRuntimeCompiler(compileToFunction);
|
||||
//#endregion
|
||||
export { compileToFunction as compile, defineVaporAsyncComponent };
|
||||
+14753
File diff suppressed because it is too large
Load Diff
+12
File diff suppressed because one or more lines are too long
+19850
File diff suppressed because one or more lines are too long
+13
File diff suppressed because one or more lines are too long
+10377
File diff suppressed because it is too large
Load Diff
+9
File diff suppressed because one or more lines are too long
+23
@@ -0,0 +1,23 @@
|
||||
/**
|
||||
* vue v3.6.0-rc.10
|
||||
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||||
* @license MIT
|
||||
**/
|
||||
import { NOOP } from "@vue/shared";
|
||||
import { initCustomFormatter, warn } from "@vue/runtime-dom";
|
||||
import { defineVaporAsyncComponent } from "@vue/runtime-vapor";
|
||||
export * from "@vue/runtime-dom";
|
||||
export * from "@vue/runtime-vapor";
|
||||
//#region packages/vue/src/dev.ts
|
||||
function initDev() {
|
||||
initCustomFormatter();
|
||||
}
|
||||
//#endregion
|
||||
//#region packages/vue/src/runtime.ts
|
||||
if (!!(process.env.NODE_ENV !== "production")) initDev();
|
||||
const compile = (_template) => {
|
||||
if (!!(process.env.NODE_ENV !== "production")) warn("Runtime compilation is not supported in this build of Vue. Configure your bundler to alias \"vue\" to \"vue/dist/vue.esm-bundler.js\".");
|
||||
return NOOP;
|
||||
};
|
||||
//#endregion
|
||||
export { compile, defineVaporAsyncComponent };
|
||||
+10537
File diff suppressed because it is too large
Load Diff
+9
File diff suppressed because one or more lines are too long
+7
@@ -0,0 +1,7 @@
|
||||
'use strict'
|
||||
|
||||
if (process.env.NODE_ENV === 'production') {
|
||||
module.exports = require('./dist/vue.cjs.prod.js')
|
||||
} else {
|
||||
module.exports = require('./dist/vue.cjs.js')
|
||||
}
|
||||
+1
@@ -0,0 +1 @@
|
||||
export * from './index.js'
|
||||
+25
@@ -0,0 +1,25 @@
|
||||
import type { NativeElements, ReservedProps, VNode } from '@vue/runtime-dom'
|
||||
|
||||
/**
|
||||
* JSX namespace for usage with @jsxImportsSource directive
|
||||
* when ts compilerOptions.jsx is 'react-jsx' or 'react-jsxdev'
|
||||
* https://www.typescriptlang.org/tsconfig#jsxImportSource
|
||||
*/
|
||||
export { h as jsx, h as jsxDEV, Fragment, h as jsxs } from '@vue/runtime-dom'
|
||||
|
||||
export namespace JSX {
|
||||
export interface Element extends VNode {}
|
||||
export interface ElementClass {
|
||||
$props: {}
|
||||
}
|
||||
export interface ElementAttributesProperty {
|
||||
$props: {}
|
||||
}
|
||||
export interface IntrinsicElements extends NativeElements {
|
||||
// allow arbitrary elements
|
||||
// oxlint-disable-next-line typescript/prefer-ts-expect-error
|
||||
// @ts-ignore suppress ts:2374 = Duplicate string index signature.
|
||||
[name: string]: any
|
||||
}
|
||||
export interface IntrinsicAttributes extends ReservedProps {}
|
||||
}
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
const { h, Fragment } = require('vue')
|
||||
|
||||
function jsx(type, props, key) {
|
||||
const { children } = props
|
||||
delete props.children
|
||||
if (arguments.length > 2) {
|
||||
props.key = key
|
||||
}
|
||||
return h(type, props, children)
|
||||
}
|
||||
|
||||
exports.jsx = jsx
|
||||
exports.jsxs = jsx
|
||||
exports.jsxDEV = jsx
|
||||
exports.Fragment = Fragment
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
import { h, Fragment } from 'vue'
|
||||
|
||||
function jsx(type, props, key) {
|
||||
const { children } = props
|
||||
delete props.children
|
||||
if (arguments.length > 2) {
|
||||
props.key = key
|
||||
}
|
||||
return h(type, props, children)
|
||||
}
|
||||
|
||||
export { Fragment, jsx, jsx as jsxs, jsx as jsxDEV }
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"main": "index.js",
|
||||
"module": "index.mjs",
|
||||
"types": "index.d.ts"
|
||||
}
|
||||
+20
@@ -0,0 +1,20 @@
|
||||
// global JSX namespace registration
|
||||
// somehow we have to copy-paste the jsx-runtime types here to make TypeScript happy
|
||||
import type { NativeElements, ReservedProps, VNode } from '@vue/runtime-dom'
|
||||
|
||||
declare global {
|
||||
namespace JSX {
|
||||
export interface Element extends VNode {}
|
||||
export interface ElementClass {
|
||||
$props: {}
|
||||
}
|
||||
export interface ElementAttributesProperty {
|
||||
$props: {}
|
||||
}
|
||||
export interface IntrinsicElements extends NativeElements {
|
||||
// allow arbitrary elements
|
||||
[name: string]: any
|
||||
}
|
||||
export interface IntrinsicAttributes extends ReservedProps {}
|
||||
}
|
||||
}
|
||||
+117
@@ -0,0 +1,117 @@
|
||||
{
|
||||
"name": "vue",
|
||||
"version": "3.6.0-rc.10",
|
||||
"description": "The progressive JavaScript framework for building modern web UI.",
|
||||
"main": "index.js",
|
||||
"module": "dist/vue.runtime.esm-bundler.js",
|
||||
"types": "dist/vue.d.ts",
|
||||
"unpkg": "dist/vue.global.js",
|
||||
"jsdelivr": "dist/vue.global.js",
|
||||
"files": [
|
||||
"index.js",
|
||||
"index.mjs",
|
||||
"dist",
|
||||
"compiler-sfc",
|
||||
"server-renderer",
|
||||
"jsx-runtime",
|
||||
"jsx.d.ts"
|
||||
],
|
||||
"exports": {
|
||||
".": {
|
||||
"import": {
|
||||
"types": "./dist/vue.d.mts",
|
||||
"node": "./index.mjs",
|
||||
"default": "./dist/vue.runtime.esm-bundler.js"
|
||||
},
|
||||
"require": {
|
||||
"types": "./dist/vue.d.ts",
|
||||
"node": {
|
||||
"production": "./dist/vue.cjs.prod.js",
|
||||
"development": "./dist/vue.cjs.js",
|
||||
"default": "./index.js"
|
||||
},
|
||||
"default": "./index.js"
|
||||
}
|
||||
},
|
||||
"./server-renderer": {
|
||||
"import": {
|
||||
"types": "./server-renderer/index.d.mts",
|
||||
"default": "./server-renderer/index.mjs"
|
||||
},
|
||||
"require": {
|
||||
"types": "./server-renderer/index.d.ts",
|
||||
"default": "./server-renderer/index.js"
|
||||
}
|
||||
},
|
||||
"./compiler-sfc": {
|
||||
"import": {
|
||||
"types": "./compiler-sfc/index.d.mts",
|
||||
"browser": "./compiler-sfc/index.browser.mjs",
|
||||
"default": "./compiler-sfc/index.mjs"
|
||||
},
|
||||
"require": {
|
||||
"types": "./compiler-sfc/index.d.ts",
|
||||
"browser": "./compiler-sfc/index.browser.js",
|
||||
"default": "./compiler-sfc/index.js"
|
||||
}
|
||||
},
|
||||
"./jsx-runtime": {
|
||||
"types": "./jsx-runtime/index.d.ts",
|
||||
"import": "./jsx-runtime/index.mjs",
|
||||
"require": "./jsx-runtime/index.js"
|
||||
},
|
||||
"./jsx-dev-runtime": {
|
||||
"types": "./jsx-runtime/index.d.ts",
|
||||
"import": "./jsx-runtime/index.mjs",
|
||||
"require": "./jsx-runtime/index.js"
|
||||
},
|
||||
"./jsx": "./jsx.d.ts",
|
||||
"./dist/*": "./dist/*",
|
||||
"./package.json": "./package.json"
|
||||
},
|
||||
"buildOptions": {
|
||||
"name": "Vue",
|
||||
"formats": [
|
||||
"esm-bundler",
|
||||
"esm-bundler-runtime",
|
||||
"cjs",
|
||||
"global",
|
||||
"global-runtime",
|
||||
"esm-browser",
|
||||
"esm-browser-runtime",
|
||||
"esm-browser-vapor"
|
||||
]
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/vuejs/core.git"
|
||||
},
|
||||
"keywords": [
|
||||
"vue"
|
||||
],
|
||||
"author": "Evan You",
|
||||
"license": "MIT",
|
||||
"bugs": {
|
||||
"url": "https://github.com/vuejs/core/issues"
|
||||
},
|
||||
"homepage": "https://vuejs.org/",
|
||||
"dependencies": {
|
||||
"@vue/shared": "3.6.0-rc.10",
|
||||
"@vue/compiler-dom": "3.6.0-rc.10",
|
||||
"@vue/runtime-dom": "3.6.0-rc.10",
|
||||
"@vue/runtime-vapor": "3.6.0-rc.10",
|
||||
"@vue/compiler-sfc": "3.6.0-rc.10",
|
||||
"@vue/server-renderer": "3.6.0-rc.10"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"typescript": "*"
|
||||
},
|
||||
"peerDependenciesMeta": {
|
||||
"typescript": {
|
||||
"optional": true
|
||||
}
|
||||
},
|
||||
"devDependencies": {
|
||||
"vitest": "5.0.1"
|
||||
}
|
||||
}
|
||||
+1
@@ -0,0 +1 @@
|
||||
export * from '@vue/server-renderer'
|
||||
+1
@@ -0,0 +1 @@
|
||||
export * from '@vue/server-renderer'
|
||||
+1
@@ -0,0 +1 @@
|
||||
module.exports = require('@vue/server-renderer')
|
||||
+1
@@ -0,0 +1 @@
|
||||
export * from '@vue/server-renderer'
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"main": "index.js",
|
||||
"module": "index.mjs"
|
||||
}
|
||||
Reference in New Issue
Block a user