Closed ssehacker closed 2 years ago
if (ctx.experimental.appDir) {
fns.push(
loader({
oneOf: [
markRemovable({
// A global CSS import always has side effects. Webpack will tree
// shake the CSS without this option if the issuer claims to have
// no side-effects.
// See https://github.com/webpack/webpack/issues/6571
sideEffects: true,
test: regexCssGlobal,
use: [
require.resolve('../../../loaders/next-flight-css-dev-loader'),
...getGlobalCssLoader(ctx, lazyPostCSSInitializer),
],
}),
],
})
)
https://github.com/martpie/next-transpile-modules/blob/05437e6467893538c5f527555c65c686e411603d/src/next-transpile-modules.js#L225