Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
const path = require('path');

const TerserPlugin = require('terser-webpack-plugin');
const webpack = require('webpack');

module.exports = {
entry: './src/index.ts',
Expand Down Expand Up @@ -32,4 +33,10 @@ module.exports = {
minimize: true,
minimizer: [new TerserPlugin()],
},
plugins: [
// Replace process.env.LOG_LEVEL with null (`process` is not defined in the browser env)
new webpack.DefinePlugin({
'process.env.LOG_LEVEL': null,
}),
],
};
Loading