mirror of
https://github.com/zkitter/ffjavascript.git
synced 2026-01-09 15:07:56 -05:00
chore: cleanup dependencies & shrink rollup config
This commit is contained in:
1720
build/main.cjs
1720
build/main.cjs
File diff suppressed because one or more lines are too long
1498
package-lock.json
generated
1498
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
12
package.json
12
package.json
@@ -36,19 +36,13 @@
|
||||
"homepage": "https://github.com/iden3/ffjs#readme",
|
||||
"dependencies": {
|
||||
"big-integer": "^1.6.48",
|
||||
"mocha": "^8.2.1",
|
||||
"wasmcurves": "0.0.14",
|
||||
"worker-threads": "^1.0.0"
|
||||
"wasmcurves": "0.0.14"
|
||||
},
|
||||
"devDependencies": {
|
||||
"blake2b": "^2.1.3",
|
||||
"chai": "^4.2.0",
|
||||
"eslint": "^6.8.0",
|
||||
"esm": "^3.2.25",
|
||||
"rollup": "^2.19.0",
|
||||
"rollup-plugin-commonjs": "^10.1.0",
|
||||
"rollup-plugin-node-builtins": "^2.1.2",
|
||||
"rollup-plugin-node-globals": "^1.4.0",
|
||||
"rollup-plugin-node-resolve": "^5.2.0"
|
||||
"mocha": "^8.2.1",
|
||||
"rollup": "^2.38.5"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
import resolve from "rollup-plugin-node-resolve";
|
||||
import commonJS from "rollup-plugin-commonjs";
|
||||
import fs from "fs";
|
||||
import { builtinModules as builtin } from "module";
|
||||
|
||||
const pkg = JSON.parse(fs.readFileSync("./package.json"));
|
||||
|
||||
export default {
|
||||
input: "main.js",
|
||||
@@ -7,12 +9,8 @@ export default {
|
||||
file: "build/main.cjs",
|
||||
format: "cjs",
|
||||
},
|
||||
external: ["crypto", "os", "worker_threads"],
|
||||
plugins: [
|
||||
resolve({ preferBuiltins: true }),
|
||||
commonJS({
|
||||
preserveSymlinks: true
|
||||
}),
|
||||
external: [
|
||||
...Object.keys(pkg.dependencies),
|
||||
...builtin,
|
||||
]
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user