Uh oh!
There was an error while loading. Please reload this page.
global behavior if commonjs not available - #6
Conversation
lgrignon
commented
Mar 27, 2018
NB: travis build fails but it seems to be not related |
Fixed by upgrading node version. If you could please merge & deploy to npm, it would be great :) |
| module.exports = StackTraceParser; | ||
| if (typeof module != 'undefined') { |
There was a problem hiding this comment.
Hmm, that is enough? The main entry point of the project is the index.js which also uses module.exports to require that stuff.
Calamari
commented
Mar 28, 2018
What is the problem you are trying to solve? Do you want to use this in a browser? I think there are way more possibilities to get this to run in browser nowadays. |
I run it into a browser. I cannot use a module shim for many reasons. And yes, it is enough to run it in a browser since I made it work yesterday :) (However, I include the stacktrace-parser.js file instead of the index.js) |
Calamari
commented
Mar 19, 2019
@lgrignon I just merged a complete update to the product using babel. I guess that would solve your problem when releasing a new version, right? |
keithamus
commented
Feb 14, 2020
FYI @Calamari this would be fixed by simply linking |
Sorry, just a small fix to use this in a browser by simply importing it through a script tag.
Thanks for your simple, but useful library :)