-
Notifications
You must be signed in to change notification settings - Fork 215
Breaking down the Intl.js source code #67
Comments
@andyearnshaw this is definitely an area where we can help since we have the exact same issues in many of our projects. At this point, we are working on a bundling process that can provide:
As today, we plan to support this thru a |
@caridy: sounds great. I'm looking forward to being able to move forward with this, it's been haunting me for a long time! |
@andyearnshaw we have all the pieces together now, I will submit a PR in the next couple of days with the details to split the library in pieces. |
Great news, Caridy, looking forward to it. On Fri, Jul 18, 2014 at 3:00 PM, Caridy Patino notifications@github.com
|
Any update on this, @caridy? |
I have a branch but I didn't get enough time to finish it up. Will try to get some time in the next few days. |
Awesome, thanks again. 😄 |
solves #67: massive refactor to use ES6 modules under the hood
👍 |
This is done, merged into master, and will get consolidated into 1.0.0-rc-1 in PR #85 |
I've been experimenting making the source code a little more modular to try and achieve the following results:
I figured this was necessary when I started looking at the timezone stuff, so I've been doing bits here and there when I could. The modularsrc branch is my most recent effort, with the polyfill being fully functional in Node.js but with no current build process. I've probably made it a little more complicated than I originally hoped for, because of how Node's modules work. There are some "circular" requires (e.g.
src/intl.js
requiressrc/locale.js
which requiressrc/intl.js
to get the Intl object) but I think I can eliminate those.I was looking into using UglifyJS2's AST tree transformer to build all the files together with optional minification and source maps. Browserify doesn't seem to be appropriate and adds a bit of cruft (including a
require()
shim).I'd like to hear some thoughts and feelings on this before proceeding, because it's quite a large change and I may not have taken the best approach so far.
/cc @caridy, @ericf, @drewfish
The text was updated successfully, but these errors were encountered: