File tree Expand file tree Collapse file tree 3 files changed +1
-41
lines changed Expand file tree Collapse file tree 3 files changed +1
-41
lines changed Original file line number Diff line number Diff line change @@ -15,21 +15,10 @@ const NextServerCSSLoader: webpack.LoaderDefinitionFunction<NextServerCSSLoaderO
1515 function ( content ) {
1616 this . cacheable && this . cacheable ( )
1717 const options = this . getOptions ( )
18- let isCSSModule = options . cssModules
18+ const isCSSModule = options . cssModules
1919
2020 // Only add the checksum during development.
2121 if ( process . env . NODE_ENV !== 'production' ) {
22- // This check is only for backwards compatibility.
23- // TODO: Remove this in the next major version (next 14)
24- if ( isCSSModule === undefined ) {
25- this . emitWarning (
26- new Error (
27- "No 'cssModules' option was found for the next-flight-css-loader plugin."
28- )
29- )
30- isCSSModule =
31- this . resourcePath . match ( / \. m o d u l e \. ( c s s | s a s s | s c s s ) $ / ) !== null
32- }
3322 const checksum = crypto
3423 . createHash ( 'sha1' )
3524 . update ( typeof content === 'string' ? Buffer . from ( content ) : content )
Original file line number Diff line number Diff line change @@ -310,25 +310,6 @@ function assignDefaults(
310310 )
311311 }
312312
313- // TODO: remove after next minor (current v13.1.1)
314- if ( Array . isArray ( result . experimental ?. outputFileTracingIgnores ) ) {
315- if ( ! result . experimental ) {
316- result . experimental = { }
317- }
318- if ( ! result . experimental . outputFileTracingExcludes ) {
319- result . experimental . outputFileTracingExcludes = { }
320- }
321- if ( ! result . experimental . outputFileTracingExcludes [ '**/*' ] ) {
322- result . experimental . outputFileTracingExcludes [ '**/*' ] = [ ]
323- }
324- result . experimental . outputFileTracingExcludes [ '**/*' ] . push (
325- ...( result . experimental . outputFileTracingIgnores || [ ] )
326- )
327- Log . warn (
328- `\`outputFileTracingIgnores\` has been moved to \`experimental.outputFileTracingExcludes\`. Please update your ${ configFileName } file accordingly.`
329- )
330- }
331-
332313 if ( result . basePath !== '' ) {
333314 if ( result . basePath === '/' ) {
334315 throw new Error (
Original file line number Diff line number Diff line change @@ -148,16 +148,6 @@ export type PageConfig = {
148148 runtime ?: ServerRuntime
149149 unstable_runtimeJS ?: false
150150 unstable_JsPreload ?: false
151- /**
152- * @deprecated this config has been removed in favor of the next.config.js option
153- */
154- // TODO: remove in next minor release (current v13.1.1)
155- unstable_includeFiles ?: string [ ]
156- /**
157- * @deprecated this config has been removed in favor of the next.config.js option
158- */
159- // TODO: remove in next minor release (current v13.1.1)
160- unstable_excludeFiles ?: string [ ]
161151}
162152
163153export {
You can’t perform that action at this time.
0 commit comments