From 020e28ad5a58b7e5246d46531081af1aa49fc27c Mon Sep 17 00:00:00 2001 From: Shariq Ansari Date: Mon, 19 May 2025 15:55:07 +0530 Subject: [PATCH] fix: update package.json and config files to use ES module syntax (cherry picked from commit 9aab0e74174405ddbfa3a375e5ff332870bbf977) --- frontend/package.json | 1 + frontend/postcss.config.js | 2 +- frontend/tailwind.config.js | 6 ++++-- package.json | 1 + 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/frontend/package.json b/frontend/package.json index 9c3d841f..8fc8527b 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -2,6 +2,7 @@ "name": "crm-ui", "private": true, "version": "0.0.0", + "type": "module", "scripts": { "dev": "vite", "build": "vite build --base=/assets/crm/frontend/ && yarn copy-html-entry", diff --git a/frontend/postcss.config.js b/frontend/postcss.config.js index 33ad091d..2e7af2b7 100644 --- a/frontend/postcss.config.js +++ b/frontend/postcss.config.js @@ -1,4 +1,4 @@ -module.exports = { +export default { plugins: { tailwindcss: {}, autoprefixer: {}, diff --git a/frontend/tailwind.config.js b/frontend/tailwind.config.js index cdd9cc9a..85306337 100644 --- a/frontend/tailwind.config.js +++ b/frontend/tailwind.config.js @@ -1,5 +1,7 @@ -module.exports = { - presets: [require('frappe-ui/src/tailwind/preset')], +import frappeUIPreset from 'frappe-ui/src/tailwind/preset' + +export default { + presets: [frappeUIPreset], content: [ './index.html', './src/**/*.{vue,js,ts,jsx,tsx}', diff --git a/package.json b/package.json index 70ac19de..423a4b8f 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,6 @@ { "private": true, + "type": "module", "workspaces": ["frontend", "frappe-ui"], "scripts": { "postinstall": "cd frontend && yarn install",