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.
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
module.exports = {
|
export default {
|
||||||
setupFilesAfterEnv: ['<rootDir>/src/setupTests.ts'],
|
setupFilesAfterEnv: ['<rootDir>/src/setupTests.ts'],
|
||||||
moduleNameMapper: {
|
moduleNameMapper: {
|
||||||
'^@/(.*)$': '<rootDir>/src/$1',
|
'^@/(.*)$': '<rootDir>/src/$1',
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
module.exports = {
|
export default {
|
||||||
plugins: {
|
plugins: {
|
||||||
tailwindcss: {},
|
tailwindcss: {},
|
||||||
autoprefixer: {},
|
autoprefixer: {},
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/** @type {import('tailwindcss').Config} */
|
/** @type {import('tailwindcss').Config} */
|
||||||
module.exports = {
|
export default {
|
||||||
content: ['./src/**/*.{js,jsx,ts,tsx}'],
|
content: ['./src/**/*.{js,jsx,ts,tsx}'],
|
||||||
theme: {
|
theme: {
|
||||||
extend: {},
|
extend: {},
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
import { defineConfig } from 'vite';
|
import { defineConfig } from 'vite';
|
||||||
import react from '@vitejs/plugin-react';
|
import react from '@vitejs/plugin-react';
|
||||||
import path from 'path';
|
import path from 'path';
|
||||||
import tsconfigPaths from 'vite-tsconfig-paths';
|
|
||||||
|
|
||||||
export default defineConfig(({ command, mode }) => {
|
export default defineConfig(({ command, mode }) => {
|
||||||
const isProduction = command === 'build';
|
const isProduction = command === 'build';
|
||||||
@@ -10,10 +9,6 @@ export default defineConfig(({ command, mode }) => {
|
|||||||
// **Plugins**
|
// **Plugins**
|
||||||
plugins: [
|
plugins: [
|
||||||
react(),
|
react(),
|
||||||
tsconfigPaths({
|
|
||||||
// Optionally, you can specify a custom tsconfig file
|
|
||||||
// loose: true, // If you're using a non-standard tsconfig setup
|
|
||||||
}),
|
|
||||||
],
|
],
|
||||||
|
|
||||||
// **Resolve**
|
// **Resolve**
|
||||||
|
|||||||
Reference in New Issue
Block a user