We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 956c2d8 commit 0fda225Copy full SHA for 0fda225
src/development/repl.ts
@@ -58,8 +58,8 @@ function loadReplFunctions<SLocals extends AnyServiceLocals = ServiceLocals<Conf
58
// Read the file content as text
59
const fileContent = fs.readFileSync(file, 'utf-8');
60
61
- // Check if repl$ is present, in a very rudimentary way
62
- if (/repl\$\(/.test(fileContent)) {
+ // Check if repl$ is present, in a very rudimentary way (note built JS has close paren not open)
+ if (/repl\$[()]/.test(fileContent)) {
63
// eslint-disable-next-line global-require, import/no-dynamic-require, @typescript-eslint/no-var-requires
64
const module = require(path.resolve(file));
65
0 commit comments