test: added testing via a browser (puppeteer)

This commit is contained in:
2023-12-03 10:42:51 +01:00
parent 2adfbee74b
commit e96c2248ee
27 changed files with 1281 additions and 123 deletions

View File

@@ -82,7 +82,7 @@ export default function html(opts: RollupHtmlOptions = {}): Plugin {
let addedEntries = new Map<string, string>();
let entryNames = new Map<string,string>();
const pluginName = 'html2';
const pluginName = 'html2'; // TODO: Need a better name
/**
* Short summary:
* Intercepts the loading of the html files and parses it with parse5.
@@ -103,7 +103,7 @@ export default function html(opts: RollupHtmlOptions = {}): Plugin {
* - we might need to know which output is being used to properly extract the html back from the result? (in case of not being included in a JS file)
*/
return {
name: pluginName,// TODO: Need a better name, original plugin was just named `html` and might still make sense to use in conjunction with this one
name: pluginName,
// Track html entrypoints
buildStart(options){