Skip to content

Commit

Permalink
chore: bump monosize to latest
Browse files Browse the repository at this point in the history
  • Loading branch information
layershifter committed Jul 10, 2024
1 parent 427bf80 commit 352d9f6
Show file tree
Hide file tree
Showing 4 changed files with 199 additions and 203 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/bundle-size.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@ jobs:
- name: Compare results with "main" branch
if: ${{ github.event_name == 'pull_request' }}
run: |
yarn monosize compare-reports --branch main --output markdown
cp node_modules/monosize/dist/monosize.md monosize.md
yarn monosize compare-reports --branch main --output markdown --quiet > monosize.md
- name: Save PR number
run: echo ${{ github.event.number }} > pr.txt
Expand Down
27 changes: 13 additions & 14 deletions monosize.config.mjs
Original file line number Diff line number Diff line change
@@ -1,26 +1,25 @@
import path from 'path';
import path from 'node:path';
import upstashStorage from 'monosize-storage-upstash';
import webpackBundler from 'monosize-bundler-webpack';

const dirname = new URL('.', import.meta.url).pathname;

export default {
repository: 'https://github.com/microsoft/griffel',
bundler: webpackBundler(config => ({
...config,
resolve: {
...config.resolve,
alias: {
'@griffel/core': path.resolve(dirname, './dist/packages/core/index.esm.js'),
'@griffel/shadow-dom': path.resolve(dirname, './dist/packages/shadow-dom/index.esm.js'),
'@griffel/react': path.resolve(dirname, './dist/packages/react/index.esm.js'),
},
},
})),
storage: upstashStorage({
url: 'https://us1-nearby-hyena-35747.upstash.io',
readonlyToken:
'AoujASQgNGQwNGI0YjAtNmExNy00MzNjLWIwNTQtMTIyMGRlODQwZDk2QaCJNVtEfHj6pDLLscOcgMEt-Be1VWcMYbMRR_EqVCw=',
}),
webpack: config => {
return {
...config,
resolve: {
...config.resolve,
alias: {
'@griffel/core': path.resolve(dirname, './dist/packages/core/index.esm.js'),
'@griffel/shadow-dom': path.resolve(dirname, './dist/packages/shadow-dom/index.esm.js'),
'@griffel/react': path.resolve(dirname, './dist/packages/react/index.esm.js'),
},
},
};
},
};
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,9 @@
"memfs": "3.4.12",
"mini-css-extract-plugin": "2.6.0",
"module-alias": "^2.2.3",
"monosize": "0.0.9",
"monosize-storage-upstash": "0.0.8",
"monosize": "0.6.2",
"monosize-bundler-webpack": "0.1.4",
"monosize-storage-upstash": "0.0.20",
"nano-staged": "0.5.0",
"next": "14.1.1",
"nx": "19.3.2",
Expand Down
Loading

0 comments on commit 352d9f6

Please sign in to comment.