Skip to content

Commit

Permalink
fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
shuding committed Jul 5, 2022
1 parent 7db937e commit bf17a18
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
6 changes: 3 additions & 3 deletions packages/next/build/webpack/plugins/flight-manifest-plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,9 @@ export class FlightManifestPlugin {

// Get all CSS files imported in that chunk.
const cssChunks: string[] = []
for (const chunkGroup of chunk._groups) {
if (chunkGroup.getFiles) {
const files = getEntrypointFiles(chunkGroup)
for (const entrypoint of chunk._groups) {
if (entrypoint.getFiles) {
const files = getEntrypointFiles(entrypoint)
for (const file of files) {
if (file.endsWith('.css')) {
cssChunks.push(file)
Expand Down
2 changes: 1 addition & 1 deletion packages/next/server/app-render.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ function useFlightResponse(
const match = line.match(/^M\d+:(.+)/)
if (match) {
return JSON.parse(match[1])
.chunks.filter((id: string) => id.endsWith('.css'))
.chunks.filter((chunkId: string) => chunkId.endsWith('.css'))
.map(
(file: string) =>
`<link rel="stylesheet" href="/_next/${file}">`
Expand Down
2 changes: 0 additions & 2 deletions test/e2e/app-dir/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ import path from 'path'
import cheerio from 'cheerio'
import webdriver from 'next-webdriver'

const isDev = (global as any).isNextDev

describe('views dir', () => {
if ((global as any).isNextDeploy) {
it('should skip next deploy for now', () => {})
Expand Down

0 comments on commit bf17a18

Please sign in to comment.