chore: update dependencies to rollup 4 and remove unneeded dependencies

This commit is contained in:
2024-02-21 00:15:33 +01:00
parent e46f668ac8
commit c4878caef3
23 changed files with 237 additions and 49272 deletions

View File

@@ -7,12 +7,6 @@ import {debugPrintOutput, getCode} from "../util/index.ts";
import html from "../../src/index.ts";
const output = {
dir: 'output', // Output all files
format: 'es', // iifi and cjs should be added to tests
sourcemap: true,// Test if #sourcemapUrl is not accidentally included in the html-output
};
import {fileURLToPath} from "node:url";
const __dirname = dirname(fileURLToPath(import.meta.url));
process.chdir(join(__dirname, 'fixtures'));
@@ -25,7 +19,7 @@ describe("basic", ()=> {
html({}),
]
});
const code = await getCode(bundle, output);
const code = await getCode(bundle);
await bundle.close();
debugPrintOutput('simple', code);
expect(code).toMatchSnapshot();
@@ -38,7 +32,7 @@ describe("basic", ()=> {
html({}),
]
});
const code = await getCode(bundle, output);
const code = await getCode(bundle);
await bundle.close();
debugPrintOutput('inline-script', code);
expect(code).toMatchSnapshot();