node-authenticate-pam icon indicating copy to clipboard operation
node-authenticate-pam copied to clipboard

webpack support

Open N1ckx opened this issue 3 years ago • 0 comments

Hi, because webpack by default only loads js and json files i get this error:

ERROR in ./node_modules/authenticate-pam/build/Release/authenticate_pam.node 1:0 Module parse failed: Unexpected character '' (1:0) You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders

Is there a loader that would make it work? Or is it maybe possibile to have a index.js wrapper file to pass to webpack that load the binary?

Thanks,

N1ckx avatar Apr 11 '22 07:04 N1ckx