Skip to content

Commit 97024c0

Browse files
committed
fix: fix builde error
1 parent f277afd commit 97024c0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/core/parser/parser-import.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ export interface ImportStatement {
2020
end?: number
2121
suffix?: string
2222
}
23-
const delTransformSymbol = (content: string) => content.replace(/[\r\t\f\v\\]/g, '')
2423

2524
export function parseImports(content: string, helper?: Array<Function>): {
2625
imports: ImportStatement[]
@@ -32,7 +31,7 @@ export function parseImports(content: string, helper?: Array<Function>): {
3231
let state = ParserState.Initial
3332
let i = 0
3433
let AtPath = ''
35-
const source = delTransformSymbol(content)
34+
const source = content
3635
while (i < source.length) {
3736
const char = source[i]
3837
switch (state) {

0 commit comments

Comments
 (0)