aadsm / jsmediatags

Media Tags Reader (ID3, MP4, FLAC)
Other
738 stars 128 forks source link

ES Module Imports from the Browser #156

Open Offroaders123 opened 2 years ago

Offroaders123 commented 2 years ago

Is there a way that I can import the jsmediatags object using the import syntax for ES Modules, in the browser? I was hoping to use an experience similar to the one provided in this article about the import statement.

This isn't working at the moment, but something similar to this is what I was hoping to be able to do inside of my ES Module scripts.

import jsmediatags from "https://cdnjs.cloudflare.com/ajax/libs/jsmediatags/3.9.5/jsmediatags.min.js";

Thanks!

DcolorWei commented 2 years ago

In fact, many of the new ES6 syntaxes are not fully supported in current browsers. You may need Babel, or add type="model" to Githubissues.

  • Githubissues is a development platform for aggregating issues.