Closed kounelios13 closed 5 years ago
If you plan on using import you will have to use a transpiler like Babel, or a bundler like rollup/webpack. This is the way it is for all es modules short of running them in native browsers which most are not doing.
I’d accept a PR for showing both examples in the docs, but I am happy with it using es modules as it stands.
Thanks.Added an example in my pull request
Hello.I tried to use this module for a simple script.I tried to copy paste your code.However import statement is not supported.So I had to do the following:
Would you accept a pull request for that?