From 5cd2af823a95caf7ec03423b5b48d4a4bd4da9f1 Mon Sep 17 00:00:00 2001 From: Ben Durrant Date: Mon, 5 Feb 2024 16:48:26 +0000 Subject: [PATCH] cut back on suffixes tested for size --- packages/toolkit/.size-limit.cjs | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/packages/toolkit/.size-limit.cjs b/packages/toolkit/.size-limit.cjs index a37e3507e7..a6999b566b 100644 --- a/packages/toolkit/.size-limit.cjs +++ b/packages/toolkit/.size-limit.cjs @@ -1,8 +1,8 @@ const webpack = require('webpack') let { join } = require('path') -const esmSuffixes = ['modern.mjs', 'browser.mjs', 'legacy-esm.js'] -const cjsSuffixes = ['development.cjs', 'production.min.cjs'] +const esmSuffixes = ['modern.mjs' /*, 'browser.mjs', 'legacy-esm.js'*/] +const cjsSuffixes = [/*'development.cjs',*/ 'production.min.cjs'] function withRtkPath(suffix, cjs = false) { /** @@ -200,14 +200,6 @@ module.exports = entryPoints name: `3. fetchBaseQuery`, import: { '@reduxjs/toolkit/query': '{ fetchBaseQuery }' }, }, - { - name: `3. setupListeners`, - import: { '@reduxjs/toolkit/query': '{ setupListeners }' }, - }, - { - name: `3. ApiProvider`, - import: { '@reduxjs/toolkit/query/react': '{ ApiProvider }' }, - }, ].map((e) => ({ ...e, name: e.name + ` (.modern.mjs)`,