Skip to content

Commit

Permalink
docs: use named import for javascript "direct import" fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
ncoden committed Sep 9, 2018
1 parent 425009c commit c7a0b9c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/pages/javascript.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ Sadly, the "static analysis" promised by these bundlers to detect unused code in
```js
// /!\ Don't use this if tree shaking works with standard named imports.
// Only Dropdown and DropdownMenu will be included in your application.
import Dropdown from 'foundation-sites/js/foundation.dropdown';
import DropdownMenu from 'foundation-sites/js/foundation.dropdownMenu';
import { Dropdown } from 'foundation-sites/js/foundation.dropdown';
import { DropdownMenu } from 'foundation-sites/js/foundation.dropdownMenu';
```

---
Expand Down

0 comments on commit c7a0b9c

Please # to comment.