Skip to content

Commit

Permalink
πŸ“¦ chore: μ†ŒμŠ€λ§΅μ΄ ν”„λ‘œλ•μ…˜ ν™˜κ²½μ—μ„œ μ§€μ›Œμ§€λ„λ‘ μ„€μ •
Browse files Browse the repository at this point in the history
  • Loading branch information
bbearcookie committed Apr 25, 2024
1 parent 7dc27d7 commit 2a54487
Showing 1 changed file with 31 additions and 23 deletions.
54 changes: 31 additions & 23 deletions vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,34 +1,42 @@
/// <reference types="vitest" />
import { sentryVitePlugin } from '@sentry/vite-plugin';
import { defineConfig } from 'vite';
import { defineConfig, loadEnv } from 'vite';
import react from '@vitejs/plugin-react';
import path from 'path';

// https://vitejs.dev/config/
export default defineConfig({
plugins: [
react({
jsxImportSource: '@emotion/react',
}),
sentryVitePlugin({
org: 'oceanletter-y1',
project: 'oceanletter-react',
}),
],
export default defineConfig(({ mode }) => {
const env = loadEnv(mode, process.cwd(), '');

resolve: {
alias: {
'@': path.resolve(__dirname, './src'),
return {
resolve: {
alias: {
'@': path.resolve(__dirname, './src'),
},
},
},

test: {
globals: true,
environment: 'jsdom',
setupFiles: ['./src/setupTests.ts'],
},
test: {
globals: true,
environment: 'jsdom',
setupFiles: ['./src/setupTests.ts'],
},

build: {
sourcemap: true,
},

build: {
sourcemap: true,
},
plugins: [
react({
jsxImportSource: '@emotion/react',
}),
sentryVitePlugin({
org: env.SENTRY_ORG,
project: env.SENTRY_PROJECT,
authToken: env.SENTRY_AUTH_TOKEN,
sourcemaps: {
filesToDeleteAfterUpload: ['**/*.js.map'],
},
}),
],
};
});

0 comments on commit 2a54487

Please sign in to comment.