Open larongbingo opened 6 years ago
// webpack.config.js
module.exports = {
entry: "./src/index.js",
output: {
path: path.resolve(__dirname, "build"),
filename: "index.js"
},
module: {
rules: [
{
test: /\.js?$/,
loader: "babel-loader",
options: {
presets: [
"env",
["es2015", {"modules": false}]
],
plugins: [
"transform-class-properties"
]
},
exclude: [
path.resolve(__dirname, ".babelrc")
]
},
{
test: /tar[\\\/].*\.js$/,
loader: 'babel-loader!octal-number-loader'
}
]
},
target: "node",
cache: true,
stats: "verbose",
devtool: "source-map",
externals: ['pg', 'sqlite3', 'tedious', 'pg-hstore']
}
Webpack shows me an error at ./node_modules/bcrypt-nodejs/bCrypt.js (293:40), anyone know how to fix this?