Open jeffrson opened 2 years ago
The issue seems to be coming from node-gyp-build
which gets compiled to
// Workaround to fix webpack's build warnings: 'the request of a dependency is an expression'
var runtimeRequire = true ? eval("require") : 0 // eslint-disable-line
ncc apparently does not handle require inside SerialPort (https://www.npmjs.com/package/serialport) correctly in ESM mode
ncc build .\index.mjs -s -C --target es2020
ncc 0.33.3