mirror of
https://github.com/logos-messaging/js-noise.git
synced 2026-01-05 23:23:08 +00:00
test rollup config
This commit is contained in:
parent
400842e5e8
commit
62fcd6285f
@ -3,7 +3,29 @@ process.env.CHROME_BIN = require("puppeteer").executablePath();
|
||||
const os = require("os");
|
||||
const path = require("path");
|
||||
|
||||
const rollupConfig = import("./rollup.config.js");
|
||||
const { nodeResolve } = require("@rollup/plugin-node-resolve");
|
||||
const commonjs = require("@rollup/plugin-commonjs");
|
||||
const json = require("@rollup/plugin-json");
|
||||
|
||||
const rollupConfig = {
|
||||
input: {
|
||||
index: "dist/index.js",
|
||||
},
|
||||
output: {
|
||||
dir: "bundle",
|
||||
format: "esm",
|
||||
},
|
||||
plugins: [
|
||||
commonjs(),
|
||||
json(),
|
||||
nodeResolve({
|
||||
browser: true,
|
||||
preferBuiltins: false,
|
||||
extensions: [".js", ".ts"],
|
||||
}),
|
||||
],
|
||||
};
|
||||
|
||||
|
||||
const output = {
|
||||
path: path.join(os.tmpdir(), "_karma_webpack_") + Math.floor(Math.random() * 1000000),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user