Skip to content

Commit

Permalink
let loaders automatically infer source map setting (#28204)
Browse files Browse the repository at this point in the history
These loaders automatically use the global source map setting when this option is omitted
  • Loading branch information
sokra committed Aug 17, 2021
1 parent 1b2e079 commit b594f5b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
Expand Up @@ -27,7 +27,6 @@ export function getGlobalCssLoader(
loader: require.resolve('next/dist/compiled/css-loader'),
options: {
importLoaders: 1 + preProcessors.length,
sourceMap: true,
// Next.js controls CSS Modules eligibility:
modules: false,
url: cssFileResolve,
Expand All @@ -41,7 +40,6 @@ export function getGlobalCssLoader(
loader: require.resolve('next/dist/compiled/postcss-loader'),
options: {
postcssOptions: { plugins: postCssPlugins, config: false },
sourceMap: true,
},
})

Expand Down
Expand Up @@ -28,7 +28,6 @@ export function getCssModuleLoader(
loader: require.resolve('next/dist/compiled/css-loader'),
options: {
importLoaders: 1 + preProcessors.length,
sourceMap: true,
// Use CJS mode for backwards compatibility:
esModule: false,
url: cssFileResolve,
Expand Down Expand Up @@ -57,7 +56,6 @@ export function getCssModuleLoader(
loader: require.resolve('next/dist/compiled/postcss-loader'),
options: {
postcssOptions: { plugins: postCssPlugins, config: false },
sourceMap: true,
},
})

Expand Down

0 comments on commit b594f5b

Please sign in to comment.