You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I used the below config and create a bundle and imported it in a react app as below reactOutputTarget({
componentCorePackage: 'fw-design-core',
proxiesFile: '../react/src/components.ts',
//loaderDir: 'dist/loader',
includeDefineCustomElements: true,
}),
**import { FwButton } from "fw-design-react";
{/* /} console.log("event triggerd")} >Primary button
);*
The webcomponent lib holds 2 components my-component and fw-button.
Am using only fw-button in the code. When I run npm run build (create-react-app).
I am seeing many chunk files generated and one of the chunk file related to "my-component" though this is not being used .
Expected Behavior
I assume ideally with tree shaking the above chunk file should not be generated since "my-component" is not being used.
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of the output targets, please create a new issue and ensure the template is fully filled out.
Current Behavior
Hi Team,
I am trying to use framework binding with react.
I used the below config and create a bundle and imported it in a react app as below
reactOutputTarget({
componentCorePackage: 'fw-design-core',
proxiesFile: '../react/src/components.ts',
//loaderDir: 'dist/loader',
includeDefineCustomElements: true,
}),
**import { FwButton } from "fw-design-react";
{/* /} console.log("event triggerd")} >Primary button
);*
The webcomponent lib holds 2 components my-component and fw-button.
Am using only fw-button in the code. When I run npm run build (create-react-app).
I am seeing many chunk files generated and one of the chunk file related to "my-component" though this is not being used .
Expected Behavior
I assume ideally with tree shaking the above chunk file should not be generated since "my-component" is not being used.
Can you please help with this ?
Code Reproduction URL
https://github.com/Arvind6353/react-wc/blob/master/src/App.js#L4
The text was updated successfully, but these errors were encountered: