import CJS_COMPAT_NODE_URL_6jofinbrhmg from 'node:url';
import CJS_COMPAT_NODE_PATH_6jofinbrhmg from 'node:path';
import CJS_COMPAT_NODE_MODULE_6jofinbrhmg from "node:module";

var __filename = CJS_COMPAT_NODE_URL_6jofinbrhmg.fileURLToPath(import.meta.url);
var __dirname = CJS_COMPAT_NODE_PATH_6jofinbrhmg.dirname(__filename);
var require = CJS_COMPAT_NODE_MODULE_6jofinbrhmg.createRequire(import.meta.url);

// ------------------------------------------------------------
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
// ------------------------------------------------------------
import "../_node-chunks/chunk-3GAYTYW2.js";

// src/loaders/webpack-automock-loader.ts
import { babelParser, getAutomockCode } from "storybook/internal/mocking-utils";
function webpackAutomockLoader(source) {
  let isSpy = this.getOptions().spy === "true";
  return getAutomockCode(source, isSpy, babelParser).toString();
}
export {
  webpackAutomockLoader as default
};
