esm
esm copied to clipboard
Tomorrow's ECMAScript modules today!
- esm 3.2.25 Importing `morgan` package triggers deprecation warning due to accessing the `default` property of `morgan` import. That property is marked as deprecated in morgan with this code: ```js...
Between 3.2.9 -to-> 3.2.10 i started getting this error(Error: Not supported) on one of the tests at [tests/Utility.js](https://github.com/dyo/dyo/blob/hooks/test/Utility.js) on the following project [https://github.com/dyo/dyo/tree/hooks](https://github.com/dyo/dyo/tree/hooks).
I implemented this per example using index.js pointing to main.js, also using gulp with webpack-stream and when it gets to gulp task scripts below ``` function scripts() { return gulp.src('./index.js')...
Check this out, it's super weird! ```js 'use strict'; const util = require('util'); const fn = () => {}; const deprecated1 = util.deprecate(fn, 'msg1'); const deprecated2 = util.deprecate(fn, 'msg2'); process.once('warning',...
- Reproduce: https://github.com/pi0/esm-bug - Bug with: `3.2.25` (works fine with
I'm trying to get top-level `await` and `babel-plugin-module-resolver` to get to work. I tried many combinations and none of them worked. **Repository**: https://github.com/ndabAP/esm-babel-plugin-module-resolver-issue
> Derived from #798, #799 and https://github.com/theKashey/rewiremock/pull/83 There is a simple test: - `A.js` { const subject = rewiremock.proxy( () => require('./B'), () => {rewiremock(() => require('./C')).withDefault('baz')} ); expect(subject.default).to.be.equal('baz') });...
I'm trying to migrate to Node.js 12 and esm 3.2.22. I was using Node.js 10 and esm 3.0.8. I enable esm with `node -r esm` and use a `.esmrc.js` config...
I've adapted the "proxyquire" scenario from the tests to show an issue. Below, I've added a second assertion, and a third file, `c.js`. The assertions made below, using CJS, pass...