Skip to main content
CSS-Tricks
  • Articles
  • Videos
  • Almanac
  • Newsletter
  • Guides
  • DigitalOcean
  • DO Community
Search

Articles Tagged
import

2 Articles
{
,

}
Direct link to the article ECMAScript proposal: JSON modules
import JavaScript javascript modules json

ECMAScript proposal: JSON modules

Dr. Axel Rauschmayer looks at JSON modules, which is already live in Chrome 91 (but nothing else). It looks just like an ES Modules-style import, only you asset the type at the end.

import configData from './config-data.json' assert {type: 
…
Avatar of Chris Coyier
Chris Coyier on Jul 21, 2021
Direct link to the article Import Non-ESM libraries in ES Modules, with Client-Side Vanilla JS
es6 import

Import Non-ESM libraries in ES Modules, with Client-Side Vanilla JS

Direct Link

We’re living through a weird era where there are tons of JavaScript libraries that were meant to be used as <script> tags that expose available globals. AND there are tons of JavaScript libraries that are meant to be used through …

Avatar of Chris Coyier
Shared by Chris Coyier on Sep 7, 2020

CSS-Tricks is powered by DigitalOcean.

Keep up to date on web dev

with our hand-crafted newsletter

DigitalOcean
  • DigitalOcean
  • DigitalOcean Community
  • About DigitalOcean
  • Legal
  • Free Credit Offer
CSS-Tricks
  • Email
  • Guest Writing
  • Book
  • Advertising
Follow
  • Mastodon
  • Twitter
  • Instagram
  • YouTube
  • CodePen
  • iTunes
  • RSS
Back to Top