Including unbundled ES6 dependency using JSPM

10 views
Skip to first unread message

Rahul Gupta

unread,
Jun 17, 2017, 9:29:35 PM6/17/17
to jspm
Hi,

I am trying to something different but what seems to be natural. I have written a library in ES6 that I am trying to include into my main program which uses JSPM (The idea is to build once rather than build each lib and then build the whole). I am hitting two issues:

1) If I use absolute path to call a module in the library, Systemjs wants to resolve the path from the root of the main program and not the library. For Example:

import something from 'module' (not on the root of the library but say in library/x/y)

goes searching in /src/module

and not /jspm_packages/registry/package@version/module

2) Builder does not seem to convert the library code to ES5

I have tired a number of different combinations on the library's package.json but it have not worked so far. 


Any help appreciated. Thanks in advance.
Rahul   
Reply all
Reply to author
Forward
0 new messages