Skip to content
This repository was archived by the owner on Oct 30, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions build/babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ module.exports = {
[
"@babel/preset-react",
{
// runtime: "automatic",
runtime: "automatic",
useBuiltIns: true,
development: !IS_PRODUCTION
}
Expand All @@ -49,7 +49,6 @@ module.exports = {
}
],
"babel-plugin-jsx-control-statements",
"babel-plugin-react-require",
IS_PRODUCTION && "babel-plugin-jsx-remove-data-test-id",
!IS_TEST && [
"babel-plugin-named-asset-import",
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,6 @@
"babel-plugin-jsx-control-statements": "4.1.0",
"babel-plugin-jsx-remove-data-test-id": "2.1.3",
"babel-plugin-named-asset-import": "0.3.7",
"babel-plugin-react-require": "3.1.3",
"browserslist": "4.14.7",
"chalk": "4.1.0",
"chromatic": "5.4.0",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { ElementType, HTMLAttributes, ReactElement, RefAttributes, cloneElement } from "react";
import { isString } from "lodash";
import { isValidElementType } from "react-is";
import { mergeProps } from "./mergeProps";
import { normalizeSize } from "./normalizeSize";
import React, { ElementType, HTMLAttributes, ReactElement, RefAttributes, cloneElement } from "react";
import type { SizeAdapter } from "./createSizeAdapter";

export function augmentElement(element: ReactElement & RefAttributes<any>, newProps: Record<string, any>) {
Expand Down
2 changes: 1 addition & 1 deletion packages/react-components/src/shared/src/slots.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Children, ComponentType, ReactElement, ReactNode, useMemo } from "react";
import { augmentElement, resolveChildren } from "..";
import { isNil, isString, isUndefined } from "lodash";
import React, { Children, ComponentType, ReactElement, ReactNode, useMemo } from "react";

const SLOT_KEY = "__slot__";

Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
// "strict": true, // Enabling --strict enables --noImplicitAny, --noImplicitThis, --alwaysStrict, --strictBindCallApply, --strictNullChecks, --strictFunctionTypes and --strictPropertyInitialization.

// the bare minimum for our project
"jsx": "react",
"jsx": "react-jsx",
"outDir": "./dist",
"allowJs": true,
"esModuleInterop": true,
Expand Down
Loading