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

How to transpile bit modules to IE11 #2994

Closed
hubagaspar91 opened this issue Aug 18, 2020 · 1 comment
Closed

How to transpile bit modules to IE11 #2994

hubagaspar91 opened this issue Aug 18, 2020 · 1 comment

Comments

@hubagaspar91
Copy link

#2254 # Description

I had a project recently, where I had to support IE11. I ran into a problem, where the modules compiled by bit were not transpiled properly, therefore ended up using the entry source file from the package folder, and transpiled it as a dependency.

I am using vue-cli and what I did was

Changed the import from

import VuexWizard from '@bit/cleverclip.cleverclip-vue-components.navigation.vuex-wizard/dist/navigation/vuex-wizard.umd'

To

import VuexWizard from '@bit/cleverclip.cleverclip-vue-components.navigation.vuex-wizard/VuexWizard/index.js'

And added the following in my vue.config.js

transpileDependencies: [
    /@bit/
  ],

I wonder, if there's a better way to do it, preferably to have the module created by bit transpiled by default.

Specifications

@itaymendel
Copy link
Contributor

this is already available for bit v15 for react components.
with vue support you will be able to set compilation targets as yo urequire for vue as well.

update vue support is gonna be its own epic, so i'm closing this ticket

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

No branches or pull requests

2 participants