"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "getClientStyleLoader", { enumerable: true, get: function() { return getClientStyleLoader; } }); function getClientStyleLoader({ hasAppDir, isAppDir, isDevelopment, assetPrefix }) { const shouldEnableApp = typeof isAppDir === "boolean" ? isAppDir : hasAppDir; // Keep next-style-loader for development mode in `pages/` if (isDevelopment && !shouldEnableApp) { return { loader: "next-style-loader", options: { insert: function(element) { // By default, style-loader injects CSS into the bottom // of . This causes ordering problems between dev // and prod. To fix this, we render a