Skip to content

Commit 13d5553

Browse files
committed
fix: support async node target
1 parent 8192b9d commit 13d5553

File tree

1 file changed

+7
-0
lines changed
  • packages/cli/plugin-data-loader/src/cli

1 file changed

+7
-0
lines changed

packages/cli/plugin-data-loader/src/cli/loader.ts

+7
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,13 @@ export default async function loader(
2929
return source;
3030
}
3131

32+
if (
33+
target === 'async-node' ||
34+
(Array.isArray(target) && target.includes('async-node'))
35+
) {
36+
return source;
37+
}
38+
3239
const { resourceQuery } = this;
3340
// parse options from resouceQuery
3441
const options = resourceQuery

0 commit comments

Comments
 (0)