@makcbrain/storybook-builder-esbuild 1.0.2 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -14,8 +14,8 @@ const stringifyEnvs = (envs) => {
|
|
|
14
14
|
export const getEsbuildConfig = async (stories, options) => {
|
|
15
15
|
const { presets } = options;
|
|
16
16
|
const envs = await presets.apply('env');
|
|
17
|
-
const
|
|
18
|
-
const builderOptions =
|
|
17
|
+
const framework = await presets.apply('framework');
|
|
18
|
+
const builderOptions = typeof framework === 'object' ? framework?.options?.builder : undefined;
|
|
19
19
|
let userEsbuildConfig = {};
|
|
20
20
|
if (typeof builderOptions?.esbuildConfig === 'object') {
|
|
21
21
|
userEsbuildConfig = builderOptions?.esbuildConfig;
|