Skip to content

Commit

Permalink
fix: correct nanoid import file
Browse files Browse the repository at this point in the history
  • Loading branch information
Timer committed Dec 29, 2020
1 parent a6aa11a commit 8894151
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/next/build/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import Worker from 'jest-worker'
import devalue from 'next/dist/compiled/devalue'
import escapeStringRegexp from 'next/dist/compiled/escape-string-regexp'
import findUp from 'next/dist/compiled/find-up'
import { nanoid } from 'next/dist/compiled/nanoid/index.js'
import { nanoid } from 'next/dist/compiled/nanoid/index.cjs'
import { pathToRegexp } from 'next/dist/compiled/path-to-regexp'
import path from 'path'
import formatWebpackMessages from '../client/dev/error-overlay/format-webpack-messages'
Expand Down
2 changes: 1 addition & 1 deletion packages/next/types/misc.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ declare module 'next/dist/compiled/lru-cache' {
import m from 'lru-cache'
export = m
}
declare module 'next/dist/compiled/nanoid/index.js' {
declare module 'next/dist/compiled/nanoid/index.cjs' {
import m from 'nanoid'
export = m
}
Expand Down

0 comments on commit 8894151

Please sign in to comment.