I'm new to PCF/Webpack so I hope I'm missing something really simple.
I'm building a control which is a wrapper around office-ui fabric control (rating).
All works fine but even if I'm doing production build the resulting bundle is over 1mb (in development mode it's >4mb).
Despite the fact that I'm only importing few modules from office-ui fabric:
import {Rating, RatingSize} from 'office-ui-fabric-react'
import { initializeIcons } from 'office-ui-fabric-react/lib/Icons';
it seems to be bundling all possible modules:
any advice on what might be wrong?