Introducing ES Module Support in 75CDN: Usage Guide and Browser Compatibility
The article explains how 75CDN, a static resource CDN maintained by the 360 front‑end team, has added ES Module support, details browser compatibility, shows how to enable ESM on the platform, and provides practical code examples for importing modules in web projects.
75CDN is a static resource hosting platform maintained by the 360 front‑end team (奇舞团) that has been operating stably for over two years and has recently added support for ES Modules, becoming the first domestic CDN to embrace ES Module services.
ES Module, introduced in ES6, enables JavaScript to import modules using the import syntax and includes both static and dynamic import features. Current browser support is summarized in the table below:
Browser
Static import
Dynamic import
Chrome
61+
63+
Chrome For Android
67+
67+
Firefox
60+
Not supported
Firefox For Android
60+
Not supported
Safari
10.1+
11.1+
iOS Safari
10.3
11.2+
Edge
16+
Not supported
Note: Data sourced from CanIUse.
To enable ESM, 75CDN now treats files ending with .mjs , esm.js , and esm.browser.js as ES Modules. For eligible files, the "Copy // main.mjs import chimeePlayer from "//lib.baomitu.com/chimee-player/1.4.6/chimee-player.esm.js"; new chimeePlayer({ src: 'http://cdn.toxicjohann.com/lostStar.mp4', wrapper: '#wrapper', autoplay: true }); Additional details to note: Modules can use import.meta to obtain the current module's URL. Import paths support local relative/absolute paths and URLs. The same module imported multiple times executes only once. Resources must support CORS headers. 75CDN celebrates its two‑year anniversary and promises continued stability and new features beyond ES Module support. Reference materials include articles on native browser support for ES6 export/import, in‑depth ES6 module guides, and cartoon deep‑dives into ES modules.
360 Tech Engineering
Official tech channel of 360, building the most professional technology aggregation platform for the brand.
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.