I need assistance with specifying office-ui-fabric-react as an external dependency in my TypeScript project using Webpack.
Currently, I am importing only the modules I require in my project:
import { Dialog, DialogType, DialogFooter } from 'office-ui-fabric-react/lib/Dialog';
import { PrimaryButton, DefaultButton } from 'office-ui-fabric-react/lib/Button';
Although my current external configuration in webpack.config.js works for React & ReactDOM, it doesn't seem to work for Fabric.
externals: {
"react": "React",
"react-dom": "ReactDOM",
"office-ui-fabric-react": "office-ui-fabric-react"
}
Do I need to specify office-ui-fabric-react differently when I am importing only selective modules? Any guidance would be greatly appreciated.