From 4c13eaac38b4059f64148dadca03e3f9b5e557c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Acid=20Chicken=20=28=E7=A1=AB=E9=85=B8=E9=B6=8F=29?= Date: Wed, 14 Feb 2024 16:13:15 +0900 Subject: [PATCH] build: createRequire --- packages/frontend/.storybook/main.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/frontend/.storybook/main.ts b/packages/frontend/.storybook/main.ts index af02901a1a..259afb962f 100644 --- a/packages/frontend/.storybook/main.ts +++ b/packages/frontend/.storybook/main.ts @@ -3,12 +3,14 @@ * SPDX-License-Identifier: AGPL-3.0-only */ +import { createRequire } from 'node:module'; import { dirname, join, resolve } from 'node:path'; import { fileURLToPath } from 'node:url'; import type { StorybookConfig } from '@storybook/vue3-vite'; import { type Plugin, mergeConfig } from 'vite'; import turbosnap from 'vite-plugin-turbosnap'; +const require = createRequire(import.meta.url); const _dirname = fileURLToPath(new URL('.', import.meta.url)); const config = {