Update UPGRADING.md (#13010)

Add missing `import dom` and `dom.watch()`
This commit is contained in:
Jonathan Beliën 2018-05-03 13:37:17 +02:00 committed by Rob Madole
parent 28d2f62b6c
commit 6560d892d6

View File

@ -72,12 +72,14 @@ import fontaweome.library.add(solid, faTwitter)
New way:
```javascript
import { library } from '@fontawesome/fontawesome-svg-core'
import { library, dom } from '@fontawesome/fontawesome-svg-core'
import { fas } from '@fortawesome/free-solid-svg-icons'
import { faTwitter } from '@fortawesome/free-brands-svg-icons'
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome'
import library.add(fas, faTwitter)
dom.watch()
```
This is also a valid way to import icons that works if your tool does not support tree shaking: