Skip to content

Commit

Permalink
Stop build warning about experimental: { esmExternals: 'loose' } (#…
Browse files Browse the repository at this point in the history
…40377)

Fixes #40368.

## Bug

- [x] Related issues linked using `fixes #number`
- [ ] ~~Integration tests added~~ [none applicable]
- [ ] ~~Errors have helpful link attached, see `contributing.md`~~ [no new errors]
  • Loading branch information
rubytree33 committed Sep 9, 2022
1 parent 614f0d8 commit 9ab5c01
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion packages/next/server/config-schema.ts
Expand Up @@ -253,7 +253,14 @@ const configSchema = {
type: 'boolean',
},
esmExternals: {
type: 'boolean',
oneOf: [
{
type: 'boolean',
},
{
const: 'loose',
},
] as any,
},
externalDir: {
type: 'boolean',
Expand Down

0 comments on commit 9ab5c01

Please sign in to comment.