Skip to content

Commit

Permalink
Fix build error when not doing full build
Browse files Browse the repository at this point in the history
  • Loading branch information
Zarel committed Apr 13, 2021
1 parent 080fa29 commit f5d3242
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions build-tools/compiler.js
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,8 @@ function compileToFile(srcFile, destFile, opts) {
const results = [];

for (const src of srcFiles) {
if (!fs.existsSync(src)) continue;

const res = babel.transformFileSync(src, opts);

if (res) results.push(res);
Expand Down

0 comments on commit f5d3242

Please sign in to comment.