Skip to content

Commit

Permalink
chore: size limit updated
Browse files Browse the repository at this point in the history
  • Loading branch information
MoumitaM committed Jul 17, 2024
1 parent 786928c commit 0651b04
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 42 deletions.
4 changes: 2 additions & 2 deletions packages/analytics-js-plugins/.size-limit.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export default [
{
name: 'Plugins - Legacy - CDN',
path: 'dist/cdn/legacy/plugins/rsa-plugins-*.min.js',
limit: '15 KiB',
limit: '16 KiB',
},
{
name: 'Plugins Module Federation Mapping - Modern - CDN',
Expand All @@ -21,6 +21,6 @@ export default [
{
name: 'Plugins - Modern - CDN',
path: 'dist/cdn/modern/plugins/rsa-plugins-*.min.js',
limit: '8.5 KiB',
limit: '7.5 KiB',
},
];
14 changes: 7 additions & 7 deletions packages/analytics-js-plugins/rollup.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -108,12 +108,12 @@ export function getDefaultConfig(distName) {
sourcemap: sourceMapType,
}),
isCDNPackageBuild &&
federation({
name: modName,
filename: remotePluginsExportsFilename,
exposes: pluginsMap,
remoteType: 'promise',
}),
federation({
name: modName,
filename: remotePluginsExportsFilename,
exposes: pluginsMap,
remoteType: 'promise',
}),
process.env.UGLIFY === 'true' &&
terser({
safari10: isLegacyBuild,
Expand Down Expand Up @@ -178,7 +178,7 @@ const outputFilesNpm = [
generatedCode: {
preset: isLegacyBuild ? 'es5' : 'es2015',
},
}
},
];

const outputFilesCdn = [
Expand Down
66 changes: 33 additions & 33 deletions packages/analytics-js/.size-limit.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,20 @@ export default [
{
name: 'Core - Legacy - NPM (ESM)',
path: 'dist/npm/legacy/esm/index.mjs',
import: "*",
limit: '45 KiB',
import: '*',
limit: '47.5 KiB',
},
{
name: 'Core - Legacy - NPM (CJS)',
path: 'dist/npm/legacy/cjs/index.cjs',
import: "*",
limit: '45 KiB',
import: '*',
limit: '48 KiB',
},
{
name: 'Core - Legacy - NPM (UMD)',
path: 'dist/npm/legacy/umd/index.js',
import: "*",
limit: '45 KiB',
import: '*',
limit: '47.5 KiB',
},
{
name: 'Core - Legacy - CDN',
Expand All @@ -29,19 +29,19 @@ export default [
{
name: 'Core - Modern - NPM (ESM)',
path: 'dist/npm/modern/esm/index.mjs',
import: "*",
import: '*',
limit: '24.5 KiB',
},
{
name: 'Core - Modern - NPM (CJS)',
path: 'dist/npm/modern/cjs/index.cjs',
import: "*",
import: '*',
limit: '24.5 KiB',
},
{
name: 'Core - Modern - NPM (UMD)',
path: 'dist/npm/modern/umd/index.js',
import: "*",
import: '*',
limit: '24.5 KiB',
},
{
Expand All @@ -52,73 +52,73 @@ export default [
{
name: 'Core (Bundled) - Legacy - NPM (ESM)',
path: 'dist/npm/legacy/bundled/esm/index.mjs',
import: "*",
limit: '45 KiB',
import: '*',
limit: '47.5 KiB',
},
{
name: 'Core (Bundled) - Legacy - NPM (CJS)',
path: 'dist/npm/legacy/bundled/cjs/index.cjs',
import: "*",
limit: '45 KiB',
import: '*',
limit: '48 KiB',
},
{
name: 'Core (Bundled) - Legacy - NPM (UMD)',
path: 'dist/npm/legacy/bundled/umd/index.js',
import: "*",
limit: '45 KiB',
import: '*',
limit: '47.5 KiB',
},
{
name: 'Core (Bundled) - Modern - NPM (ESM)',
path: 'dist/npm/modern/bundled/esm/index.mjs',
import: "*",
limit: '37 KiB',
import: '*',
limit: '39 KiB',
},
{
name: 'Core (Bundled) - Modern - NPM (CJS)',
path: 'dist/npm/modern/bundled/cjs/index.cjs',
import: "*",
limit: '37 KiB',
import: '*',
limit: '39 KiB',
},
{
name: 'Core (Bundled) - Modern - NPM (UMD)',
path: 'dist/npm/modern/bundled/umd/index.js',
import: "*",
limit: '37 KiB',
import: '*',
limit: '39 KiB',
},
{
name: 'Core (Content Script) - Legacy - NPM (ESM)',
path: 'dist/npm/legacy/content-script/esm/index.mjs',
import: "*",
limit: '45 KiB',
import: '*',
limit: '47 KiB',
},
{
name: 'Core (Content Script) - Legacy - NPM (CJS)',
path: 'dist/npm/legacy/content-script/cjs/index.cjs',
import: "*",
limit: '45 KiB',
import: '*',
limit: '47.5 KiB',
},
{
name: 'Core (Content Script) - Legacy - NPM (UMD)',
path: 'dist/npm/legacy/content-script/umd/index.js',
import: "*",
limit: '45 KiB',
import: '*',
limit: '47 KiB',
},
{
name: 'Core (Content Script) - Modern - NPM (ESM)',
path: 'dist/npm/modern/content-script/esm/index.mjs',
import: "*",
limit: '37 KiB',
import: '*',
limit: '38.5 KiB',
},
{
name: 'Core (Content Script) - Modern - NPM (CJS)',
path: 'dist/npm/modern/content-script/cjs/index.cjs',
import: "*",
limit: '37 KiB',
import: '*',
limit: '38.5 KiB',
},
{
name: 'Core (Content Script) - Modern - NPM (UMD)',
path: 'dist/npm/modern/content-script/umd/index.js',
import: "*",
limit: '37 KiB',
import: '*',
limit: '38.5 KiB',
},
];

0 comments on commit 0651b04

Please sign in to comment.