diff --git a/src/index.js b/src/index.js index 3aba14d..7314a91 100644 --- a/src/index.js +++ b/src/index.js @@ -7,16 +7,14 @@ module.exports = (nextConfig = {}) => { ); } - const { dir, defaultLoaders, dev, isServer } = options; + const { dir, dev, isServer } = options; config.module.rules.push({ test: /\.(cabal)$/, - include: [dir], - exclude: /dist-newstyle/, use: [ { loader: 'haskell-loader', - options: { dev: false, isServer }, + options: { dev, isServer }, }, ], });