Tag

import-meta

1 views collected around this technical thread.

ByteDance Web Infra
ByteDance Web Infra
Oct 20, 2021 · Frontend Development

Bundling Non-JavaScript Resources with Custom Imports and the new URL() Syntax

This article explains how to import and bundle non‑JavaScript assets such as images, CSS, fonts, WebAssembly modules and workers using custom URL schemes and the new URL(import.meta.url) pattern, discusses tool support, and outlines future import proposals.

WebAssemblyWebpackassets
0 likes · 14 min read
Bundling Non-JavaScript Resources with Custom Imports and the new URL() Syntax