diff --git a/.size-limit.cjs b/.size-limit.cjs index 8b6dd5d1c1..d7cef565b2 100644 --- a/.size-limit.cjs +++ b/.size-limit.cjs @@ -1,52 +1,37 @@ -const modifyWebpackConfig = (webpackConfig) => { - if (!webpackConfig.resolve) webpackConfig.resolve = {}; - if (!webpackConfig.resolve.fallback) webpackConfig.resolve.fallback = {}; - // Can be removed once https://github.com/libp2p/js-libp2p-pubsub/pull/92 is merged and released - webpackConfig.resolve.fallback.buffer = false; - return webpackConfig; -}; - module.exports = [ { name: "Waku core", path: "dist/bundle.min.js", import: "{ Waku }", - modifyWebpackConfig, }, { name: "Waku default setup", path: "dist/bundle.min.js", import: "{ createWaku, waitForRemotePeer }", - modifyWebpackConfig, }, { name: "Asymmetric, symmetric encryption and signature", path: "dist/bundle.min.js", import: "{ waku_message }", - modifyWebpackConfig, }, { name: "DNS discovery", path: "dist/bundle.min.js", import: "{ discovery }", - modifyWebpackConfig, }, { name: "Privacy preserving protocols", path: "dist/bundle.min.js", import: "{ WakuRelay }", - modifyWebpackConfig, }, { name: "Light protocols", path: "dist/bundle.min.js", import: "{ WakuLightPush, WakuFilter }", - modifyWebpackConfig, }, { name: "History retrieval protocols", path: "dist/bundle.min.js", import: "{ WakuStore }", - modifyWebpackConfig, }, ]; diff --git a/CHANGELOG.md b/CHANGELOG.md index 62590a4434..cd9014f8fa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,7 +18,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Bump many libp2p libraries to their latest version (which usually are pure ESM). - Replace webpack with parcel for bundling - Examples: Updated store-js and relay-js to demonstrate usage of ESM bundle in `