-
Notifications
You must be signed in to change notification settings - Fork 5
fix(ENG-10904): export proper component #12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -9,64 +9,79 @@ import external from "rollup-plugin-peer-deps-external"; | |||||
| import postcss from "rollup-plugin-postcss"; | ||||||
|
|
||||||
| export default [ | ||||||
| // React Component Bundle (external React) | ||||||
| // Main React Component Bundle | ||||||
| { | ||||||
| input: "src/index.ts", | ||||||
| output: [ | ||||||
| { | ||||||
| file: "dist/react/StackOneHub.esm.js", | ||||||
| file: "dist/index.esm.js", | ||||||
| format: "esm", | ||||||
| }, | ||||||
| { | ||||||
| file: "dist/react/StackOneHub.cjs.js", | ||||||
| file: "dist/index.js", | ||||||
| format: "cjs", | ||||||
| }, | ||||||
| ], | ||||||
| external: ["react", "react-dom", "react-hook-form"], | ||||||
| plugins: [ | ||||||
| del({ targets: "dist/react/*" }), | ||||||
| external(), | ||||||
| resolve(), | ||||||
| del({ targets: "dist/*" }), | ||||||
|
||||||
| del({ targets: "dist/*" }), | |
| del({ targets: "dist/*", runOnce: true }), |
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.
[nitpick] The external dependencies array should be moved to a shared constant or configuration object to avoid duplication if other bundles need the same externals. This improves maintainability when dependencies change.