These are chat archives for systemjs/systemjs
import uiRouter from ‘angular-ui-router’yields an empty object.
uiRouter === 'ui.router'
import angular from 'angular' import uiRouter from 'angular-ui-router'; // If uiRouter exports string name let module1 = angular.module('module1', [uiRouter]); // if uiRouter exports angular module let module2 = angular.module('module2', [uiRouter.name]);
that's the approach i've taken. files/exports i want in various places in my app i end up treating like i would a 3rd party module - i name it in my map and import the name. if it's relative to a given file then it's probably a related piece of that module and i use the relative import statement.
if you want to limit the number of files you name in your map you could re-export from a select few files and treat those as components.
import mod from './local-file-module.js'and leave
defaultJSExtension: trueuntil jspm 0.17 is out?