Загрузка...

ECMAScript Modules in Deno

In this video, we explore how Deno handles ECMAScript modules (ESM) natively, simplifying module management. Learn to create and import modules using relative paths, leveraging default exports, and utilizing ECMAScript features. Import libraries from various sources, including JSR, npm, and URLs. Finally, we cover Deno's caching features for remote modules, enhancing efficiency and supporting offline workflows.

00:00 Introduction to Deno and ECMAScript Modules
00:18 Setting Up Your Project
00:33 Importing and Exporting Modules
01:06 Using Relative Paths and File Extensions
01:28 Exporting Default and Other Data Types
01:56 Utilizing Import Meta
02:24 Importing from JSR and npm
04:00 Importing from URLs and Caching Modules
04:42 Understanding Deno's Cache System

Source code can be found here: https://github.com/MoonHighway/deno-2-course

Deno is an all-in-one batteries included JavaScript and TypeScript toolchain.

Website: https://deno.com
GitHub: https://github.com/denoland
Discord: https://discord.gg/deno
Twitter: https:/twitter.com/deno_land

Видео ECMAScript Modules in Deno канала Deno
Яндекс.Метрика
Все заметки Новая заметка Страницу в заметки
Страницу в закладки Мои закладки
На информационно-развлекательном портале SALDA.WS применяются cookie-файлы. Нажимая кнопку Принять, вы подтверждаете свое согласие на их использование.
О CookiesНапомнить позжеПринять