use decorator before export default may cause compilation problems

This issue has been created since 2022-08-16.

Version

2.7.8

Reproduction link

stackblitz.com

Steps to reproduce

After open the above reproduction, you will see the console shows the error: [vite] Internal server error: Cannot overwrite across a split point

What is expected?

rewriteDefault can transform

@Component
export default class App extends Vue {
  a = `;export xxx default`;
}

into

@Component
class App extends Vue {
  a = `;export xxx default`;
}
const ${as} = App

so that vite can work correctly

What is actually happening?

same as vuejs/core#6318

More Details About Repo
Owner Name vuejs
Repo Name vue
Full Name vuejs/vue
Language TypeScript
Created Date 2013-07-29
Updated Date 2022-10-07
Star Count 199821
Watcher Count 6092
Fork Count 32893
Issue Count 587

YOU MAY BE INTERESTED

Issue Title Created Date Comment Count Updated Date
export folder's packages raw data 1 2022-09-16 2022-09-22
AggregateId disconnection between aggregate and state 25 2022-04-02 2022-10-06
Unable to get S3 location for result 2 2021-11-19 2022-10-05
Empty response when using pagination 2 2021-10-29 2022-10-02
Editing files from GitHub website leads to an error 0 2021-07-27 2022-08-24
Multi-GPU Implementations && Keypoints Generation 2 2021-07-30 2022-08-17
Can you give the data from 0.00-0.20 results? 1 2021-09-22 2022-07-10
可以来个iphone版么 我的好哥哥 1 2021-08-06 2022-01-09
lmbda in update_mini_batch 2 2018-10-14 2022-09-28
Error in jpeg(paste("Circular-Manhattan.", paste(taxa, collapse = "."), : unable to start jpeg() device 3 2022-07-13 2022-09-29
Feature Request - the ability to strip parameters from urls so duplicate files are not created 1 2022-03-25 2022-09-16
`onSubmit` swallows errors on unmounted component 0 2021-10-27 2022-10-06
0.8.0 returns 500 on errors from GraphQLScalarType/parseValue 1 2019-02-08 2022-09-27
Documentation Build Fail with npm version for Linux 1 2021-03-04 2022-10-02
Segmentation fault - macos, uSockets built with WITH_OPENSSL 1 2022-07-28 2022-09-29
Nach Update JS Controller auf v3.3 wird für alle Objekte eine Warnung "is missing the required property "common.type"" angemeckert 4 2021-08-06 2022-08-05
Change color of Pointer and tags background color. 1 2021-09-21 2022-10-06
Nothing generates on /swagger_doc (Ruby 3 + Rails 6) 1 2021-01-27 2022-09-15
[Feature Request] Follow specific monitor's brightness levels and apply to others 0 2022-09-02 2022-09-27
以前保存的文件怎么图片都不能看了啊 4 2019-12-21 2022-01-18
Normalize the Kuzzle document format 0 2021-07-23 2022-09-23
Update Performance - executemany execution time is unexpectedly slow 17 2021-10-20 2022-07-24
[BUG] how to disable pwa for admin folder 1 2022-09-04 2022-09-13
any plans for auto refresh for local_time_ago? 0 2022-05-19 2022-09-09
Dependabot couldn't reach https://rails-assets.org/ due to underlying error <too many connection resets (https://rails-assets.org/specs.4.8.gz)> as it timed out 0 2021-05-24 2022-09-19
I Cant run my program 1 2022-06-26 2022-09-19
Template for Firebase with working local functions emulator 5 2021-11-02 2022-07-31
Lane types 18 2020-05-20 2022-01-20
Wrong screen transitioning when changing from one stack of screens to another different stack. (i.e authentication flow) 9 2021-10-16 2022-10-05
Security issues, Remote Command Execution Vulnerability 1 2017-08-27 2022-09-18
Can I use the Kinect as a camera device? 5 2021-01-27 2022-09-28
./Protonect cl Error 0 2020-03-12 2022-09-28
Pretty print JSON Custom Fileds in edit view 1 2022-04-18 2022-09-14
Default installation targeting a non-istio-system namespace installs istiod-default-validator blocking istio CR creation 2 2022-03-28 2022-09-19
Using UVdesk v1.0.14 but there stands in my dashboard v1.0.13 3 2021-07-02 2022-10-05
User with expired IAP subscription still has access into Mozilla VPN on all platforms 5 2022-05-16 2022-09-19
Add Kafka promtail target 0 2021-10-25 2022-09-20
Disable service-worker.js selectively on page_config 4 2021-09-04 2022-09-26
[HELP] BoxedAnyType usage in docs gives error? 2 2022-08-30 2022-09-28
"Palindrome Products" test does not time execution 3 2021-11-26 2022-09-15
Files in sources jars with extra parent directories are not found 1 2022-04-11 2022-09-14
The shortcuts window does not tile to small sizes well 5 2020-03-24 2022-10-02
Flamegraphs options not enabled despite default configure is set to true 1 2019-05-06 2022-09-06
YOLOv3模型predict接口说明文档 3 2022-04-13 2022-10-05
How do we write out tid to threadName mapping for Perfetto 3 2022-05-26 2022-09-30
Ability to show cached IP adress (opnSense) 3 2022-03-20 2022-10-01
Model method replicate() prevents created event from being logged 4 2021-05-28 2022-09-26
Native crashes on Android 12 3 2021-11-01 2022-09-29
cloud-sql/postgres/knex: should handle insert error failed 3 2022-05-02 2022-10-06
Project-level default for await configuration 4 2022-05-27 2022-09-29