Js: ignoreUrl still logs errors

<script>Raven.config('https://xxxx@xxx/1', { ignoreUrls:[/file\/customjs/i] }).install();</script>

Then I have an external script with a syntax error:

<script src="/app/File/CustomJs" defer></script>

But the error is still logged. What am I doing wrong?