-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(themes): optimization of bundle size barrel file (#4230)
* feat(themes): optimization of bundle size barrel file * fix: feedback ac for direct import if three shaking is not working
- Loading branch information
1 parent
4e2e5b5
commit b55a6e6
Showing
16 changed files
with
57 additions
and
45 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@ultraviolet/themes": patch | ||
--- | ||
|
||
Improve bundle size by removing barrel file for exporting themes |
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
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
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,5 +1,2 @@ | ||
export { | ||
consoleLightTheme, | ||
consoleDarkTheme, | ||
consoleDarkerTheme, | ||
} from './themes' | ||
// eslint-disable-next-line no-restricted-syntax | ||
export * from './themes' |
File renamed without changes.
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import deepmerge from 'deepmerge' | ||
import { deprecatedDarkTokens } from '../deprecated/dark' | ||
import { darkTheme } from './__generated__' | ||
|
||
export const consoleDarkTheme: typeof darkTheme & typeof deprecatedDarkTokens = | ||
deepmerge(darkTheme, deprecatedDarkTokens) |
File renamed without changes.
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import deepmerge from 'deepmerge' | ||
import { deprecatedDarkerTokens } from '../deprecated/darker' | ||
import { darkerTheme } from './__generated__' | ||
|
||
export const consoleDarkerTheme: typeof darkerTheme & | ||
typeof deprecatedDarkerTokens = deepmerge(darkerTheme, deprecatedDarkerTokens) |
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
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
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
This file was deleted.
Oops, something went wrong.
File renamed without changes.
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import deepmerge from 'deepmerge' | ||
import { deprecatedLightTokens } from '../deprecated/light' | ||
import { lightTheme } from './__generated__' | ||
|
||
export const consoleLightTheme: typeof lightTheme & | ||
typeof deprecatedLightTokens = deepmerge(lightTheme, deprecatedLightTokens) |
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,5 +1,3 @@ | ||
export { | ||
consoleLightTheme, | ||
consoleDarkTheme, | ||
consoleDarkerTheme, | ||
} from './console' | ||
export { consoleLightTheme } from './console/light' | ||
export { consoleDarkTheme } from './console/dark' | ||
export { consoleDarkerTheme } from './console/darker' |
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