-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: ensure package is tree-shakeable (#30776)
- Loading branch information
Showing
7 changed files
with
29 additions
and
28 deletions.
There are no files selected for viewing
15 changes: 14 additions & 1 deletion
15
packages/react-components/react-platform-adapter/.eslintrc.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,17 @@ | ||
{ | ||
"extends": ["plugin:@fluentui/eslint-plugin/react"], | ||
"root": true | ||
"root": true, | ||
"overrides": [ | ||
{ | ||
"files": "**/*.ts", | ||
"rules": { | ||
"@rnx-kit/no-export-all": [ | ||
"error", | ||
{ | ||
"expand": "all" | ||
} | ||
] | ||
} | ||
} | ||
] | ||
} |
2 changes: 0 additions & 2 deletions
2
packages/react-components/react-platform-adapter/src/XPlatProvider/index.ts
This file was deleted.
Oops, something went wrong.
24 changes: 12 additions & 12 deletions
24
packages/react-components/react-platform-adapter/src/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
export { XPlatProvider, suppressCssVariableInsertion, type XPlatProviderProps } from './XPlatProvider'; | ||
export { jsxPlatformAdapter } from './jsx'; | ||
export { | ||
getStylesFromClassName, | ||
makeStyles, | ||
makeStylesCore, | ||
makeResetStyles, | ||
mergeClasses, | ||
shorthands, | ||
TextDirectionProvider, | ||
useRenderer_unstable, | ||
} from './styling/index'; | ||
export { XPlatProvider, suppressCssVariableInsertion } from './XPlatProvider/XPlatProvider'; | ||
export type { XPlatProviderProps } from './XPlatProvider/XPlatProvider.types'; | ||
export { jsxPlatformAdapter } from './jsx/jsxPlatformAdapter'; | ||
export { getStylesFromClassName } from './styling/classNameMap'; | ||
export { makeResetStyles } from './styling/makeResetStyles'; | ||
export { makeStyles } from './styling/makeStyles'; | ||
export { mergeClasses } from './styling/mergeClasses'; | ||
export { shorthands } from './styling/shorthands'; | ||
|
||
// re-export some griffel types to have fluent use the griffel adapter instead of griffel directly | ||
export { useRenderer_unstable, TextDirectionProvider } from '@griffel/react'; | ||
export { makeStyles as makeStylesCore } from '@griffel/core'; |
1 change: 0 additions & 1 deletion
1
packages/react-components/react-platform-adapter/src/jsx/index.ts
This file was deleted.
Oops, something went wrong.
5 changes: 2 additions & 3 deletions
5
packages/react-components/react-platform-adapter/src/jsx/jsxPlatformAdapter.native.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/react-components/react-platform-adapter/src/jsx/jsxPlatformAdapter.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 0 additions & 8 deletions
8
packages/react-components/react-platform-adapter/src/styling/index.ts
This file was deleted.
Oops, something went wrong.