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

esModule Support #546

Closed
sihyungkim opened this issue Jun 5, 2021 · 3 comments
Closed

esModule Support #546

sihyungkim opened this issue Jun 5, 2021 · 3 comments
Labels

Comments

@sihyungkim
Copy link

First, I would like to thank you for your hard work.

I am using vitejs and vue2.

However, this library does not support esModule.

Could you update for esModule?

Maybe you should use rollup.

I look forward to your positive reply.

@NightCatSama
Copy link
Owner

Try using vue-slider-component/es/vue-slider.

@maratfakhreev
Copy link

Hi @NightCatSama. Unfortunately es directory hasn't been working as expected or I've been doing smth wrong. When you try to use esm version the error is appeared b/c of not any scss files don't exist in directory. And also it's very strange to look for .scss extension exact in builded version. Could you please doublecheck it and if you need some details feel free to ask) thank you
image

@NightCatSama
Copy link
Owner

@maratfakhreev

The styles folder is indeed missing, es/ is generated with tsc, so scss will not be processed.

The solution is move the scss into es/, or use a script to replace the .scss with .css and compile the scss separately and put it in.

It seems that this problem has existed for a long time, and the scene of using es does not feel necessary, so esModule will be removed in the future. It is recommended to use directly.

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

No branches or pull requests

3 participants