Skip to content

Commit a33ebb0

Browse files
authored
test: use ESM syntax in tailwind config (#494)
1 parent bebb87b commit a33ebb0

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

playground/tailwind/tailwind.config.js

+7-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
1-
/** @type {import('tailwindcss').Config} */
1+
import { fileURLToPath } from 'node:url'
2+
import { dirname } from 'node:path'
3+
4+
const __filename = fileURLToPath(import.meta.url)
5+
const __dirname = dirname(__filename)
26

3-
module.exports = {
7+
/** @type {import('tailwindcss').Config} */
8+
export default {
49
content: [__dirname + '/**/*.vue'],
510
theme: {
611
extend: {},

0 commit comments

Comments
 (0)