[Предложение: учебник]: importmap и голые модули
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 45/100
- Issue type
- Documentation
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- html, javascript
- Domain
- documentation, web-dev
Research direction
Start with the “Модули, введение” lesson and its “Не допускаются «голые» модули” section, then compare the related “Экспорт и импорт” lesson. Review the HTML <script type="importmap"> behavior and current browser module resolution; the work is done when the tutorial clearly explains import maps, bare module imports, and path overrides.
Written by the indexing model from the issue text.
Description
Описание
importmap появился в стандарте HTML в 2022-м и на 2024-й год имеют широкую поддержку в браузерах (более 90%). Видится важным рассказать о нём в уроке «Модули, введение», переработав раздел «Не допускаются «голые» модули». Можно заменить его, к примеру, на «Карта импортов, импорт «голых» модулей» и описать принцип работы <script type="importmap">. Возможно, имеет смысл подробно осветить тему в отдельном новом уроке или в уроке «Экспорт и импорт».
Мотивация
За последние несколько лет здорово эволюционировали браузеры, райнтаймы и инструменты сборки, меняются подходы к работе с модулями (выстрелил Vite с его «esm-подходом» в dev-режиме), появились различные реализации микрофронтендов, в том числе с использованием importmap.
Эволюционировал и порядок разрешения путей модулей: importmap не только привнёс работу с «голыми» модулями в браузер, но и сделал возможным «переопределение» путей на усмотрение разработчика. Без знания о том, как работает importmap, может быть в принципе непонятно, почему загружаются те или иные модули. Кажется весьма важным описать произошедшие изменения, которые, как видится, в скором будущем станут новым стандартом подключения зависимостей.
Готовы ли вы принять участие в реализации данного предложения?
Да, я готов(а) принять участие.
- Dominant language
- HTML
- Stars
- 4.1k
- Forks
- 922
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from javascript-tutorial/ru.javascript.info
-
suggestion: tutorial
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
javascript-tutorial/ru.javascript.info#2187 · 1 comment ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
javascript-tutorial/ru.javascript.info#2163 · 1 comment ·
-
[Баг]: Openbug
Difficulty 1/5 Under an hour Newbie friendliness 65/100
-
suggestion: tutorial
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
suggestion: tutorial
Difficulty 3/5 1-2 days Newbie friendliness 68/100
All issues in javascript-tutorial/ru.javascript.info
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
palladius/rails8-app-on-gcp#145 ·
-
NeedsTriage
Difficulty 1/5 Under an hour Newbie friendliness 90/100
-
error Open
Difficulty 1/5 Under an hour Newbie friendliness 85/100
-
Difficulty 1/5 Under an hour Newbie friendliness 85/100
-
textual definition
Difficulty 1/5 Under an hour Newbie friendliness 90/100
geneontology/go-ontology#32653 ·