File tree Expand file tree Collapse file tree 1 file changed +1
-14
lines changed Expand file tree Collapse file tree 1 file changed +1
-14
lines changed Original file line number Diff line number Diff line change @@ -7,19 +7,6 @@ function posixify(file) {
7
7
return file . replace ( / [ / \\ ] / g, '/' ) ;
8
8
}
9
9
10
- function normalize ( compiled ) {
11
- // svelte.compile signature changed in 1.60 — this avoids
12
- // future deprecation warnings while preserving backwards
13
- // compatibility
14
- const js = compiled . js || { code : compiled . code , map : compiled . map } ;
15
-
16
- const css = compiled . css && typeof compiled . css === 'object'
17
- ? compiled . css
18
- : { code : compiled . css , map : compiled . cssMap } ;
19
-
20
- return { js, css, ast : compiled . ast , warnings : compiled . warnings || compiled . stats . warnings || [ ] } ;
21
- }
22
-
23
10
const virtualModules = new Map ( ) ;
24
11
let index = 0 ;
25
12
@@ -58,7 +45,7 @@ module.exports = function(source, map) {
58
45
}
59
46
60
47
const compiled = compile ( processed . toString ( ) , compileOptions ) ;
61
- let { js, css, warnings } = normalize ( compiled ) ;
48
+ let { js, css, warnings } = compiled ;
62
49
63
50
warnings . forEach (
64
51
options . onwarn
You can’t perform that action at this time.
0 commit comments