Commit 5b56d70 1 parent dbbecdb commit 5b56d70 Copy full SHA for 5b56d70
File tree 2 files changed +5
-1
lines changed
2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -137,7 +137,7 @@ export default function vuePlugin(rawOptions: Options = {}): Plugin {
137
137
138
138
transform ( code , id , ssr = ! ! options . ssr ) {
139
139
const { filename, query } = parseVueRequest ( id )
140
- if ( ! query . vue && ! filter ( filename ) ) {
140
+ if ( ( ! query . vue && ! filter ( filename ) ) || query . raw ) {
141
141
return
142
142
}
143
143
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ export interface VueQuery {
6
6
type ?: 'script' | 'template' | 'style' | 'custom'
7
7
index ?: number
8
8
lang ?: string
9
+ raw ?: boolean
9
10
}
10
11
11
12
export function parseVueRequest ( id : string ) {
@@ -20,6 +21,9 @@ export function parseVueRequest(id: string) {
20
21
if ( query . index != null ) {
21
22
query . index = Number ( query . index )
22
23
}
24
+ if ( query . raw != null ) {
25
+ query . raw = true
26
+ }
23
27
return {
24
28
filename,
25
29
query
You can’t perform that action at this time.
0 commit comments