Skip to content

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

@SharePickle

Description

@SharePickle

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions