Skip to main content
100%

Native ES6 Modules Test

✓ Published0🌍 Public
CCurran Kelleher
Last edited Aug 1, 2021
Created on Aug 1, 2021
Forked from HTML Starter

This example tests native ES6 module support in browsers without a bundler. It imports a constant from `bar.js` and logs it using `console.log`, while also demonstrating an import map that aliases `./utils.mjs` to an inline data URL for a logging function. The code uses the native `type="module"` script tag and the browser’s import map API, with a React starter link for comparison.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

MIT Licensed

Similar vizzes