File tree 7 files changed +39
-33
lines changed
7 files changed +39
-33
lines changed Original file line number Diff line number Diff line change 24
24
"typescript" ,
25
25
26
26
// breaking changes
27
- "source-map" ,
28
- "react-refresh" ,
27
+ "cac" , // `cac:v6.7.10+` has breaking changes
28
+ "react-router" , // `react-router:v6.0.0+` has breaking changes
29
+ "react-router-dom" , // `react-router-dom:v6.0.0+` has breaking changes
30
+ "source-map" , // `source-map:v0.7.0+` needs more investigation
29
31
30
- // breaks since "3.0.1", needs futher investigate
31
- "postcss-load-config" ,
32
-
33
- // ESM Only
34
- "strip-ansi" ,
35
- "periscopic"
32
+ // ESM Only => https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c#how-can-i-move-my-commonjs-project-to-esm
33
+ "node-fetch" ,
34
+ "periscopic" ,
35
+ "strip-ansi"
36
36
]
37
37
}
Original file line number Diff line number Diff line change 31
31
"@microsoft/api-extractor" : " ^7.18.19" ,
32
32
"@types/fs-extra" : " ^9.0.13" ,
33
33
"@types/jest" : " ^27.0.2" ,
34
- "@types/node" : " ^15.12.2 " ,
35
- "@types/semver" : " ^7.3.8 " ,
34
+ "@types/node" : " ^16.11.6 " ,
35
+ "@types/semver" : " ^7.3.9 " ,
36
36
"@typescript-eslint/eslint-plugin" : " ^5.3.0" ,
37
37
"@typescript-eslint/parser" : " ^5.3.0" ,
38
38
"chalk" : " ^4.1.2" ,
45
45
"execa" : " ^5.1.1" ,
46
46
"fs-extra" : " ^10.0.0" ,
47
47
"jest" : " ^27.3.1" ,
48
- "lint-staged" : " ^11.2.0 " ,
48
+ "lint-staged" : " ^11.2.6 " ,
49
49
"minimist" : " ^1.2.5" ,
50
50
"node-fetch" : " ^2.6.6" ,
51
51
"npm-run-all" : " ^4.1.5" ,
52
52
"playwright-chromium" : " ^1.16.3" ,
53
53
"prettier" : " 2.4.1" ,
54
- "prompts" : " ^2.4.1 " ,
54
+ "prompts" : " ^2.4.2 " ,
55
55
"rimraf" : " ^3.0.2" ,
56
56
"rollup" : " ^2.59.0" ,
57
57
"semver" : " ^7.3.5" ,
58
- "sirv" : " ^1.0.17 " ,
58
+ "sirv" : " ^1.0.18 " ,
59
59
"ts-jest" : " ^27.0.7" ,
60
- "ts-node" : " ^10.1 .0" ,
61
- "typescript" : " ~4.4.3 " ,
60
+ "ts-node" : " ^10.4 .0" ,
61
+ "typescript" : " ~4.4.4 " ,
62
62
"vite" : " workspace:*" ,
63
63
"vitepress" : " ^0.20.1" ,
64
64
"yorkie" : " ^2.0.0"
Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ const vueI18nPlugin = {
83
83
return
84
84
}
85
85
if (/ \. ya? ml$ / .test (id )) {
86
- code = JSON .stringify (require (' js-yaml' ).safeLoad (code .trim ()))
86
+ code = JSON .stringify (require (' js-yaml' ).load (code .trim ()))
87
87
}
88
88
return ` export default Comp => {
89
89
Comp.i18n = ${code }
Original file line number Diff line number Diff line change 38
38
"debug" : " ^4.3.2" ,
39
39
"hash-sum" : " ^2.0.0" ,
40
40
"rollup" : " ^2.59.0" ,
41
- "slash" : " ^3 .0.0" ,
41
+ "slash" : " ^4 .0.0" ,
42
42
"source-map" : " ^0.6.1" ,
43
43
"vue" : " ^3.2.21"
44
44
}
Original file line number Diff line number Diff line change @@ -53,7 +53,8 @@ export async function transformMain(
53
53
)
54
54
55
55
// template
56
- const hasTemplateImport = descriptor . template && ! isUseInlineTemplate ( descriptor , ! devServer )
56
+ const hasTemplateImport =
57
+ descriptor . template && ! isUseInlineTemplate ( descriptor , ! devServer )
57
58
58
59
let templateCode = ''
59
60
let templateMap : RawSourceMap | undefined
Original file line number Diff line number Diff line change @@ -25,12 +25,11 @@ export function setResolvedScript(
25
25
// Check if we can use compile template as inlined render function
26
26
// inside <script setup>. This can only be done for build because
27
27
// inlined template cannot be individually hot updated.
28
- export function isUseInlineTemplate ( descriptor : SFCDescriptor , isProd : boolean ) : boolean {
29
- return (
30
- isProd &&
31
- ! ! descriptor . scriptSetup &&
32
- ! descriptor . template ?. src
33
- )
28
+ export function isUseInlineTemplate (
29
+ descriptor : SFCDescriptor ,
30
+ isProd : boolean
31
+ ) : boolean {
32
+ return isProd && ! ! descriptor . scriptSetup && ! descriptor . template ?. src
34
33
}
35
34
36
35
export function resolveScript (
Original file line number Diff line number Diff line change @@ -22,15 +22,21 @@ export function slash(p: string): string {
22
22
23
23
// injected by the test env
24
24
declare global {
25
- // eslint-disable-next-line @typescript-eslint/no-namespace
26
- namespace NodeJS {
27
- interface Global {
28
- page ?: Page
29
- viteTestUrl ?: string
30
- watcher ?: RollupWatcher
31
- beforeAllError : any
32
- }
33
- }
25
+ const page : Page | undefined
26
+
27
+ const browserLogs : string [ ]
28
+ const viteTestUrl : string | undefined
29
+ const watcher : RollupWatcher | undefined
30
+ let beforeAllError : Error | null // error caught in beforeAll, useful if you want to test error scenarios on build
31
+ }
32
+
33
+ declare const global : {
34
+ page ?: Page
35
+
36
+ browserLogs : string [ ]
37
+ viteTestUrl ?: string
38
+ watcher ?: RollupWatcher
39
+ beforeAllError : Error | null
34
40
}
35
41
36
42
let server : ViteDevServer | http . Server
You can’t perform that action at this time.
0 commit comments