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
Hello, i'm using the following code and it seems to execute the function in the import even though i haven't even called the function yet. Any reason for this behavior?
const _require = require("esm")(module);
try {
let code = _require('test.js');
} catch (error) {
error -> if (!params?.plugin_setup?.[params.propsP.fieldA]) {
^ SyntaxError: Invalid or unexpected token
}
The text was updated successfully, but these errors were encountered:
Hello, i'm using the following code and it seems to execute the function in the import even though i haven't even called the function yet. Any reason for this behavior?
The text was updated successfully, but these errors were encountered: