JavaScript · Senior · Question 70 of 75

What does <script type="importmap"> enable?

<script type="importmap">
{ "imports": { "lodash": "https://cdn.example/lodash-es.js" } }
</script>

Explanation

Import maps map names to URLs and can also scope versions. They are used for no-build setups and micro-frontends sharing dependencies.

Further reading

Problem with a question

JavaScript · Senior · question 70

Test yourself

Take the JavaScript · Senior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz