diff --git a/packages/taro-webpack-runner/src/util/chain.ts b/packages/taro-webpack-runner/src/util/chain.ts index 26ca34d576a3..e33799c266de 100644 --- a/packages/taro-webpack-runner/src/util/chain.ts +++ b/packages/taro-webpack-runner/src/util/chain.ts @@ -18,6 +18,7 @@ import { Option, BuildConfig } from './types' const getSassLoaderOption = async ({ sass, sassLoaderOption }: BuildConfig) => { let bundledContent = '' + sassLoaderOption = sassLoaderOption || {} if (!sass) { return sassLoaderOption }