index.js
function(app) {
    this._super(app);

    const vendorTree = this.treePaths.vendor;

    // Import the PubNub package and shim.
    app.import(`${vendorTree}/pubnub.js`);
    app.import(`${vendorTree}/shims/pubnub.js`, {
      exports: {
        PubNub: ['default']
      }
    });
  }
function(app) {
    this._super(app);

    const vendorTree = this.treePaths.vendor;

    // Import the PubNub package and shim.
    app.import(`${vendorTree}/pubnub.js`);
    app.import(`${vendorTree}/shims/pubnub.js`, {
      exports: {
        PubNub: ['default']
      }
    });
  }
function ( app ) { this . _super ( app ) ; const vendorTree = this . treePaths . vendor ; // Import the PubNub package and shim. app . import ( ` ${ vendorTree } ` ) ; app . import ( ` ${ vendorTree } ` , { exports : { PubNub : [ 'default' ] } } ) ; }
Add the PubNub JavaScript package
to the consuming application and
expose the vendor shim enabling it
to be imported as an es6 module.

@method included

@param {Object} app
An EmberApp instance.
Add the PubNub JavaScript package to the consuming application and expose the vendor shim enabling it to be imported as an es6 module .