You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Would anyone be interested in a PR for bundling ES6 modules into single IFFE-scoped files? (a la rollup.js) This would allow bundling for those who don't wish to rely on AMD/System, and remove at least one build step in many scenarios.
(Apologies if duplicate. Search/FAQ didn't come up with anything. If additional details are desired, I can put those together as well)
//maths.ts (source)//variable namespacing could be accomplished by appending, as seen here, or via internal IFFEsvarz : number=0;exportfunctionsquare(x : number): number{returnx*x+z;}//unreferenced functions intelligently culledexportfunctioncube(x : number): number{returnx*x*x+z;}
//main.js (outFile)(function(){'use strict';//variable namespacing could be accomplished by appending, as seen here, or via internal IFFEsvarz$1=0;//unreferenced functions intelligently culledfunctioncube(x){returnx*x*x+z$1;}varz=3;console.log(cube(5)+z);}());
The text was updated successfully, but these errors were encountered:
Would anyone be interested in a PR for bundling ES6 modules into single IFFE-scoped files? (a la rollup.js) This would allow bundling for those who don't wish to rely on AMD/System, and remove at least one build step in many scenarios.
(Apologies if duplicate. Search/FAQ didn't come up with anything. If additional details are desired, I can put those together as well)
Example below (modified from rollupjs's website):
The text was updated successfully, but these errors were encountered: