-
Notifications
You must be signed in to change notification settings - Fork 239
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
webpack (6to5) require/import problem #86
Comments
if I changed https://github.com/gregjacobs/Autolinker.js/blob/master/dist/Autolinker.js#L2 |
Where I can change it in forked version? |
bump! need this! |
Hey guys, sorry for the late reply. Not sure exactly what you're doing here though. What do you have installed to give you that |
|
Just used this to fix the issue with Webpack |
👍 I am also running into this webpack issue. The solution proposed by @max-mykhailenko works but I assume messes with other environments. |
Issue bodies are in markdown format, so I brought in a markdown parser. Before landing on marked, I tried remarkable [0] but that didn't work out so well with webpack due to an issue in one of its dependencies (Autolinker.js [1]). Next, I tried markdown-js [2] which seemed okay, but it doesn't seem to have support for fenced code blocks or GitHub flavored markdown [3], which I'd really like to have for this project since I need to render markdown that comes from GitHub's API. marked seems to support this better and it doesn't have problems with webpack. [0]: https://github.com/jonschlinkert/remarkable [1]: gregjacobs/Autolinker.js#86 [2]: https://github.com/evilstreak/markdown-js [3]: evilstreak/markdown-js#41
Are you guys also using Babel? I think what we are running into here is Babel strict mode. It is turned off by default in Babel 6. See http://stackoverflow.com/a/33821820/303016 |
{ test: /.js$/, loader: 'imports?define=>false'} should fix it. |
Not sure if anyone is still having an issue with this 3 years later, but feel free to reopen if needed 😄 |
I tried to use autolinker from npm module
And after import
import Autolinker from 'autolinker';
get this
Uncaught TypeError: Cannot set property 'returnExportsGlobal' of undefined
In code
The text was updated successfully, but these errors were encountered: