Skip to content
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

office-ui-fabric-react bundle included in resulting package #31

Open
SharePickle opened this issue Sep 13, 2018 · 0 comments
Open

office-ui-fabric-react bundle included in resulting package #31

SharePickle opened this issue Sep 13, 2018 · 0 comments

Comments

@SharePickle
Copy link

Hello, with bundle analyzer noticed that fabric ui bundle is included in my resulting package.
Im using @microsoft/office-ui-fabric-react-bundle instead of office-ui-fabric-react to avoid fabric ui being added to every webpart package.
Anyway, even without SPFX's version of Fabric UI it's still included in the package.
image

Here's code which imports sp-client-custom-fields

import { PropertyFieldPicturePicker } from 'sp-client-custom-fields/lib/PropertyFieldPicturePicker';
import { PropertyFieldColorPicker } from 'sp-client-custom-fields/lib/PropertyFieldColorPicker';

As you can see on the picture it's including almost whole Fabric UI.
Is there any way to make it an external library?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant