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 30, 2024
1 parent e77d251 commit f1c7477
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 @@ -35,6 +35,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 f1c7477

Please sign in to comment.