![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
@fluentui/bundle-size
Advanced tools
@fluentui/bundle-size
A CLI tool to measure bundle size locally and on CI.
NOTE:
bundle-size
requires to build packages first before doing any kind of measurements. Make sure to accommodate this in your pipeline
Fixtures declare exports that should be measured by the bundle-size
tool. Fixtures are created inside each package.
For example:
import { Component } from '@fluentui/react-component';
console.log(Component);
// 👆 "console.log()" is the easiest way to prevent tree-shaking
export default {
name: 'Component',
// 👆 defines a name for story that will be used in output
};
For custom advanced behavior of bundle-size
, you can create a bundle-size.config.js
in the root of your project directory (next to package.json
).
my-proj/
├─ src/
├─ bundle-size.config.js
├─ node_modules/
├─ bundle-size/
│ ├─ Fixture.fixture.js
├─ package.json
A global configuration can also be used for monorepo scenarios
my-proj-a/
├─ src/
├─ node_modules/
├─ bundle-size/
│ ├─ Fixture.fixture.js
├─ package.json
my-proj-b/
├─ src/
├─ node_modules/
├─ bundle-size/
│ ├─ Fixture.fixture.js
├─ package.json
bundle-size.config.js
module.exports = {
webpack: config => {
// customize config here
return config;
},
};
compare-reports
Compares local (requires call of bundle-size measure
first) and remote results, provides output to CLI or to a Markdown file.
yarn bundle-size compare-reports --branch=main --output=["cli"|"markdown"] [--quiet]
measure
yarn bundle-size measure [--quiet]
Builds fixtures and produces artifacts. For each fixture:
[fixture].fixture.js
- a modified fixture without a default export, used by a bundler[fixture].output.js
- a partially minified file, useful for debugging[fixture].min.js
- a fully minified file, used for measurementsA report file bundle-size.json
that is used by other steps.
upload-report
yarn bundle-size upload-report --branch=main --commit-sha=HASH [--quiet]
Aggregates local results to a single report and uploads data to Azure Table Storage.
NOTE: should be called only during CI builds.
FAQs
A CLI tool to measure bundle size locally and on CI.
The npm package @fluentui/bundle-size receives a total of 11 weekly downloads. As such, @fluentui/bundle-size popularity was classified as not popular.
We found that @fluentui/bundle-size demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 14 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.