Skip to content

Comments

fix: crash when importing component with no script tag#46

Merged
yyx990803 merged 1 commit intovitejs:masterfrom
mathieumure:fix-test
May 4, 2020
Merged

fix: crash when importing component with no script tag#46
yyx990803 merged 1 commit intovitejs:masterfrom
mathieumure:fix-test

Conversation

@mathieumure
Copy link
Contributor

@mathieumure mathieumure commented May 4, 2020

Fix a crash when importing a vue component with no script tag. It also fixes the tests.

This was caused by a parsing error:

const __script = {}import { updateStyle } from "/@hmr"

which is not JS valid. So I add the following to be

const __script = {}
import { updateStyle } from "/@hmr"

@yyx990803 yyx990803 merged commit 586626f into vitejs:master May 4, 2020
hi-ogawa pushed a commit to hi-ogawa/vite that referenced this pull request Nov 9, 2024
hi-ogawa pushed a commit to hi-ogawa/vite that referenced this pull request Nov 11, 2024
hi-ogawa pushed a commit to hi-ogawa/vite that referenced this pull request Nov 13, 2024
hi-ogawa pushed a commit to hi-ogawa/vite that referenced this pull request Nov 15, 2024
hi-ogawa pushed a commit to hi-ogawa/vite that referenced this pull request Nov 28, 2024
hi-ogawa pushed a commit to hi-ogawa/vite that referenced this pull request Nov 30, 2024
hi-ogawa pushed a commit to hi-ogawa/vite that referenced this pull request Jan 6, 2025
hi-ogawa pushed a commit to hi-ogawa/vite that referenced this pull request Feb 18, 2025
hi-ogawa pushed a commit to hi-ogawa/vite that referenced this pull request Mar 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants