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,11 +7,11 @@ exports[`handlebars 1`] = `
console.log(b());
export { b };
//# sourceMappingURL=batman-c7fa228c.js.map
//# sourceMappingURL=batman.js.map
",
"fileName": "batman-c7fa228c.js",
"fileName": "batman.js",
"map": SourceMap {
"file": "batman-c7fa228c.js",
"file": "batman.js",
"mappings": "AAAY,MAAC,CAAC,GAAG,IAAI,SAAS;AAC9B,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC;;;;",
"names": [],
"sources": [
@@ -28,9 +28,9 @@ console.log(b());
},
{
"code": undefined,
"fileName": "batman-c7fa228c.js.map",
"fileName": "batman.js.map",
"map": undefined,
"source": "{"version":3,"file":"batman-c7fa228c.js","sources":["../batman.js"],"sourcesContent":["export const b = ()=>'batman';\\nconsole.log(b());\\n"],"names":[],"mappings":"AAAY,MAAC,CAAC,GAAG,IAAI,SAAS;AAC9B,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC;;;;"}",
"source": "{"version":3,"file":"batman.js","sources":["../batman.js"],"sourcesContent":["export const b = ()=>'batman';\\nconsole.log(b());\\n"],"names":[],"mappings":"AAAY,MAAC,CAAC,GAAG,IAAI,SAAS;AAC9B,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC;;;;"}",
},
{
"code": undefined,
@@ -40,7 +40,7 @@ console.log(b());
<meta data-test="a">
</head>
<body>
<script src="batman-c7fa228c.js" type="module"></script>
<script src="batman.js" type="module"></script>
</body></html>",

View File

@@ -8,12 +8,6 @@ import {debugPrintOutput, getCode} from "../util/index.ts";
import html from "../../src/index.ts";
import handlebars from "handlebars";
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'));
@@ -29,7 +23,7 @@ test('handlebars', async () => {
})
]
});
const code = await getCode(bundle, output);
const code = await getCode(bundle);
debugPrintOutput('handlebars',code);
expect(code).toMatchSnapshot();
});