I have written a typescript library (mathquill-typescript
) that requires Jquery. I use jquery as a node_module. So my mathquill-typescript
library starts like this:
import * as $ from 'jquery'
export namespace MathQuillLoader {
...
Now when I (or someone else) want to use this library, for example with SystemJS, I still need to specify details about jquery
:
System.config({
baseURL: './'
,
map: {
'jquery': 'node_modules/jquery/dist/jquery.js',
'mathquill-typescript': 'node_modules/mathquill-typescript/dist/index.js'
}
});
Is there a way, that jquery
is just an implementation detail and the user of mathquill-typescript
doesn't need to know about it? At the same time I wouldn't want to inline jquery, since I want jquery to be only loaded once by the browser.