kvlsrg / jquery-custom-select

Custom Select jQuery Plugin
https://kvlsrg.github.io/jquery-custom-select/
MIT License
31 stars 16 forks source link

ES6 import #13

Closed ghost closed 6 years ago

ghost commented 6 years ago

npm i jquery-custom-select --save-dev

somewhere in my srouces

import 'jquery-custom-select';

I except that this line will include source code into my bundle, but there is an error:

ParseError: 'import' and 'export' may appear only with 'sourceType: module'

kvlsrg commented 6 years ago

What bundler are you using?

xama commented 6 years ago

Hello, I have the same error, any idea to fix this ?

Thank you

kvlsrg commented 6 years ago

@xama Please, provide more details. Which bundler? E.g. here some info about same error in babelify: https://github.com/babel/babelify/issues/157