
Security News
Deno 2.6 + Socket: Supply Chain Defense In Your CLI
Deno 2.6 introduces deno audit with a new --socket flag that plugs directly into Socket to bring supply chain security checks into the Deno CLI.
browser-es-module-loader
Advanced tools
Loads ES modules in the browser via Babel just like the WhatWG HTML specification for modules.
Also supports the <script type="module"> tag with both src and inline forms.
Throws when loading bare / plain names.
See the example folder for a demonstration.
Built with the ES Module Loader polyfill 1.0 branch at https://github.com/ModuleLoader/es-module-loader.
Fetches module sources in the browser, then uses Babel to transform them into System.register modules.
The loader polyfill then handles the loading and execution pipeline as in the loader spec.
This project is only suitable for demonstrations / experimentation and is not designed for any production workflows at all.
npm install browser-es-module-loader
<script src="dist/babel-browser-build.js"></script>
<script src="dist/browser-es-module-loader.js"></script>
<!-- script type=module loading -->
<script type="module" src="path/to/module.js"></script>
<!-- Anonymous script type module loading -->
<script type="module">
import {x} from './y.js';
// this case throws as plain / bare names are not supported as in the WhatWG spec
import thisWillThrow from 'x';
// dynamic import also supported
import('./x').then(function (m) {
// ...
});
</script>
<!-- dynamic loader instantiation also supported -->
<script>
var loader = new BrowserESModuleLoader();
// relative path or URL syntax is necessary as plain resolution throws
loader.import('./path/to/file.js').then(function(m) {
// ...
});
</script>
MIT
FAQs
Demonstrates ES module loading in the browser
We found that browser-es-module-loader demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Deno 2.6 introduces deno audit with a new --socket flag that plugs directly into Socket to bring supply chain security checks into the Deno CLI.

Security News
New DoS and source code exposure bugs in React Server Components and Next.js: what’s affected and how to update safely.

Security News
Socket CEO Feross Aboukhadijeh joins Software Engineering Daily to discuss modern software supply chain attacks and rising AI-driven security risks.