Closed i-like-robots closed 4 years ago
I have no idea how to make the Karma tests pass. We need to use a version of this Babel plugin which supports interoperability but before the author added more spec-compliant checks.
Unfortunately a version like this was never published and it cannot be installed from Github either.
After some console.log()
based development (old Karma running in headless browser...) I noticed that the helper methods being injected by the Rewire plugin were nuking the module.exports = a; module.exports.default = a;
being appended by this plugin.
This change updates the Babel configuration to ensure that all ESM code transpiled to CJS is output with both
module.exports
andmodule.exports.default
for full compatibility with integrations either usingrequire()
orrequire().default
.This is required because we still have a mix of CJS code, including the
n-feedback
component which is currently broken for users of n-ui v9.