alphapeter / fa-svelte

Font Awesome 5 for svelte.js
MIT License
71 stars 3 forks source link

Conflict with Svelte Material #14

Closed ioannist closed 4 years ago

ioannist commented 4 years ago

Svelte material requires import Icon from "@smui/textfield/icon/index";

FA should use another name to avoid pain...

wtcross commented 4 years ago

This does not feel painful to me: import Icon as MIcon from "@smui/textfield/icon";

Why should @alphapeter break his API so you can avoid typing a single letter?

alphapeter commented 4 years ago

You can choose any variable name you want when there's no "named export".

import FaSvelte from "fa-svelte"

or

import Foo from "fa-svelte"

The Icon variable naming is an example.

Check the webpack documentation at https://webpack.js.org/api/module-methods/