Esm: 0.19.4 broke postcss-font-family-system-ui

Created on 17 Jan 2018  路  5Comments  路  Source: standard-things/esm

i went into postcss-font-family-system-ui's entry point and console logged

https://github.com/JLHwung/postcss-font-family-system-ui/blob/master/src/index.js#L3

//eslint-disable-next-line
require = require('@std/esm')(module)
module.exports = require('./main.mjs').default

console.log('index.js')
console.log(module.exports)
// this is `undefined` now

@JLHwung @jdalton

bug

Most helpful comment

Patched https://github.com/standard-things/esm/commit/0aa02eb1541d0597f618484f5df7cfaaa3410c7b complete with a test to simulate postcss-font-family-system-ui.

Update:

v0.19.5 is released :tada:

All 5 comments

Eek. I've spotted the issue.

There is not much I can do on my side. I will release a patch release as this issue is resolved.

Thanks!

For some reason it's not detecting some of its child modules as loaded and so is stuck in an non-finalized state. I'll keep digging.

Update:

Ok I've identified the bug and have a patch working locally. I'm adding a postcss test scenario.

@jdalton thanks!!!

Patched https://github.com/standard-things/esm/commit/0aa02eb1541d0597f618484f5df7cfaaa3410c7b complete with a test to simulate postcss-font-family-system-ui.

Update:

v0.19.5 is released :tada:

Was this page helpful?
0 / 5 - 0 ratings