From e8fe65ead9d43569b1aa2baf13cf7a7257012615 Mon Sep 17 00:00:00 2001 From: pure-js <3690368+pure-js@users.noreply.github.com> Date: Mon, 18 Sep 2023 18:24:30 +0400 Subject: [PATCH] refactor: rewrite next config from cjs to esm --- next.config.js => next.config.mjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename next.config.js => next.config.mjs (57%) diff --git a/next.config.js b/next.config.mjs similarity index 57% rename from next.config.js rename to next.config.mjs index 0a5c146..9839998 100644 --- a/next.config.js +++ b/next.config.mjs @@ -1,6 +1,6 @@ /** @type {import('next').NextConfig} */ -const { createVanillaExtractPlugin } = require('@vanilla-extract/next-plugin'); +import { createVanillaExtractPlugin } from '@vanilla-extract/next-plugin'; const withVanillaExtract = createVanillaExtractPlugin(); const nextConfig = { @@ -9,4 +9,4 @@ const nextConfig = { }, }; -module.exports = withVanillaExtract(nextConfig); +export default withVanillaExtract(nextConfig);