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
An error was thrown because of the first script doesn't end with a semicolon.
It seems that Tampermonkey use string concat to evaluate external scripts.
Tampermonkey will not add separators between requires, because the code author has to be aware of potential issues especially if semicolons are omitted and the code is intended to be included by other scripts.
You can workaround the issue by requiring a script with a single semicolon. :) Reversing the @require statements might also work.
I don't think it should be taken into consideration.
Because normal script loaders(script tag, node require,...) won't concat the script, semicolon should not affect how modules should be evaluated.
Expected Behavior
No error.
Actual Behavior
An error was thrown because of the first script doesn't end with a semicolon.
It seems that Tampermonkey use string concat to evaluate external scripts.
Specifications
Script
The text was updated successfully, but these errors were encountered: