Skip to content

Commit

Permalink
chore: remove babel, use swc
Browse files Browse the repository at this point in the history
  • Loading branch information
awinogradov committed Sep 3, 2023
1 parent 07801a8 commit 38f6b1b
Show file tree
Hide file tree
Showing 5 changed files with 581 additions and 324 deletions.
13 changes: 0 additions & 13 deletions .babelrc

This file was deleted.

10 changes: 5 additions & 5 deletions jest.config.ts → jest.config.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
/*
* For a detailed explanation regarding each configuration property and type check, visit:
* https://jestjs.io/docs/configuration
*/
/** @type {import('ts-jest').JestConfigWithTsJest} */
module.exports = {
transform: {
'^.+\\.(t|j)sx?$': '@swc/jest',
},

export default {
// Automatically clear mock calls, instances and results before every test
clearMocks: true,

Expand Down
5 changes: 5 additions & 0 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ const withMDX = require('@next/mdx')({

/** @type {import('next').NextConfig} */
const nextConfig = {
compiler: {
styledComponents: {
ssr: true,
},
},
pageExtensions: ['ts', 'tsx', 'js', 'jsx', 'md', 'mdx'],
reactStrictMode: true,
swcMinify: true,
Expand Down
Loading

0 comments on commit 38f6b1b

Please sign in to comment.