-
Notifications
You must be signed in to change notification settings - Fork 406
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't "import" or "require" messenger with JS #120
Comments
I.e. please make it play nicely with Webpack |
+1 |
No |
I just made it work like this:
|
@akarelas You can import it because inside the lib we haven't any export and the lib work with the global window object. You only can do like: |
If the npm package.json included a main tag like this: then it would work better and it could be imported like this: import 'messenger-hubspot'; (I am going off of the npm package called messenger-hubspot. |
I can confirm this works after installing from npm
|
Please do what you must, so that I can do:
let Messenger = require('messenger');
or...
import Messenger from 'messenger';
The text was updated successfully, but these errors were encountered: