If you use ES6 modules you will only need a single script tag, although you can include non-module scripts like jquery using additional script tags if you like.
Failed to load module script:
What server are you using?
Taking a quick look at that library, it’s a bit weird they are calling it “ES6” because they are bundling as a UMD (universal module definition) which works for every kind of module except for ES6 modules.
The reason UMD is called universal is because it was created before ES6 modules.
The actual src code is written using ES6 modules though (probably the reason for the name), so you could try importing from
es6-tween/src/ directory instead of
es6-tween/bundled/. You’ll have to dig around to find where the exports are located.
I don’t think browserify can though, it’s a pretty old tool at this point that I wouldn’t recommend using at all if you can help it.
If you’re finding this stuff confusing BTW, you’re in good company. We’re at an awkward time in JS dev history at the moment as all this
To make your life easier, I recommend using only two techniques: script tags for old libraries like es6-modules and jquery, and ES6 modules with updated libraries like three. Alternatively, if you use something like Webpack or Rollup, they’ll be able to handle importing UMD as ES6 modules, or possibly mixing UMD and ES6 in your code.