Skip to content

Commit

Permalink
chore: update precompiled files
Browse files Browse the repository at this point in the history
  • Loading branch information
SukkaW committed Nov 4, 2023
1 parent 66c44e6 commit 04785e7
Show file tree
Hide file tree
Showing 13 changed files with 19 additions and 86 deletions.
3 changes: 1 addition & 2 deletions packages/next/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@
"@types/text-table": "0.2.1",
"@types/ua-parser-js": "0.7.36",
"@types/uuid": "8.3.1",
"@types/webpack-sources1": "npm:@types/webpack-sources@0.1.5",
"@types/webpack-sources3": "npm:@types/webpack-sources@3.2.2",
"@types/ws": "8.2.0",
"@vercel/ncc": "0.34.0",
"@vercel/nft": "0.22.6",
Expand Down Expand Up @@ -309,7 +309,6 @@
"watchpack": "2.4.0",
"web-vitals": "3.0.0",
"webpack": "5.86.0",
"webpack-sources1": "npm:webpack-sources@1.4.3",
"webpack-sources3": "npm:webpack-sources@3.2.3",
"ws": "8.2.3",
"zod": "3.22.3"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,12 @@ export class CssMinimizerPlugin {
.process(input, postcssOptions)
.then((res) => {
if (res.map) {
return new sources.SourceMapSource(res.css, file, res.map.toJSON())
// The type between postcss' RawSourceMap and webpack-sources' RawSourceMap are incompatible
return new sources.SourceMapSource(
res.css,
file,
res.map.toJSON() as any
)
} else {
return new sources.RawSource(res.css)
}
Expand Down
2 changes: 1 addition & 1 deletion packages/next/src/compiled/debug/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/next/src/compiled/sass-loader/cjs.js

Large diffs are not rendered by default.

20 changes: 0 additions & 20 deletions packages/next/src/compiled/schema-utils2/LICENSE

This file was deleted.

3 changes: 0 additions & 3 deletions packages/next/src/compiled/schema-utils2/index.js

This file was deleted.

1 change: 0 additions & 1 deletion packages/next/src/compiled/schema-utils2/package.json

This file was deleted.

21 changes: 0 additions & 21 deletions packages/next/src/compiled/webpack-sources1/LICENSE

This file was deleted.

1 change: 0 additions & 1 deletion packages/next/src/compiled/webpack-sources1/index.js

This file was deleted.

1 change: 0 additions & 1 deletion packages/next/src/compiled/webpack-sources1/package.json

This file was deleted.

9 changes: 0 additions & 9 deletions packages/next/taskfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -2016,13 +2016,6 @@ export async function ncc_web_vitals_attribution(task, opts) {
}
// eslint-disable-next-line camelcase
externals['webpack-sources'] = 'error webpack-sources version not specified'
externals['webpack-sources1'] = 'next/dist/compiled/webpack-sources1'
export async function ncc_webpack_sources1(task, opts) {
await task
.source(relative(__dirname, require.resolve('webpack-sources1')))
.ncc({ packageName: 'webpack-sources1', externals, target: 'es5' })
.target('src/compiled/webpack-sources1')
}
// eslint-disable-next-line camelcase
externals['webpack-sources3'] = 'next/dist/compiled/webpack-sources3'
export async function ncc_webpack_sources3(task, opts) {
Expand Down Expand Up @@ -2058,7 +2051,6 @@ export async function ncc_mini_css_extract_plugin(task, opts) {
...externals,
'./index': './index.js',
'schema-utils': externals['schema-utils3'],
'webpack-sources': externals['webpack-sources1'],
},
})
.target('src/compiled/mini-css-extract-plugin')
Expand Down Expand Up @@ -2308,7 +2300,6 @@ export async function ncc(task, opts) {
'ncc_web_vitals',
'ncc_web_vitals_attribution',
'ncc_webpack_bundle5',
'ncc_webpack_sources1',
'ncc_webpack_sources3',
'ncc_ws',
'ncc_ua_parser_js',
Expand Down
3 changes: 1 addition & 2 deletions packages/next/types/webpack.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,10 @@ declare module 'mini-css-extract-plugin'
declare module 'next/dist/compiled/loader-utils3'

declare module 'next/dist/compiled/webpack/webpack' {
import type webpackSources from 'webpack-sources1'
export function init(): void
export let BasicEvaluatedExpression: any
export let GraphHelpers: any
export let sources: typeof webpackSources
export let sources: typeof import('webpack-sources3')
export let StringXor: any
export {
default as webpack,
Expand Down
32 changes: 9 additions & 23 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 04785e7

Please sign in to comment.