From 2de3713769c384dc4c8ab5117083aae961521fb1 Mon Sep 17 00:00:00 2001 From: Joel Keyser Date: Tue, 30 May 2023 09:30:31 -0500 Subject: [PATCH] chore: remove unnecessary custom babel this enables use of next's SWC, which is supposed to make something faster --- web/.babelrc | 5 ----- web/next.config.js | 3 +++ 2 files changed, 3 insertions(+), 5 deletions(-) delete mode 100644 web/.babelrc diff --git a/web/.babelrc b/web/.babelrc deleted file mode 100644 index 9a1519d0..00000000 --- a/web/.babelrc +++ /dev/null @@ -1,5 +0,0 @@ -// needed to extract .babelrc from next.config.js because storybook wasn't using next's babel config -{ - "presets": ["next/babel"], - "plugins": ["@emotion"] // mainly to enable https://emotion.sh/docs/styled#targeting-another-emotion-component -} diff --git a/web/next.config.js b/web/next.config.js index a1f4f587..30326c22 100644 --- a/web/next.config.js +++ b/web/next.config.js @@ -1,5 +1,8 @@ /** @type {import('next').NextConfig} */ const nextConfig = { + compiler: { + emotion: true, + }, pageExtensions: ["page.tsx", "page.ts", "page.jsx", "page.js"], reactStrictMode: true, swcMinify: true,