You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: