Skip to content

Commit 53f0039

Browse files
author
arggh
committed
Cleanup
1 parent d14f623 commit 53f0039

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

MelteCompiler.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -141,15 +141,15 @@ SvelteCompiler = class SvelteCompiler extends CachingCompiler {
141141
// The compile result returned from `compileOneFile` can be an array or an
142142
// object. If the processed HTML file is not a Svelte component, the result is
143143
// 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.
145145
compileResultSize(result) {
146146
let size = 0;
147147

148148
if (Array.isArray(result)) {
149149
result.forEach(section => size += section.data.length);
150150
} else {
151151
const { js, css } = result;
152-
152+
153153
if (js && js.data) {
154154
size += js.data.length + js.sourceMap.toString().length;
155155
}
@@ -208,7 +208,7 @@ SvelteCompiler = class SvelteCompiler extends CachingCompiler {
208208
if (css) {
209209
file.addStylesheet(css);
210210
}
211-
211+
212212
return js;
213213
});
214214
}
@@ -217,7 +217,7 @@ SvelteCompiler = class SvelteCompiler extends CachingCompiler {
217217
async compileOneFile(file) {
218218
// Search for head and body tags if lazy compilation isn't supported.
219219
// Otherwise, the file has already been parsed in `compileOneFileLater`.
220-
220+
221221
if (!file.supportsLazyCompilation) {
222222
const sections = this.getHtmlSections(file);
223223

0 commit comments

Comments
 (0)