UNPKG

storybook

Version:

Storybook: Develop, document, and test UI components in isolation

34 lines (30 loc) 1.28 kB
import CJS_COMPAT_NODE_URL_q99y7iqlbzn from 'node:url'; import CJS_COMPAT_NODE_PATH_q99y7iqlbzn from 'node:path'; import CJS_COMPAT_NODE_MODULE_q99y7iqlbzn from "node:module"; var __filename = CJS_COMPAT_NODE_URL_q99y7iqlbzn.fileURLToPath(import.meta.url); var __dirname = CJS_COMPAT_NODE_PATH_q99y7iqlbzn.dirname(__filename); var require = CJS_COMPAT_NODE_MODULE_q99y7iqlbzn.createRequire(import.meta.url); // ------------------------------------------------------------ // end of CJS compatibility banner, injected by Storybook's esbuild configuration // ------------------------------------------------------------ import { getAutomockCode } from "../../../../_node-chunks/chunk-L3JBAJIP.js"; import { babelParser } from "../../../../_node-chunks/chunk-U4S5ZJMR.js"; import "../../../../_node-chunks/chunk-LMQEOO5W.js"; import { __name } from "../../../../_node-chunks/chunk-MB5KTO7X.js"; // src/core-server/presets/webpack/loaders/webpack-automock-loader.ts function webpackAutomockLoader(source) { const options = this.getOptions(); const isSpy = options.spy === "true"; const mocked = getAutomockCode(source, isSpy, babelParser); return mocked.toString(); } __name(webpackAutomockLoader, "webpackAutomockLoader"); export { webpackAutomockLoader as default };