Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
remove obsolete warnings
  • Loading branch information
alexdln committed Jan 21, 2024
commit 243e87a78f87a2de9d836d6e1101347850294ef4
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,10 @@ const NextServerCSSLoader: webpack.LoaderDefinitionFunction<NextServerCSSLoaderO
function (content) {
this.cacheable && this.cacheable()
const options = this.getOptions()
let isCSSModule = options.cssModules
const isCSSModule = options.cssModules

// Only add the checksum during development.
if (process.env.NODE_ENV !== 'production') {
// This check is only for backwards compatibility.
// TODO: Remove this in the next major version (next 14)
if (isCSSModule === undefined) {
this.emitWarning(
new Error(
"No 'cssModules' option was found for the next-flight-css-loader plugin."
)
)
isCSSModule =
this.resourcePath.match(/\.module\.(css|sass|scss)$/) !== null
}
const checksum = crypto
.createHash('sha1')
.update(typeof content === 'string' ? Buffer.from(content) : content)
Expand Down
19 changes: 0 additions & 19 deletions packages/next/src/server/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -310,25 +310,6 @@ function assignDefaults(
)
}

// TODO: remove after next minor (current v13.1.1)
if (Array.isArray(result.experimental?.outputFileTracingIgnores)) {
if (!result.experimental) {
result.experimental = {}
}
if (!result.experimental.outputFileTracingExcludes) {
result.experimental.outputFileTracingExcludes = {}
}
if (!result.experimental.outputFileTracingExcludes['**/*']) {
result.experimental.outputFileTracingExcludes['**/*'] = []
}
result.experimental.outputFileTracingExcludes['**/*'].push(
...(result.experimental.outputFileTracingIgnores || [])
)
Log.warn(
`\`outputFileTracingIgnores\` has been moved to \`experimental.outputFileTracingExcludes\`. Please update your ${configFileName} file accordingly.`
)
}

if (result.basePath !== '') {
if (result.basePath === '/') {
throw new Error(
Expand Down
10 changes: 0 additions & 10 deletions packages/next/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,16 +148,6 @@ export type PageConfig = {
runtime?: ServerRuntime
unstable_runtimeJS?: false
unstable_JsPreload?: false
/**
* @deprecated this config has been removed in favor of the next.config.js option
*/
// TODO: remove in next minor release (current v13.1.1)
unstable_includeFiles?: string[]
/**
* @deprecated this config has been removed in favor of the next.config.js option
*/
// TODO: remove in next minor release (current v13.1.1)
unstable_excludeFiles?: string[]
}

export {
Expand Down