From 30f256ec8c3a737c35afc186f8a77cecb68bb7ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BF=A0=20/=20green?= Date: Mon, 16 Dec 2024 12:50:54 +0900 Subject: [PATCH] test: don't use `__dirname` in tailwind config (#18969) --- playground/backend-integration/tailwind.config.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/playground/backend-integration/tailwind.config.js b/playground/backend-integration/tailwind.config.js index bf91cec6521e40..7295b40ddd2b1b 100644 --- a/playground/backend-integration/tailwind.config.js +++ b/playground/backend-integration/tailwind.config.js @@ -1,5 +1,10 @@ -/** @type {import('tailwindcss').Config} */ +import { fileURLToPath } from 'node:url' +import { dirname } from 'node:path' + +const __filename = fileURLToPath(import.meta.url) +const __dirname = dirname(__filename) +/** @type {import('tailwindcss').Config} */ export default { content: [__dirname + '/frontend/**/*.{css,html,ts,js}'], theme: {