mirror of
https://github.com/filecoin-project/slate.git
synced 2024-11-26 04:19:49 +03:00
rollup: 923kb end result
This commit is contained in:
parent
8c67e1211c
commit
5106cb14ca
1
.gitignore
vendored
1
.gitignore
vendored
@ -19,6 +19,7 @@ slate-storage-addresses.json
|
|||||||
1GB_BUCKET_TEST.txt
|
1GB_BUCKET_TEST.txt
|
||||||
2GB_BUCKET_TEST.txt
|
2GB_BUCKET_TEST.txt
|
||||||
4GB_BUCKET_TEST.txt
|
4GB_BUCKET_TEST.txt
|
||||||
|
stats.html
|
||||||
|
|
||||||
/**/*/package-lock.json
|
/**/*/package-lock.json
|
||||||
/**/*/.DS_STORE
|
/**/*/.DS_STORE
|
||||||
|
16
dist/index.js
vendored
16
dist/index.js
vendored
File diff suppressed because one or more lines are too long
@ -66,11 +66,12 @@
|
|||||||
"ws": "^7.3.1"
|
"ws": "^7.3.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
"@rollup/plugin-babel": "^5.2.1",
|
||||||
|
"@rollup/plugin-commonjs": "^16.0.0",
|
||||||
"@rollup/plugin-json": "^4.1.0",
|
"@rollup/plugin-json": "^4.1.0",
|
||||||
"@rollup/plugin-node-resolve": "^10.0.0",
|
"@rollup/plugin-node-resolve": "^10.0.0",
|
||||||
"rollup": "^2.33.3",
|
"rollup": "^2.33.3",
|
||||||
"@rollup/plugin-babel": "^5.2.1",
|
"rollup-plugin-terser": "^7.0.2",
|
||||||
"@rollup/plugin-commonjs": "^16.0.0",
|
"rollup-plugin-visualizer": "^4.2.0"
|
||||||
"rollup-plugin-terser": "^7.0.2"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -2,6 +2,7 @@ import babel from "@rollup/plugin-babel";
|
|||||||
import commonjs from "@rollup/plugin-commonjs";
|
import commonjs from "@rollup/plugin-commonjs";
|
||||||
import resolve from "@rollup/plugin-node-resolve";
|
import resolve from "@rollup/plugin-node-resolve";
|
||||||
import json from "@rollup/plugin-json";
|
import json from "@rollup/plugin-json";
|
||||||
|
import visualizer from "rollup-plugin-visualizer";
|
||||||
|
|
||||||
import { terser } from "rollup-plugin-terser";
|
import { terser } from "rollup-plugin-terser";
|
||||||
|
|
||||||
@ -21,9 +22,16 @@ const generateOutput = (outputPath) => {
|
|||||||
exclude: ["node_modules/**", "**/*.json"],
|
exclude: ["node_modules/**", "**/*.json"],
|
||||||
babelHelpers: "runtime",
|
babelHelpers: "runtime",
|
||||||
}),
|
}),
|
||||||
resolve({ preferBuiltins: true }),
|
resolve({
|
||||||
|
preferBuiltins: false,
|
||||||
|
}),
|
||||||
commonjs(),
|
commonjs(),
|
||||||
terser(),
|
terser({
|
||||||
|
format: {
|
||||||
|
comments: false,
|
||||||
|
},
|
||||||
|
}),
|
||||||
|
visualizer(),
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user