Skip to content

Commit 4a1c87a

Browse files
committed
fix merge + lint
1 parent 78838fa commit 4a1c87a

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

src/compiler/preprocess/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ export default async function preprocess(
130130
// sourcemap_list is sorted in reverse order from last map (index 0) to first map (index -1)
131131
// so we use sourcemap_list.unshift() to add new maps
132132
// https://github.com/ampproject/remapping#multiple-transformations-of-a-file
133-
const sourcemap_list: (DecodedSourceMap | RawSourceMap)[] = [];
133+
const sourcemap_list: Array<DecodedSourceMap | RawSourceMap> = [];
134134

135135
for (const fn of markup) {
136136

test/sourcemaps/index.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import * as fs from "fs";
22
import * as path from "path";
33
import * as assert from "assert";
4-
import { loadConfig, svelte } from "../helpers.js";
4+
import { loadConfig, svelte } from "../helpers.ts";
55
// keep source-map at version 0.7.x
66
// https://github.com/mozilla/source-map/issues/400
77
import { SourceMapConsumer } from "source-map";
@@ -50,7 +50,7 @@ describe("sourcemaps", () => {
5050
sourcemap: preprocessed.map,
5151
// filenames for sourcemaps
5252
outputFilename: `${outputName}.js`,
53-
cssOutputFilename: `${outputName}.css`,
53+
cssOutputFilename: `${outputName}.css`
5454
});
5555

5656
js.code = js.code.replace(
@@ -91,7 +91,7 @@ describe("sourcemaps", () => {
9191
css.map.sources.slice().sort(),
9292
(config.css_map_sources || ["input.svelte"]).sort()
9393
);
94-
};
94+
}
9595

9696
// use locate_1 with mapConsumer:
9797
// lines are one-based, columns are zero-based

test/sourcemaps/samples/sourcemap-sources/_config.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ function add(bundle, filename, source) {
44
bundle.addSource({
55
filename,
66
content: new MagicString(source),
7-
separator: '\n',
8-
//separator: '', // ERROR. probably a bug in magic-string
7+
separator: '\n'
8+
//separator: '' // ERROR. probably a bug in magic-string
99
});
1010
}
1111

@@ -26,7 +26,7 @@ export default {
2626
'foo.js',
2727
'bar.js',
2828
'foo2.js',
29-
'bar2.js',
29+
'bar2.js'
3030
],
3131
preprocess: [
3232
{

test/sourcemaps/samples/sourcemap-sources/test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export function test({ assert, preprocessed, js }) {
88
[js, 'foo.js', 'answer = 42;'],
99
[js, 'bar.js', 'console.log(answer);'],
1010
[js, 'foo2.js', 'answer2 = 84;'],
11-
[js, 'bar2.js', 'console.log(answer2);'],
11+
[js, 'bar2.js', 'console.log(answer2);']
1212
]
1313
.forEach(([where, sourcefile, content]) => {
1414

0 commit comments

Comments
 (0)