ecmascript 6 - Import non modular scripts (linq.js) in Aurelia -


i have question importing script define global variables aurelia using import keyword. can simple import modules scripts linq.js define global variable enumerable? possible execute script define namespace?

i tried steps this blog post it's defines non static methods. can't example use enumerable.from method.

this issue package manager, jspm. when have module exports global, need configure shim in jspm configuration file specify name of exported global(s).

in case of linq.js, however, seems use module.exports (i looking @ this source here), should work out of box. if doesn't, try specifying module format (cjs) in configuration.

import this:

import enumerable 'linq'; 

Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -