Skip to content

Commit

Permalink
fix: support async node target
Browse files Browse the repository at this point in the history
  • Loading branch information
2heal1 committed Jul 29, 2024
1 parent 8192b9d commit 13d5553
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/cli/plugin-data-loader/src/cli/loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,13 @@ export default async function loader(
return source;
}

if (
target === 'async-node' ||
(Array.isArray(target) && target.includes('async-node'))
) {
return source;
}

const { resourceQuery } = this;
// parse options from resouceQuery
const options = resourceQuery
Expand Down

0 comments on commit 13d5553

Please sign in to comment.