These are chat archives for bvaughn/forms-js

16th
Mar 2015
Mohsen Azimi
@mohsen1
Mar 16 2015 05:59
Hey @bvaughn I see FormsJS is adding global formsjs object. Is it neccessary?
Brian Vaughn
@bvaughn
Mar 16 2015 13:51
It's necessary for our code to go somewhere. If CommonJS or AMD is detected, it will register that way. Otherwise I chose (for now) to bundle it all under a global formsjs.
Mohsen Azimi
@mohsen1
Mar 16 2015 17:07
Does that work with ES6 modules too? In web components I want to import it via ES6 import and it would be nicer to not leak formsjs global
Brian Vaughn
@bvaughn
Mar 16 2015 18:22
I don't have any experience with ES6 modules to be honest. My impression would be that we would just need to export either the formsjs object/namespace or the classes within it, depending on how we wanted the library to be used. I'm not worried about this detail at the moment TBH b'c it's a simple thing that we can change as part of our Gulp building and packaging step.