@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 frameworkOptions = await presets.apply('framework');
18
- const builderOptions = frameworkOptions?.builder;
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@makcbrain/storybook-builder-esbuild",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "author": "Maksim Kadochnikov <makс.brain@gmail.com>",
5
5
  "description": "Builder for Storybook with supporting esbuild",
6
6
  "license": "MIT",