Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Not works well with Webpack (AMD package name wrong ?) #554
When using with webpack (generate static code), it always compiled error:
This problem can be resolved by modify the line 4 in generated .js file:
The protobuf.roots feature has just been added. Are you using 6.1.1?
Wait, it's not in the minimal runtime yet... need to add it there, too.
Well, the "protobuf" name wasn't available anymore on npm at that time, and that's the only reason it is using something else on npm. I believe this is a general issue that tools should always consider, because this will become more and more standard in the future / as npm grows.