Skip to content

Instantly share code, notes, and snippets.

@ozanmakes
Created January 5, 2019 11:55
Show Gist options
  • Save ozanmakes/91dd9838200d53c0b3bf824a9394885c to your computer and use it in GitHub Desktop.
Save ozanmakes/91dd9838200d53c0b3bf824a9394885c to your computer and use it in GitHub Desktop.
Repromise bundle size test
{
"name": "repromise_bundle_size_test",
"version": "0.1.0",
"sources": {
"dir" : ".",
},
"package-specs": {
"module": "es6-global",
"in-source": true
},
"suffix": ".bs.js",
"bs-dependencies": [
"@aantron/repromise"
],
"warnings": {
"error" : "+101"
},
"refmt": 3
}
Repromise.(resolved("Hello") |> wait(print_endline));
{
"name": "repromise_bundle_size_test",
"version": "0.1.0",
"scripts": {
"clean": "bsb -clean-world",
"build": "bsb -make-world && rollup -c"
},
"keywords": [
"BuckleScript"
],
"author": "",
"license": "MIT",
"devDependencies": {
"bs-platform": "^4.0.16",
"rollup": "^1.0.1"
},
"dependencies": {
"@aantron/repromise": "^0.6.0",
"rollup-plugin-analyzer": "^2.1.0",
"rollup-plugin-uglify": "^6.0.0"
}
}
import { uglify } from "rollup-plugin-uglify";
import { plugin as analyze } from "rollup-plugin-analyzer";
export default {
input: "./main.bs.js",
output: {
file: "./bundle.js",
format: "iife",
name: "test"
},
plugins: [uglify(), analyze()]
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment