mirror of
https://github.com/fluencelabs/js-libp2p-noise
synced 2025-04-25 04:42:28 +00:00
25 lines
498 B
JavaScript
25 lines
498 B
JavaScript
|
|
||
|
const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin;
|
||
|
|
||
|
module.exports = {
|
||
|
entry: "./src/index.ts",
|
||
|
mode: "production",
|
||
|
output: {
|
||
|
filename: "../bundle/bundle.js"
|
||
|
},
|
||
|
node: {
|
||
|
fs: "empty"
|
||
|
},
|
||
|
resolve: {
|
||
|
extensions: [".ts", ".js"],
|
||
|
},
|
||
|
module: {
|
||
|
rules: [
|
||
|
{test: /\.ts$/, exclude: [/node_modules/], use: {loader: "babel-loader", options: require("./babel.web.config")}}
|
||
|
],
|
||
|
},
|
||
|
plugins: [
|
||
|
new BundleAnalyzerPlugin()
|
||
|
]
|
||
|
};
|