Skip to content

Commit

Permalink
chore: Integrate microsoft/monosize in react-charting library for Are…
Browse files Browse the repository at this point in the history
…aChart and VerticalBarChart (#30489)
  • Loading branch information
Shubhabrata08 authored Feb 7, 2024
1 parent d9a7739 commit b3c2fa6
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "none",
"comment": "chore: Integrate microsoft/monosize into react-charting for AreaChart and VerticalBarChart",
"packageName": "@fluentui/react-charting",
"email": "[email protected]",
"dependentChangeType": "none"
}
9 changes: 9 additions & 0 deletions packages/react-charting/bundle-size/AreaChart.fixture.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { AreaChart } from '@fluentui/react-charting';

console.log(AreaChart);
// "console.log()" is the easiest way to prevent tree-shaking

export default {
name: 'AreaChart',
// defines a name for story that will be used in output
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { VerticalBarChart } from '@fluentui/react-charting';

console.log(VerticalBarChart);
// "console.log()" is the easiest way to prevent tree-shaking

export default {
name: 'VerticalBarChart',
// defines a name for story that will be used in output
};
11 changes: 11 additions & 0 deletions packages/react-charting/monosize.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// monosize.config.mjs
import storageAdapter from 'monosize-storage-azure';

export default {
repository: 'https://github.com/microsoft/fluentui',
storage: storageAdapter(),
webpack: config => {
// customize config here
return config;
},
};
3 changes: 2 additions & 1 deletion packages/react-charting/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@
"@fluentui/scripts-jest": "*",
"@fluentui/scripts-tasks": "*",
"@fluentui/scripts-webpack": "*",
"jest-canvas-mock": "2.4.0"
"jest-canvas-mock": "2.4.0",
"monosize": "0.2.1"
},
"dependencies": {
"@fluentui/react-focus": "^8.8.40",
Expand Down

0 comments on commit b3c2fa6

Please sign in to comment.