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,