Skip to content
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

Fails on modules with a shebang #43

Open
jamesshore opened this issue Feb 9, 2015 · 1 comment
Open

Fails on modules with a shebang #43

jamesshore opened this issue Feb 9, 2015 · 1 comment

Comments

@jamesshore
Copy link
Contributor

If you require a module that starts with a shebang, such as #! /usr/bin/node, the code will fail with a syntax error. This is because karma-commonjs inserts its wrapper in front of the shebang, which leads to invalid code.

We should look for the presence of a shebang line and add our wrapper below it when it's present.

@pkozlowski-opensource
Copy link
Member

Oh, this is a valid one... and should be relatively easy to fix!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants