Skip to content

Commit d809e6d

Browse files
committed
(frontend) move to ESM modules to satisfy vite
1 parent 82bb83e commit d809e6d

File tree

4 files changed

+170
-11
lines changed

4 files changed

+170
-11
lines changed

frontend/package-lock.json

Lines changed: 159 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

frontend/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"description": "",
55
"private": true,
66
"license": "AGPL-3.0-only",
7+
"type": "module",
78
"scripts": {
89
"wasm": "wasm-pack build ./renderer --target bundler",
910
"dev": "vite",
@@ -14,7 +15,7 @@
1415
"@types/dompurify": "^3.0.5",
1516
"@types/feather-icons": "^4.29.4",
1617
"autoprefixer": "^10.4.16",
17-
"postcss": "^8.4.31",
18+
"postcss": "^8.4.32",
1819
"tailwindcss": "^3.4.0",
1920
"typescript": "^5.3.3",
2021
"vite": "^5.0.10",
Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
1-
module.exports = {
1+
/** @type {import('postcss-load-config').Config} */
2+
const config = {
23
purge: ['./index.html', './src/**/*.{vue,js,ts,jsx,tsx}'],
34
plugins: {
45
tailwindcss: {},
56
autoprefixer: {},
67
},
7-
};
8+
}
9+
10+
module.exports = config

frontend/tailwind.config.js renamed to frontend/tailwind.config.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
/** @type {import('tailwindcss').Config} */
2-
module.exports = {
1+
import type { Config } from 'tailwindcss'
2+
3+
export default {
34
content: [
45
'./index.html',
56
'./src/**/*.{js,ts,jsx,tsx,css,md,mdx,html,json,scss}',
@@ -26,4 +27,4 @@ module.exports = {
2627
},
2728
],
2829
},
29-
};
30+
} satisfies Config

0 commit comments

Comments
 (0)