From 13d5553167e91f24abbcbff77bb00fcd0e47bb96 Mon Sep 17 00:00:00 2001 From: 2heal1 Date: Mon, 29 Jul 2024 19:13:00 +0800 Subject: [PATCH] fix: support async node target --- packages/cli/plugin-data-loader/src/cli/loader.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/packages/cli/plugin-data-loader/src/cli/loader.ts b/packages/cli/plugin-data-loader/src/cli/loader.ts index d0623c38cb1c..164035a98cd6 100644 --- a/packages/cli/plugin-data-loader/src/cli/loader.ts +++ b/packages/cli/plugin-data-loader/src/cli/loader.ts @@ -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