-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
improve react-ui-lite bundle config, add sideEffects false
- Loading branch information
1 parent
daf8208
commit f81be9a
Showing
5 changed files
with
29 additions
and
41 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 |
---|---|---|
|
@@ -6,6 +6,7 @@ | |
"files": [ | ||
"dist/" | ||
], | ||
"sideEffects": false, | ||
"type": "module", | ||
"exports": { | ||
".": "./dist/index.js" | ||
|
26 changes: 4 additions & 22 deletions
26
packages/react-ui-lite/components/VulcanComponents/liteVulcanComponents/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,22 +1,4 @@ | ||
export { liteFormComponents } from "./formComponents"; | ||
export { liteDatatableComponents } from "./datatableComponents"; | ||
export { liteCellComponents } from "./cellComponents"; | ||
export { liteCoreComponents } from "./coreComponents"; | ||
|
||
import { liteFormComponents } from "./formComponents"; | ||
import { liteDatatableComponents } from "./datatableComponents"; | ||
import { liteCellComponents } from "./cellComponents"; | ||
import { liteCoreComponents } from "./coreComponents"; | ||
|
||
/** | ||
* @deprecated 0.6.1 | ||
* Use each type of components instead of loading all of them at once | ||
* This will avoid loading form and datatable components, that are very heavy, on every page | ||
* even when they are anot actually used | ||
*/ | ||
export const liteVulcanComponents = { | ||
...liteDatatableComponents, | ||
...liteCellComponents, | ||
...liteCoreComponents, | ||
...liteFormComponents, | ||
}; | ||
export { liteFormComponents } from "./formComponents.js"; | ||
export { liteDatatableComponents } from "./datatableComponents.js"; | ||
export { liteCellComponents } from "./cellComponents.js"; | ||
export { liteCoreComponents } from "./coreComponents.js"; |
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 |
---|---|---|
|
@@ -6,6 +6,7 @@ | |
"files": [ | ||
"dist/" | ||
], | ||
"sideEffects": false, | ||
"type": "module", | ||
"exports": { | ||
".": "./dist/index.js" | ||
|
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 |
---|---|---|
|
@@ -6,6 +6,7 @@ | |
"files": [ | ||
"dist/" | ||
], | ||
"sideEffects": false, | ||
"type": "module", | ||
"exports": { | ||
".": "./dist/index.js", | ||
|
f81be9a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
vulcan-npm – ./
vulcan-npm.vercel.app
vulcan-npm-git-main-vulcan.vercel.app
vulcan-npm-vulcan.vercel.app
f81be9a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
vulcan-docs – ./docusaurus
vulcan-docs-git-main-vulcan.vercel.app
vulcan-docs.vercel.app
vulcan-docs-vulcan.vercel.app