Skip to content

Commit

Permalink
refactor: rewrite next config from cjs to esm
Browse files Browse the repository at this point in the history
  • Loading branch information
pure-js committed Sep 18, 2023
1 parent 20e32ac commit e8fe65e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions next.config.js → next.config.mjs
Original file line number Diff line number Diff line change
@@ -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 = {
Expand All @@ -9,4 +9,4 @@ const nextConfig = {
},
};

module.exports = withVanillaExtract(nextConfig);
export default withVanillaExtract(nextConfig);

0 comments on commit e8fe65e

Please sign in to comment.