Skip to content

Commit 7a7eeef

Browse files
committed
refactor(config): migrate configuration files to ES module syntax
- Updated jest.config.js, postcss.config.js, and tailwind.config.js to use ES module export syntax. - Removed unused tsconfigPaths import from vite.config.ts to streamline the configuration.
1 parent fb56a12 commit 7a7eeef

4 files changed

Lines changed: 3 additions & 8 deletions

File tree

worklenz-frontend/jest.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module.exports = {
1+
export default {
22
setupFilesAfterEnv: ['<rootDir>/src/setupTests.ts'],
33
moduleNameMapper: {
44
'^@/(.*)$': '<rootDir>/src/$1',

worklenz-frontend/postcss.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module.exports = {
1+
export default {
22
plugins: {
33
tailwindcss: {},
44
autoprefixer: {},

worklenz-frontend/tailwind.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/** @type {import('tailwindcss').Config} */
2-
module.exports = {
2+
export default {
33
content: ['./src/**/*.{js,jsx,ts,tsx}'],
44
theme: {
55
extend: {},

worklenz-frontend/vite.config.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { defineConfig } from 'vite';
22
import react from '@vitejs/plugin-react';
33
import path from 'path';
4-
import tsconfigPaths from 'vite-tsconfig-paths';
54

65
export default defineConfig(({ command, mode }) => {
76
const isProduction = command === 'build';
@@ -10,10 +9,6 @@ export default defineConfig(({ command, mode }) => {
109
// **Plugins**
1110
plugins: [
1211
react(),
13-
tsconfigPaths({
14-
// Optionally, you can specify a custom tsconfig file
15-
// loose: true, // If you're using a non-standard tsconfig setup
16-
}),
1712
],
1813

1914
// **Resolve**

0 commit comments

Comments
 (0)