Stop build warning about experimental: { esmExternals: 'loose' } (#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]
This commit is contained in:
rubytree33 2022-09-08 19:35:33 -07:00 committed by GitHub
parent 614f0d8e19
commit 9ab5c012bf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -253,7 +253,14 @@ const configSchema = {
type: 'boolean',
},
esmExternals: {
type: 'boolean',
oneOf: [
{
type: 'boolean',
},
{
const: 'loose',
},
] as any,
},
externalDir: {
type: 'boolean',