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 import in ES6? #79

Open
Kcko opened this issue Mar 26, 2022 · 3 comments
Open

How to import in ES6? #79

Kcko opened this issue Mar 26, 2022 · 3 comments
Labels

Comments

@Kcko
Copy link

Kcko commented Mar 26, 2022

Something like this

import {SmartPhoto from './vendor/lightbox/smartphoto.js'; but its not works ...

@uidev1116
Copy link
Contributor

@Kcko

import SmartPhoto from 'smartphoto';

This is how to import in ES6.

@Kcko
Copy link
Author

Kcko commented Jan 6, 2023

@uidev1116 of course i know how import in ES6, i know ES6 from floor to ceil, but it didn't work, but that doesn't matter now (it took a little longer from create this topic ;-)

@uidev1116
Copy link
Contributor

uidev1116 commented Jan 10, 2023

@Kcko

Sorry for the late reply.

Do you use bundling tools such as webpack?
In order to import this library with the ES module, a bundling tool is required.

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

2 participants