Skip to content

Instantly share code, notes, and snippets.

@vramana
Created September 12, 2016 02:09
Show Gist options
  • Save vramana/6b0dc066a48ed612941eaad9d3603e4a to your computer and use it in GitHub Desktop.
Save vramana/6b0dc066a48ed612941eaad9d3603e4a to your computer and use it in GitHub Desktop.
let module Index = BS_Index;
let module Test1 = BS_Test1;

Namespacing via module name.

bsc -g  -w "-49-40-30" -pp refmt -bs-package-name self -bs-package-output commonjs:_build/bs-project -c -impl src/BS.re

Output:

// Generated by BUCKLESCRIPT VERSION 1.0.1 , PLEASE EDIT WITH CARE
'use strict';


var Index = 0;

var Test1 = 0;

exports.Index = Index;
exports.Test1 = Test1;
/* No side effect */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment