Skip to content
This repository was archived by the owner on Mar 10, 2020. It is now read-only.
This repository was archived by the owner on Mar 10, 2020. It is now read-only.

ES6 Rollup with ThunderJS import issue  #5

@adrianM27

Description

@adrianM27

In a project created by Lightning-CLI, I've tried to import and use ThunderJS:
in App.js:
import thunderJS from 'ThunderJS'
and just use it globally:
const config = {port: 9998, debug: true}; const thunderJs = thunderJS(config);
But whenever I build my app: lng build and run http server, the app fails with error: Uncaught ReferenceError: events$2 is not defined

Seems that rollup does strange things, since AppBundle.js starts with:
var APP_xxx = (function (events$2, https, http, net, tls, crypto, url, zlib, fs, path, os, stream$1) {

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions