Closed wesbos closed 1 year ago
There is a bug where this code:
const products = require('./data/products'); exports.products = products;
causes this error:
Transformation error ("products" does not match field "name": Identifier | null of type ExportSpecifier)
This seems to fix it.
References:
Fixed!
https://github.com/azu/commonjs-to-es-module-codemod/releases/tag/v0.5.1
Thanks!
Thank you for the quick release
There is a bug where this code:
causes this error:
Transformation error ("products" does not match field "name": Identifier | null of type ExportSpecifier)
This seems to fix it.
References: