Merge pull request #171 from Worklenz/imp/task-list-performance-fixes

refactor(config): migrate configuration files to ES module syntax
This commit is contained in:
Chamika J
2025-06-21 19:06:49 +05:30
committed by GitHub
4 changed files with 3 additions and 8 deletions

View File

@@ -1,4 +1,4 @@
module.exports = {
export default {
setupFilesAfterEnv: ['<rootDir>/src/setupTests.ts'],
moduleNameMapper: {
'^@/(.*)$': '<rootDir>/src/$1',

View File

@@ -1,4 +1,4 @@
module.exports = {
export default {
plugins: {
tailwindcss: {},
autoprefixer: {},

View File

@@ -1,5 +1,5 @@
/** @type {import('tailwindcss').Config} */
module.exports = {
export default {
content: ['./src/**/*.{js,jsx,ts,tsx}'],
theme: {
extend: {},

View File

@@ -1,7 +1,6 @@
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
import path from 'path';
import tsconfigPaths from 'vite-tsconfig-paths';
export default defineConfig(({ command, mode }) => {
const isProduction = command === 'build';
@@ -10,10 +9,6 @@ export default defineConfig(({ command, mode }) => {
// **Plugins**
plugins: [
react(),
tsconfigPaths({
// Optionally, you can specify a custom tsconfig file
// loose: true, // If you're using a non-standard tsconfig setup
}),
],
// **Resolve**