2018-08-10 12:49:26 +02:00
|
|
|
// Copyright BigchainDB GmbH and BigchainDB contributors
|
|
|
|
// SPDX-License-Identifier: (Apache-2.0 AND CC-BY-4.0)
|
|
|
|
// Code is Apache-2.0 and docs are CC-BY-4.0
|
|
|
|
|
2018-07-17 08:51:41 +02:00
|
|
|
/* eslint-disable strict, no-console, object-shorthand */
|
|
|
|
|
|
|
|
'use strict'
|
|
|
|
|
2022-02-15 08:06:05 +01:00
|
|
|
const { ProvidePlugin } = require('webpack')
|
|
|
|
const { paths } = require('./webpack.parts')
|
2018-07-17 08:51:41 +02:00
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
entry: paths.entry,
|
|
|
|
mode: 'none',
|
|
|
|
module: {
|
|
|
|
rules: [
|
|
|
|
{
|
|
|
|
test: /\.js$/,
|
|
|
|
exclude: /node_modules/,
|
|
|
|
use: {
|
|
|
|
loader: 'babel-loader',
|
|
|
|
},
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
optimization: {
|
|
|
|
minimize: true,
|
2022-02-15 08:06:05 +01:00
|
|
|
emitOnErrors: false
|
2018-07-17 08:51:41 +02:00
|
|
|
},
|
|
|
|
resolve: {
|
|
|
|
extensions: ['.js'],
|
|
|
|
modules: ['node_modules'],
|
2022-02-15 08:06:05 +01:00
|
|
|
fallback: {
|
|
|
|
buffer: require.resolve('buffer/'),
|
|
|
|
}
|
2018-07-17 08:51:41 +02:00
|
|
|
},
|
2022-02-15 08:06:05 +01:00
|
|
|
plugins: [
|
|
|
|
new ProvidePlugin({
|
|
|
|
Buffer: ['buffer', 'Buffer']
|
|
|
|
})
|
|
|
|
]
|
2018-07-17 08:51:41 +02:00
|
|
|
}
|