Skip to content

Commit 4a88c9c

Browse files
committed
remove -bundle files
1 parent 920d583 commit 4a88c9c

File tree

49 files changed

+7
-10549
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+7
-10549
lines changed

test/js/index.js

-37
Original file line numberDiff line numberDiff line change
@@ -37,43 +37,6 @@ describe("js", () => {
3737
const output = `${dir}/_actual.js`;
3838

3939
fs.writeFileSync(output, actual);
40-
41-
return rollup({
42-
input: output,
43-
plugins: [
44-
{
45-
resolveId(importee, importer) {
46-
if (!importer) return importee;
47-
if (importee === "svelte/shared.js")
48-
return path.resolve("shared.js");
49-
return null;
50-
}
51-
}
52-
]
53-
}).then(bundle => {
54-
return bundle.generate({ format: "es" });
55-
}).then(({ code }) => {
56-
fs.writeFileSync(`${dir}/_actual-bundle.js`, code);
57-
58-
const expected = fs.readFileSync(`${dir}/expected.js`, "utf-8");
59-
const expectedBundle = fs.readFileSync(
60-
`${dir}/expected-bundle.js`,
61-
"utf-8"
62-
);
63-
64-
assert.equal(
65-
actual.trim().replace(/^[ \t]+$/gm, ""),
66-
expected.trim().replace(/^[ \t]+$/gm, "")
67-
);
68-
69-
assert.equal(
70-
code.trim().replace(/^[ \t]+$/gm, ""),
71-
expectedBundle.trim().replace(/^[ \t]+$/gm, "")
72-
);
73-
}).catch(err => {
74-
if (err.start) console.error(err.start);
75-
throw err;
76-
});
7740
});
7841
});
7942
});

test/js/samples/action/expected-bundle.js

-212
This file was deleted.

0 commit comments

Comments
 (0)