mirror of
https://github.com/logos-messaging/js-noise.git
synced 2026-01-04 06:33:08 +00:00
update input
This commit is contained in:
parent
9413269e38
commit
fbde0f5cae
@ -7,9 +7,13 @@ const { nodeResolve } = require("@rollup/plugin-node-resolve");
|
|||||||
const commonjs = require("@rollup/plugin-commonjs");
|
const commonjs = require("@rollup/plugin-commonjs");
|
||||||
const json = require("@rollup/plugin-json");
|
const json = require("@rollup/plugin-json");
|
||||||
|
|
||||||
|
const output = {
|
||||||
|
path: path.join(os.tmpdir(), "_karma_webpack_") + Math.floor(Math.random() * 1000000),
|
||||||
|
};
|
||||||
|
|
||||||
const rollupConfig = {
|
const rollupConfig = {
|
||||||
input: {
|
input: {
|
||||||
index: "dist/index.js",
|
index: `${output.path}/dist/index.js`,
|
||||||
},
|
},
|
||||||
output: {
|
output: {
|
||||||
dir: "bundle",
|
dir: "bundle",
|
||||||
@ -26,10 +30,6 @@ const rollupConfig = {
|
|||||||
],
|
],
|
||||||
};
|
};
|
||||||
|
|
||||||
const output = {
|
|
||||||
path: path.join(os.tmpdir(), "_karma_webpack_") + Math.floor(Math.random() * 1000000),
|
|
||||||
};
|
|
||||||
|
|
||||||
module.exports = function (config) {
|
module.exports = function (config) {
|
||||||
config.set({
|
config.set({
|
||||||
frameworks: ["mocha"],
|
frameworks: ["mocha"],
|
||||||
@ -54,6 +54,6 @@ module.exports = function (config) {
|
|||||||
timeout: 6000, // Default is 2s
|
timeout: 6000, // Default is 2s
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
rollupPreprocessor: { ...rollupConfig },
|
rollupPreprocessor: rollupConfig,
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user