Skip to content

Commit

Permalink
Merge pull request #4160 from reduxjs/fewer-size-comparisons
Browse files Browse the repository at this point in the history
cut back on suffixes tested for size
  • Loading branch information
EskiMojo14 authored Feb 5, 2024
2 parents a674616 + 5cd2af8 commit 10aecc4
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions packages/toolkit/.size-limit.cjs
Original file line number Diff line number Diff line change
@@ -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) {
/**
Expand Down Expand Up @@ -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)`,
Expand Down

0 comments on commit 10aecc4

Please sign in to comment.