Unverified Commit 662fa636 authored by Pieter Bogaerts's avatar Pieter Bogaerts Committed by GitHub

fix: fixes #33314 move is-plain-object for es5 compilation (#33690)

## Bug

- [ ] Related issues linked using `fixes #33314` #33314
- [ ] Moved the `is-plain-object` file to the shared directory since it's emitted to the client and thus needs to be transpiled.

This is just my 2nd PR so if I'm missing something please let me know.
parent 33784f13
import { isPlainObject } from './is-plain-object' import { isPlainObject } from '../shared/lib/is-plain-object'
// We allow some additional attached properties for Errors // We allow some additional attached properties for Errors
export interface NextError extends Error { export interface NextError extends Error {
......
import { isPlainObject, getObjectClassLabel } from './is-plain-object' import {
isPlainObject,
getObjectClassLabel,
} from '../shared/lib/is-plain-object'
const regexpPlainIdentifier = /^[A-Za-z_$][A-Za-z0-9_$]*$/ const regexpPlainIdentifier = /^[A-Za-z_$][A-Za-z0-9_$]*$/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment