Created
January 5, 2019 11:55
-
-
Save ozanmakes/91dd9838200d53c0b3bf824a9394885c to your computer and use it in GitHub Desktop.
Repromise bundle size test
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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 | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Repromise.(resolved("Hello") |> wait(print_endline)); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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" | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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