Skip to content

Commit

Permalink
debug 3
Browse files Browse the repository at this point in the history
  • Loading branch information
JLHwung committed Feb 17, 2022
1 parent 1f7ed8a commit 6a8fcac
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 6 additions & 0 deletions packages/babel-cli/src/babel/dir.ts
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,12 @@ export default async function ({
processing++;
if (startTime === null) startTime = process.hrtime();

if (
filenames.some(filename => filename.endsWith("/module1/src/index.js"))
) {
console.log("./module1/src/index.js is changed");
}

try {
const written = await Promise.all(
filenames.map(filename => handleFile(filename, getBase(filename))),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ if (!assert.match) assert.match = (val, re) => assert(re.test(val));
const run = (function* () {
assert.match(yield, /Successfully compiled 4 files with Babel \(\d+ms\)\./);

fs.statSync("./module1/src/index.js");

// update ./module1/src/index.js
fs.writeFileSync(
"./module1/src/index.js",
Expand Down

0 comments on commit 6a8fcac

Please sign in to comment.