Skip to content

Commit a4a08c9

Browse files
committed
Run in repl
1 parent 10d13cc commit a4a08c9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -517,6 +517,8 @@ export default function (babel) {
517517
const { filename } = file.opts;
518518
// HACK: for lightscript-eslint, and possibly others
519519
if (filename === "unknown") return true;
520+
// for babel-node repl
521+
if (filename === "repl") return true;
520522

521523
// TODO: consider "peeking" at the first line for a shebang or 'use lightscript' directive.
522524
return (

0 commit comments

Comments
 (0)