Re: [meteor-talk] isojs, a build plugin to remove wrapped code for server and client

19 views
Skip to first unread message

Avital Oliver

unread,
Mar 2, 2015, 2:54:50 PM3/2/15
to meteo...@googlegroups.com
You should probably post this on the new forums at http://forums.meteor.com; meteor-talk will be out of commission in a few days.

On Sun, Mar 1, 2015 at 9:16 AM, Max Foo <bomba...@gmail.com> wrote:
Hey guys,

I am looking for feedback for my new package isojs at https://atmospherejs.com/xamfoo/isojs

Basically, this Meteor package makes sharing code between client, server and mobile better by parsing and removing extraneous code for the server and client. This means code wrapped with if (Meteor.isServer) {...} won't be served to the client or vice versa. The advantages of this is:
- Smaller payload for the client, mobile and server
- Better sercurity since wrapped server code won't be exposed to the client
- Slightly better performance due to reduction in extraneous code

Currently, filenames have to end with .isojs to use the package. I was kinda hoping Meteor would allow multiple source handlers in future so .js code can be parsed.

Anyway, thanks for taking the time to look at it.

--
You received this message because you are subscribed to the Google Groups "meteor-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to meteor-talk...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/meteor-talk/1eead029-bb07-4fa1-82b5-a3f7529d818c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages