import CJS_COMPAT_NODE_URL_g3d8u6l9j5a from 'node:url';
import CJS_COMPAT_NODE_PATH_g3d8u6l9j5a from 'node:path';
import CJS_COMPAT_NODE_MODULE_g3d8u6l9j5a from "node:module";

var __filename = CJS_COMPAT_NODE_URL_g3d8u6l9j5a.fileURLToPath(import.meta.url);
var __dirname = CJS_COMPAT_NODE_PATH_g3d8u6l9j5a.dirname(__filename);
var require = CJS_COMPAT_NODE_MODULE_g3d8u6l9j5a.createRequire(import.meta.url);

// ------------------------------------------------------------
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
// ------------------------------------------------------------

// src/preset.ts
var addons = [
  import.meta.resolve("@storybook/preset-server-webpack")
], core = async (config, options) => {
  let framework = await options.presets.apply("framework");
  return {
    ...config,
    builder: {
      name: import.meta.resolve("@storybook/builder-webpack5"),
      options: typeof framework == "string" ? {} : framework.options.builder || {}
    },
    renderer: import.meta.resolve("@storybook/server/preset")
  };
};
export {
  addons,
  core
};
