Skip to content
This repository has been archived by the owner on Jan 17, 2020. It is now read-only.

Commit

Permalink
Export as module fn
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyle Holmberg committed Oct 14, 2019
1 parent 72a1430 commit 0c1a7c6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import webpack from 'webpack';
import { defineCSSLoaderConfig } from './defineCSSLoaderConfig';
import { nextConfig, nextCSSConfig } from '@types';

const nextCSS = (nextConfig: nextConfig & nextCSSConfig) => {
module.exports = (nextConfig: nextConfig & nextCSSConfig) => {
return Object.assign({}, nextConfig || {}, {
webpack(
config: webpack.Configuration,
Expand Down Expand Up @@ -52,5 +52,3 @@ const nextCSS = (nextConfig: nextConfig & nextCSSConfig) => {
},
});
};

export default nextCSS;

0 comments on commit 0c1a7c6

Please sign in to comment.