This commit is contained in:
Ryan Trinkle 2023-07-03 15:55:36 -04:00
parent e7db73be3e
commit 0117777105

View File

@ -7,16 +7,14 @@ module.exports = (nextConfig = {}) => {
); );
} }
const { dir, defaultLoaders, dev, isServer } = options; const { dir, dev, isServer } = options;
config.module.rules.push({ config.module.rules.push({
test: /\.(cabal)$/, test: /\.(cabal)$/,
include: [dir],
exclude: /dist-newstyle/,
use: [ use: [
{ {
loader: 'haskell-loader', loader: 'haskell-loader',
options: { dev: false, isServer }, options: { dev, isServer },
}, },
], ],
}); });