refine browser testing

This commit is contained in:
Rene
2020-10-31 16:19:12 +01:00
parent 4d8d76c5fc
commit 7df21970e6
10 changed files with 61 additions and 53 deletions
+7 -1
View File
@@ -254,8 +254,14 @@ const rollupConfig = (config = {}, { project = process.cwd(), overwrite = {}, si
});
}
if (isLast) {
build.plugins.unshift({
build.plugins.push({
name: 'deleteCacheDirs',
moduleParsed(moduleInfo) {
//if (filename.includes('index.browser')) {
console.log('moduleInfo', moduleInfo);
//console.log('importer', filename);
//}
},
writeBundle() {
const cacheDirs = cache.map((dir) => path.resolve(projectPath, dir));
const deletedDirs = del.sync(cacheDirs);