Closed dobesv closed 6 years ago
I think ‘bcrypt’ is not compatible for browser, so Webpack tries to resolve it as a browser/es2015 module and cannot compile it for browser then. Try to seperate server code to a different file, and make sure this code is not added to client bundle. If you still have the issue, please reproduce a repo so I can help you better. Thanks for contribution!
Modifying the example to import bcrypt results in all kinds of errors. What is the way to use module that webpack / babel don't accept, cannot handle? It seems like marking them as externals doesn't work because meteor doesn't allow them to be imported.
I've tried messing around with stuff like the
webpack-node-externals
package but then it seems like nothing in node_modules can be imported at runtime - meteor doesn't include any of that in the folder it builds into.