File tree 1 file changed +4
-4
lines changed 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -141,15 +141,15 @@ SvelteCompiler = class SvelteCompiler extends CachingCompiler {
141
141
// The compile result returned from `compileOneFile` can be an array or an
142
142
// object. If the processed HTML file is not a Svelte component, the result is
143
143
// an array of HTML sections (head and/or body). Otherwise, it's an object
144
- // with JavaScript from a compiled Svelte cmponent .
144
+ // with JavaScript from a compiled Svelte component .
145
145
compileResultSize ( result ) {
146
146
let size = 0 ;
147
147
148
148
if ( Array . isArray ( result ) ) {
149
149
result . forEach ( section => size += section . data . length ) ;
150
150
} else {
151
151
const { js, css } = result ;
152
-
152
+
153
153
if ( js && js . data ) {
154
154
size += js . data . length + js . sourceMap . toString ( ) . length ;
155
155
}
@@ -208,7 +208,7 @@ SvelteCompiler = class SvelteCompiler extends CachingCompiler {
208
208
if ( css ) {
209
209
file . addStylesheet ( css ) ;
210
210
}
211
-
211
+
212
212
return js ;
213
213
} ) ;
214
214
}
@@ -217,7 +217,7 @@ SvelteCompiler = class SvelteCompiler extends CachingCompiler {
217
217
async compileOneFile ( file ) {
218
218
// Search for head and body tags if lazy compilation isn't supported.
219
219
// Otherwise, the file has already been parsed in `compileOneFileLater`.
220
-
220
+
221
221
if ( ! file . supportsLazyCompilation ) {
222
222
const sections = this . getHtmlSections ( file ) ;
223
223
You can’t perform that action at this time.
0 commit comments