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

Explicitly export icons from main.ts #33

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

danimoh
Copy link
Member

@danimoh danimoh commented May 10, 2019

For now just keeping this here for reference.

The idea was that now different builds trageting different apps can chose which icons to include in main.ts instead of in Icons.vue.
By not affecting the exports in Icons.vue, the build process (probably the linter only) would not complain
about missing exports anymore when checking files in the folder structure that are not actually part of the build but still checked for some reason.

However, unfortunately the icons that were commented out in main.ts still ended up in the bundle.
I experimented with setting sideEffects false on vue-components and nimiq-style and investigated whether the icons are bundled due to the call of the IconBase mixin.
However, the icons are bundled regardless of the sideEffects flag and omitting the IconBase mixin.

Note that this, fix should not be necessary anymore once we actually work on #8.

Now different builds trageting different apps can chose which icons to
include in main.ts instead of in Icons.vue. By not affecting the exports
in Icons.vue, the build process (probably the linter only) will not complain
about missing exports anymore when checking files in the folder structure
that are not actually part of the build but still checked for some reason.
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

Successfully merging this pull request may close these issues.

1 participant