-
Notifications
You must be signed in to change notification settings - Fork 73
Expand file tree
/
Copy pathmonosize.config.mjs
More file actions
28 lines (26 loc) · 922 Bytes
/
monosize.config.mjs
File metadata and controls
28 lines (26 loc) · 922 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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/src/index.js'),
'@griffel/shadow-dom': path.resolve(dirname, './dist/packages/shadow-dom/src/index.js'),
'@griffel/react': path.resolve(dirname, './dist/packages/react/src/index.js'),
},
},
externals: {
...config.externals,
'react/jsx-runtime': 'JSX',
},
})),
storage: upstashStorage({
url: 'https://welcome-giraffe-61766.upstash.io',
readonlyToken: 'AvFGAAIgcDHzHKwMeSqS_FCutK3bcM-AI7c7zSKbRYbAM14_ZiwUmg',
}),
};