Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conflict with Svelte Material #14

Closed
ioannist opened this issue Mar 18, 2020 · 2 comments
Closed

Conflict with Svelte Material #14

ioannist opened this issue Mar 18, 2020 · 2 comments

Comments

@ioannist
Copy link

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

FA should use another name to avoid pain...

@wtcross
Copy link

wtcross commented Apr 1, 2020

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
Copy link
Owner

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/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants