We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
If I have a number of script files, normally I include them as:
<script src="js/foo.js"></script> <script src="js/bar.js"></script>
but if one of those files needs to use the module, I can't figure out how to import everything so it works.
If I do it this way:
<script type="module"> import * as id3 from './js/vendor/id3js/id3.js'; </script> <script src="js/foo.js"></script> <script src="js/bar.js"></script>
id3 isn't visible in the script files while if I include the script files in the module:
<script type="module"> import * as id3 from './js/vendor/id3js/id3.js'; import './js/foo.js'; import './js/bar.js'; </script>
I can't use any of their code (I suspect I would have to rewrite everything to be a module) Is there a way to use this in non-modular javascript?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
If I have a number of script files, normally I include them as:
but if one of those files needs to use the module, I can't figure out how to import everything so it works.
If I do it this way:
id3 isn't visible in the script files
while if I include the script files in the module:
I can't use any of their code (I suspect I would have to rewrite everything to be a module)
Is there a way to use this in non-modular javascript?
The text was updated successfully, but these errors were encountered: