On 11/7/16, 1:37 PM, "Josh Tynjala" <[email protected]> wrote:
>As far as I know, there's no way to do it without compiling a new SWC >using >the sources from js.swc and including your additional APIs. > >That's not necessarily a bad thing. In fact, I'd say it's a best practice. >Ideally, I would have built node.swc to also include a subset of what's in >js.swc, instead of also including js.swc. Using js.swc for Node.js apps >exposes a bunch of classes that don't actually exist in Node.js. I hope to >clean that up eventually. This Adobe CEP sounds like a similar situation. >It's a different environment, even if there's a lot of overlap. Is CEP a different environment, or just a new feature? I agree about Node being a different environment. On the other hand, Cordova is a new feature added to a browser, so there is a separate cordova.swc that you use along with js.swc. I think the first decision is what you want the API to look like. Is cep a singleton? Or an instance of something? -Alex
