Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@std/esm

Package Overview
Dependencies
Maintainers
2
Versions
73
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@std/esm - npm Package Compare versions

Comparing version 0.17.3 to 0.18.0

2

package.json
{
"name": "@std/esm",
"version": "0.17.3",
"version": "0.18.0",
"description": "Enable ES modules in Node today!",

@@ -5,0 +5,0 @@ "keywords": "commonjs, ecmascript, export, import, modules, node, require",

@@ -22,4 +22,4 @@ # @std/esm

Enable processing **all** modules, including dependencies, by providing an
`options` object or `true` to use the options from your .esmrc or package.json.
Enable for **all** modules, including dependencies, by providing
`options` or `true` to use your options file.

@@ -72,3 +72,3 @@ ```js

* [Dynamic `import()`](https://github.com/tc39/proposal-dynamic-import)
* [Improved errors](https://mobile.twitter.com/jdalton/status/907741390813016064)
* [Improved errors](https://github.com/standard-things/esm/wiki/improved-errors)
* [Live bindings](https://ponyfoo.com/articles/es6-modules-in-depth#bindings-not-values)

@@ -82,5 +82,9 @@ * [Loading `.mjs` files as ESM](https://github.com/nodejs/node-eps/blob/master/002-es-modules.md#32-determining-if-source-is-an-es-module)

Unlock extra features by specifying options in your .esmrc or `"@std/esm"` field
of your package.json.
Unlock extra features with options specified as one of the following:
* The `"@std/esm"` field in your package.json
* [JSON6](https://github.com/d3x0r/json6) in an .esmrc or .esmrc.json file
* JSON6 or file path in the `ESM_OPTIONS` environment variable
* CJS/ESM in an .esmrc.js or .esmrc.mjs file
Commonly used options may be specified in shorthand form:

@@ -124,3 +128,3 @@

<p>A boolean to support gzipped module <i>(i.e. <code>.js.gz</code>, <code>.mjs.gz</code>).</i></p>
<p><i>Note: Don’t forget the webpack <a href="https://webpack.js.org/loaders/gzip-loader/"><code>gzip-loader</code></a>.</i></p>
<p><i>Note: Don’t forget the webpack <a href="https://github.com/webpack-contrib/gzip-loader"><code>gzip-loader</code></a>.</i></p>
</td>

@@ -243,3 +247,3 @@ </tr>

* Load `@std/esm` before
[`@babel/register`](https://www.npmjs.com/package/@babel/register) v7+
[`@babel/register`](https://github.com/babel/babel/tree/master/packages/babel-register) v7+
* Load `@std/esm` with the *“require”* option of

@@ -256,3 +260,3 @@ [`ava`](https://github.com/avajs/ava#options),

[`mocha`](https://mochajs.org/#-w---watch)
* Use `"@std/esm":"cjs"` with [`webpack`](https://webpack.js.org/)
* Use `"@std/esm":"cjs"` with [`webpack`](https://github.com/webpack/webpack)
* When in doubt, use `"@std/esm":"cjs"`

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc