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

ES6 Rollup with ThunderJS import issue #5

Open
adrianM27 opened this issue Jan 8, 2020 · 1 comment
Open

ES6 Rollup with ThunderJS import issue #5

adrianM27 opened this issue Jan 8, 2020 · 1 comment

Comments

@adrianM27
Copy link

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) {

@wouterlucas
Copy link
Contributor

I dont think this is a thunderjs issue, but likely a rollup config issue on the SDK / CLI side.
cc @michielvandergeest

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

2 participants