Permalink
Browse files

New: pbjs now generates multiple exports when using ES6 syntax, see #686

  • Loading branch information...
dcodeIO committed Mar 11, 2017
1 parent db1030e commit ac26a7aa60359a37dbddaad139c0134b592b3325
Showing with 410 additions and 1 deletion.
  1. +4 −1 cli/targets/static.js
  2. +406 −0 tests/data/rpc-es6.js
@@ -96,7 +96,10 @@ function buildNamespace(ref, ns) {
return;
if (ns.name !== "") {
push("");
push(name(ref) + "." + name(ns.name) + " = (function() {");
if (!ref && config.es6)
push("export const " + name(ns.name) + " = " + name(ref) + "." + name(ns.name) + " = (function() {");
else
push(name(ref) + "." + name(ns.name) + " = (function() {");
++indent;
}
Oops, something went wrong.

0 comments on commit ac26a7a

Please sign in to comment.