We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
It would be a lot cleaner for users of the package if it had a main attribute as described in this SO answer. https://stackoverflow.com/questions/22512992/node-js-package-json-main-parameter
I think the main should be: 'main': 'build/js/messenger'
The text was updated successfully, but these errors were encountered:
I found a work around with webpack.
given the current state of the package.json, you have to do this:
import "messenger-hubspot/build/js/messenger.js";
but if you add this to the plugin section of your webpack config, you can work around the lack of a main tag:
new webpack.NormalModuleReplacementPlugin(/^messenger$/, 'messenger-hubspot/build/js/messenger.js'),
then you can just do this to import the module:
import "messenger"
Sorry, something went wrong.
No branches or pull requests
It would be a lot cleaner for users of the package if it had a main attribute as described in this SO answer.
https://stackoverflow.com/questions/22512992/node-js-package-json-main-parameter
I think the main should be:
'main': 'build/js/messenger'
The text was updated successfully, but these errors were encountered: