|
output = util.wrap(output, protobuf.util.merge({ dependency: "protobufjs/minimal" }, options)); |
pbjs -w es6 will generate an import statement that simply fails, because it's ES6 not CommonJS.
It can't import a file with the extension omitted, it has to import "protobufjs/minimal.js".
Or an "exports" field entry for /minimal needs to be added to protobufjs to make it work.
https://nodejs.org/api/esm.html#import-specifiers
protobuf.js/cli/targets/static-module.js
Line 21 in f42297b
pbjs -w es6will generate animportstatement that simply fails, because it's ES6 not CommonJS.It can't import a file with the extension omitted, it has to import
"protobufjs/minimal.js".Or an
"exports"field entry for/minimalneeds to be added to protobufjs to make it work.https://nodejs.org/api/esm.html#import-specifiers