vite 3.0.0-alpha.6 → 3.0.0-alpha.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vite",
3
- "version": "3.0.0-alpha.6",
3
+ "version": "3.0.0-alpha.9",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "author": "Evan You",
@@ -70,8 +70,8 @@
70
70
  },
71
71
  "devDependencies": {
72
72
  "@ampproject/remapping": "^2.2.0",
73
- "@babel/parser": "^7.18.0",
74
- "@babel/types": "^7.18.0",
73
+ "@babel/parser": "^7.18.4",
74
+ "@babel/types": "^7.18.4",
75
75
  "@jridgewell/trace-mapping": "^0.3.13",
76
76
  "@rollup/plugin-alias": "^3.1.9",
77
77
  "@rollup/plugin-commonjs": "^21.1.0",
@@ -80,7 +80,7 @@
80
80
  "@rollup/plugin-node-resolve": "13.3.0",
81
81
  "@rollup/plugin-typescript": "^8.3.2",
82
82
  "@rollup/pluginutils": "^4.2.1",
83
- "@vue/compiler-dom": "^3.2.35",
83
+ "@vue/compiler-dom": "^3.2.36",
84
84
  "acorn": "^8.7.1",
85
85
  "cac": "6.7.9",
86
86
  "chokidar": "^3.5.3",
@@ -99,7 +99,7 @@
99
99
  "fast-glob": "^3.2.11",
100
100
  "http-proxy": "^1.18.1",
101
101
  "json5": "^2.2.1",
102
- "launch-editor-middleware": "^2.3.0",
102
+ "launch-editor-middleware": "^2.4.0",
103
103
  "magic-string": "^0.26.2",
104
104
  "micromatch": "^4.0.5",
105
105
  "mrmime": "^1.0.0",
@@ -112,18 +112,18 @@
112
112
  "postcss-load-config": "^3.1.4",
113
113
  "postcss-modules": "^4.3.1",
114
114
  "resolve.exports": "^1.1.0",
115
- "rollup-plugin-license": "^2.7.0",
115
+ "rollup-plugin-license": "^2.8.0",
116
116
  "sirv": "^2.0.2",
117
117
  "source-map-js": "^1.0.2",
118
118
  "source-map-support": "^0.5.21",
119
119
  "strip-ansi": "^6.0.1",
120
120
  "strip-literal": "^0.3.0",
121
- "terser": "^5.13.1",
122
- "tsconfck": "^2.0.0",
121
+ "terser": "^5.14.0",
122
+ "tsconfck": "^2.0.1",
123
123
  "tslib": "^2.4.0",
124
124
  "types": "link:./types",
125
125
  "ufo": "^0.8.4",
126
- "ws": "^8.6.0"
126
+ "ws": "^8.7.0"
127
127
  },
128
128
  "peerDependencies": {
129
129
  "less": "*",
@@ -1,90 +0,0 @@
1
- // Modified and inlined to avoid extra dependency
2
- // Source: https://github.com/guybedford/es-module-lexer/blob/main/types/lexer.d.ts
3
- // MIT Licensed https://github.com/guybedford/es-module-lexer/blob/main/LICENSE
4
-
5
- export interface ImportSpecifier {
6
- /**
7
- * Module name
8
- *
9
- * To handle escape sequences in specifier strings, the .n field of imported specifiers will be provided where possible.
10
- *
11
- * For dynamic import expressions, this field will be empty if not a valid JS string.
12
- *
13
- * @example
14
- * const [imports1, exports1] = parse(String.raw`import './\u0061\u0062.js'`);
15
- * imports1[0].n;
16
- * // Returns "./ab.js"
17
- *
18
- * const [imports2, exports2] = parse(`import("./ab.js")`);
19
- * imports2[0].n;
20
- * // Returns "./ab.js"
21
- *
22
- * const [imports3, exports3] = parse(`import("./" + "ab.js")`);
23
- * imports3[0].n;
24
- * // Returns undefined
25
- */
26
- readonly n: string | undefined
27
- /**
28
- * Start of module specifier
29
- *
30
- * @example
31
- * const source = `import { a } from 'asdf'`;
32
- * const [imports, exports] = parse(source);
33
- * source.substring(imports[0].s, imports[0].e);
34
- * // Returns "asdf"
35
- */
36
- readonly s: number
37
- /**
38
- * End of module specifier
39
- */
40
- readonly e: number
41
-
42
- /**
43
- * Start of import statement
44
- *
45
- * @example
46
- * const source = `import { a } from 'asdf'`;
47
- * const [imports, exports] = parse(source);
48
- * source.substring(imports[0].ss, imports[0].se);
49
- * // Returns `"import { a } from 'asdf';"`
50
- */
51
- readonly ss: number
52
- /**
53
- * End of import statement
54
- */
55
- readonly se: number
56
-
57
- /**
58
- * If this import statement is a dynamic import, this is the start value.
59
- * Otherwise this is `-1`.
60
- */
61
- readonly d: number
62
-
63
- /**
64
- * If this import has an import assertion, this is the start value.
65
- * Otherwise this is `-1`.
66
- */
67
- readonly a: number
68
- }
69
-
70
- /**
71
- * Wait for init to resolve before calling `parse`.
72
- */
73
- export const init: Promise<void>
74
-
75
- /**
76
- * Outputs the list of exports and locations of import specifiers,
77
- * including dynamic import and import meta handling.
78
- *
79
- * @param source - Source code to parser
80
- * @param name - Optional sourcename
81
- * @returns Tuple contaning imports list and exports list.
82
- */
83
- export function parse(
84
- source: string,
85
- name?: string
86
- ): readonly [
87
- imports: ReadonlyArray<ImportSpecifier>,
88
- exports: ReadonlyArray<string>,
89
- facade: boolean
90
- ]