jspm / registry

The jspm registry and package.json override service
https://jspm.io
229 stars 256 forks source link

intro.js overrides? #1048

Closed ivanbacher closed 7 years ago

ivanbacher commented 7 years ago

Hi,

I am trying to load intro.js using jspm:

From terminal: jspm install introJs=npm:intro.js

From code file: import introJs from 'introJs'; import 'introJs/minified/introjs.min.css!css';

console.log(introJs) //see image for output

screen shot 2017-05-09 at 16 17 22

This is incorrect as introJs should have a start method.

IntroJs

(function (root, factory) {
  if (typeof exports === 'object') {
    // CommonJS
    factory(exports);
  } else if (typeof define === 'function' && define.amd) {
    // AMD. Register as an anonymous module.
    define(['exports'], factory);
  } else {
    // Browser globals
    factory(root);
  }
} (this, function (exports) {

  ...
  ...

  exports.introJs = introJs;
  return introJs;
}));
ivanbacher commented 7 years ago

Nevermind! Got it working: import {introJs} from 'introJs';