use rollup config

This commit is contained in:
weboko 2023-02-02 00:24:47 +01:00
parent e7c1d3af35
commit 289c59b896
No known key found for this signature in database

View File

@ -2,7 +2,8 @@ process.env.CHROME_BIN = require("puppeteer").executablePath();
const os = require("os");
const path = require("path");
const ResolveTypeScriptPlugin = require("resolve-typescript-plugin");
const rollupConfig = require("./rollup.config");
const output = {
path: path.join(os.tmpdir(), "_karma_webpack_") + Math.floor(Math.random() * 1000000),
@ -34,5 +35,6 @@ module.exports = function (config) {
timeout: 6000, // Default is 2s
},
},
rollupPreprocessor: { ...rollupConfig },
});
};