Evan You
e8e3ec6ca7
perf(compiler-sfc): remove magic-string trim on script
...
magic-string's trim method uses a regex check for aborting which turns
out to be extremely expensive - it cna take up to 10% time in total SFC
compilation! The usage here is purely aesthetic so simply removing it
for a big perf gain is well worth it.
2023-11-25 16:18:29 +08:00
三咲智子 Kevin Deng
79b8a0905b
feat!: remove reactivity transform ( #9321 )
...
BREAKING CHANGE: Reactivity Transform was marked deprecated in 3.3 and is now removed in 3.4. This change does not require a major due to the feature being experimental. Users who wish to continue using the feature can do so via the external plugin at https://vue-macros.dev/features/reactivity-transform.html
2023-11-21 18:06:42 +08:00
Bogdan Kolesnyk
f18a174979
fix(compiler-sfc): malformed filename on windows using path.posix.join() ( #9478 )
...
Closes : #8671 , #9583
Not fixed with: #9446
Related: #9473
2023-11-13 15:48:25 +08:00
auvred
3e08d246df
fix(compiler-sfc): consistently escape type-only prop names ( #8654 )
...
close #8635
close #8910
close vitejs/vite-plugin-vue#184
2023-11-10 16:23:47 +08:00
edison
9e1b74bcd5
fix(compiler-sfc): support resolve extends interface for defineEmits ( #8470 )
...
close #8465
2023-11-10 16:00:04 +08:00
木杉
a9893458ec
fix(compile-sfc): support `Error` type in `defineProps` ( #5955 )
2023-10-30 15:45:58 +08:00
Haoqun Jiang
089d36d167
fix: correctly resolve types from relative paths on Windows ( #9446 )
...
close #8671
close https://github.com/vuejs/vue-loader/issues/2048
2023-10-21 10:35:16 +08:00
三咲智子 Kevin Deng
df81da8be9
fix(compiler-sfc): model name conflict ( #8798 )
2023-10-20 17:36:36 +08:00
三咲智子 Kevin Deng
24db9516d8
fix(compiler-sfc): don't hoist props and emit ( #8535 )
...
fix #7805
close #7812
2023-07-12 11:03:14 +08:00
Evan You
d2c3d8b70b
perf(compiler-sfc): lazy require typescript
2023-06-15 16:38:44 +08:00
edison
4fa8da8576
fix(compiler-sfc): support resolve multiple re-export /w same source type name ( #8365 )
...
close #8364
2023-05-19 07:45:28 +08:00
Evan You
5aec717a24
fix(compiler-sfc): handle imported types from default exports
...
close #8355
2023-05-18 16:15:27 +08:00
三咲智子 Kevin Deng
b133e0fd97
fix(compiler-sfc): support defineEmits type reference with unions ( #8299 )
...
close #7943
2023-05-18 12:59:12 +08:00
Evan You
fab9c72780
fix(compiler-sfc): fix type import from path aliased vue file
...
close #8348
2023-05-18 12:50:47 +08:00
三咲智子 Kevin Deng
8ec73a3aea
fix(compiler-sfc): don't hoist regexp literial ( #8300 )
2023-05-18 11:09:40 +08:00
Evan You
b36addd3bd
fix(compiler-sfc): handle ts files with relative imports with .js extension
...
close #8339
2023-05-17 10:14:44 +08:00
Evan You
82350721a4
fix(compiler-sfc): raise specific warning for failed extends and allow ignoring extends
...
ref #8286
2023-05-12 13:17:55 +01:00
Evan You
f25bd37c67
fix(compiler-sfc): fix regression on props destructure when transform is not enabled
...
close #8289
2023-05-12 12:53:36 +01:00
白雾三语
690ef29635
fix(compiler-sfc): handle prop keys that need escaping ( #7803 )
...
close #8291
2023-05-12 18:24:59 +08:00
Evan You
aa1e77d532
fix(compiler-sfc): properly parse d.ts files when resolving types
...
close #8285
2023-05-12 11:08:29 +01:00
Cédric Exbrayat
ab9256a4bb
chore: fix typos in defineOptions ( #8277 )
2023-05-11 19:34:27 +08:00
Evan You
6b194bcf3b
fix(compiler-sfc): fix built-in type resolving in external files
...
close #8244
2023-05-08 12:30:19 +08:00
Evan You
4e2607a3d3
chore: move files into correct test block
2023-05-01 14:01:38 +08:00
Evan You
1c0be5c744
feat(compiler-sfc): support project references when resolving types
...
close #8140
2023-04-25 16:30:11 +08:00
Evan You
a370e8006a
perf(compiler-sfc): infer ref binding type for more built-in methods
2023-04-25 09:29:30 +08:00
Evan You
433a58ccb6
fix(compiler-sfc): props bindings should not override user declared bindings
...
fix #8148
2023-04-25 09:21:14 +08:00
Evan You
2d9f6f9264
fix(compiler-sfc): avoid all hard errors when inferring runtime type
2023-04-21 16:48:21 +08:00
edison
1d1d728949
feat(compiler-sfc): improve utility type Partial and Required ( #8103 )
2023-04-20 21:17:10 +08:00
Evan You
50c0bbe522
feat(compiler-sfc): support ExtractPropTypes when resolving types
...
close #8104
2023-04-20 21:02:50 +08:00
Evan You
4496456d7d
feat(compiler-sfc): support dynamic imports when resolving types
2023-04-20 16:18:35 +08:00
Evan You
7c3ca3cc3e
feat(compiler-sfc): support export * when resolving types
2023-04-20 15:56:24 +08:00
Evan You
d53e157805
fix(compiler-sfc): handle type merging + fix namespace access when inferring type
...
close #8102
2023-04-20 14:13:08 +08:00
Evan You
0f77a2b1d1
fix(compiler): fix expression codegen for literal const bindings in non-inline mode
2023-04-18 11:39:53 +08:00
Evan You
4e028b9669
feat(compiler-sfc): support specifying global types for sfc macros
...
ref: https://github.com/vuejs/core/pull/8083#issuecomment-1508468713
2023-04-16 15:49:41 +08:00
Evan You
6b13e04b4c
feat(compiler-sfc): mark props destructure as experimental and require explicit opt-in
2023-04-15 22:09:08 +08:00
Evan You
760755f4f8
feat(compiler-sfc): support string/number indexed types in macros
2023-04-15 22:08:39 +08:00
Evan You
8d8ddd686c
feat(compiler-sfc): expose type import deps on compiled script block
2023-04-15 22:08:39 +08:00
Evan You
075498c959
refactor: avoid hard error when inferring runtime type
2023-04-15 22:08:39 +08:00
Evan You
34a007d00d
test: refactor resolveType test
2023-04-15 22:08:39 +08:00
Evan You
3982bef533
feat(compiler-sfc): support resolving type imports from modules
2023-04-15 22:08:39 +08:00
Evan You
8451b92a7a
wip: cache fileToScope + improve vue file offset
2023-04-15 22:08:39 +08:00
Evan You
c93c11710e
refactor: improve type resolve error output
2023-04-15 22:08:39 +08:00
Evan You
8aa4ea81d6
feat(compiler-sfc): support relative imported types in macros
2023-04-15 22:08:39 +08:00
Evan You
5ff40bb0dc
feat(compiler-sfc): support namespace members type in macros
2023-04-13 12:32:52 +08:00
Evan You
3f779ddbf8
feat(compiler-sfc): support string indexed type in macros
2023-04-13 11:21:09 +08:00
Evan You
51773d5d1d
refactor: adjust ResolvedElements shape
2023-04-13 10:42:15 +08:00
Evan You
1cfab4c695
feat(compiler-sfc): support limited built-in utility types in macros
2023-04-13 10:28:22 +08:00
Evan You
fb8ecc803e
feat(compiler-sfc): support mapped types, string types & template type in macros
2023-04-13 09:59:54 +08:00
Evan You
d1f973bff8
feat(compiler-sfc): support intersection and union types in macros
...
close #7553
2023-04-12 21:34:13 +08:00
Evan You
a6dedc33ba
test: split compileScript macro tests
2023-04-12 16:46:26 +08:00