question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

export types in package.json // Seperate project for bootstrap-icons

See original GitHub issue

Is your feature request related to a problem? Please describe. I would like to create a new project bootstrap-vue-3-icons as suggested in #255, however the icons use types from bootstrap-vue-3.

Describe the solution you would like I would prefer not to duplicate these types and instead import the original ones from the bootstrap-vue-3 library.

Describe alternatives you have considered Duplicating the types.

Additional context The affected types are: Animation, ColorVariant, TextColorVariant - Animation however seems to be only used by the icons. Are there any other recommendations you can think of / a better way to do this?

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:17

github_iconTop GitHub Comments

1reaction
VividLemoncommented, Nov 9, 2022

@VividLemon in my last post here, right before this, I posted a link to the commit in my fork where I made the changes.

Since there are still some issues where I am unsure of how to solve them, I asked for your help to get this finished hopefully soon.

  • *.d.ts generation fails -> named exports instead?
  • getting the components off the parent like in Vue2 -> no clue, didnt find anything alike in Vue3 to use
  • ColorVariant vs TextColorVariant on the components

I can create a PR as well and mark it as WIP and let you change stuff right there if you’d like that better?

I have work in progress commits on my personal machine addressing most of these.

1reaction
aceofwingscommented, Oct 21, 2022

@boindil I think it would be great to have this functionality back. @jclijmans contributions were removed some time ago however I think it is important to have. Does tree shake work effectively in your project currently? The original bootstrap vue compiles SVGs and Icon definitions into their own files thus minimizing size based off of usage.

Read more comments on GitHub >

github_iconTop Results From Across the Web

use bootstrap icons with npm
When I use any JS-module with NPM I include it into my . js file with require("") . How can I do the...
Read more >
Parcel · Bootstrap v5.0
Learn how to include Bootstrap in your project using Parcel. On this page. Install Parcel; Install Bootstrap; Importing JavaScript; Importing CSS; Build app....
Read more >
Webpack
Learn how to include Bootstrap in your project using Webpack 3. Installing Bootstrap. Install bootstrap as a Node.js module using npm. Importing JavaScript....
Read more >
Bootstrap & Webpack
The official guide for how to include and bundle Bootstrap's CSS and JavaScript in your project using Webpack.
Read more >
Optimize · Bootstrap v5.0
Keep your projects lean, responsive, and maintainable so you can deliver the best ... be sure to list the Popper dependency in your...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found