Skip to content

Commit

Permalink
Add prisma to the external package list (#42323)
Browse files Browse the repository at this point in the history
It uses __dirname in eval and similar things, and can't be bundled
correctly. Hence we are adding it to the list of external packages.

## Bug

- [ ] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Errors have a helpful link attached, see `contributing.md`

## Feature

- [ ] Implements an existing feature request or RFC. Make sure the
feature request has been accepted for implementation before opening a
PR.
- [ ] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Documentation added
- [ ] Telemetry added. In case of a feature if it's used or not.
- [ ] Errors have a helpful link attached, see `contributing.md`

## Documentation / Examples

- [ ] Make sure the linting passes by running `pnpm build && pnpm lint`
- [ ] The "examples guidelines" are followed from [our contributing
doc](https://github.com/vercel/next.js/blob/canary/contributing/examples/adding-examples.md)


Co-authored-by: JJ Kasper <jj@jjsweb.site>
  • Loading branch information
shuding and ijjk committed Nov 2, 2022
1 parent 503fc85 commit eaeb131
Showing 1 changed file with 15 additions and 14 deletions.
29 changes: 15 additions & 14 deletions packages/next/lib/server-external-packages.ts
@@ -1,22 +1,23 @@
// A list of popular packages that cannot be bundled on the server.
export const EXTERNAL_PACKAGES = [
'eslint',
'typescript',
'prettier',
'postcss',
'jest',
'autoprefixer',
'tailwindcss',
'sharp',
'express',
'ts-node',
'webpack',
'cypress',
'@sentry/nextjs',
'@sentry/node',
'autoprefixer',
'cypress',
'eslint',
'express',
'jest',
'mongodb',
'next-mdx-remote',
'next-seo',
'postcss',
'prettier',
'prisma',
'rimraf',
'next-mdx-remote',
'sharp',
'sqlite3',
'mongodb',
'tailwindcss',
'ts-node',
'typescript',
'webpack',
]

0 comments on commit eaeb131

Please sign in to comment.