@servicetitan/docs-uikit 37.0.2 → 38.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/docs/BREAKING_CHANGES.mdx +22 -4
- package/docs/microfrontends/developing/authentication.mdx +10 -4
- package/docs/startup/build/build.mdx +4 -0
- package/docs/startup/build/vite.mdx +58 -2
- package/docs/startup/build/webpack.mdx +4 -4
- package/docs/startup/start/vite.mdx +54 -1
- package/docs/startup/start/webpack.mdx +18 -0
- package/docs/startup/startup.mdx +7 -20
- package/package.json +2 -2
|
@@ -3,13 +3,31 @@ title: BREAKING CHANGES
|
|
|
3
3
|
sidebar_position: 0
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
+
## v38.0.0
|
|
7
|
+
|
|
8
|
+
### [@servicetitan/ajax-handlers](./ajax-handlers)
|
|
9
|
+
|
|
10
|
+
- Canceled requests now reject with the cancelation error instead of returning a never-resolving promise.
|
|
11
|
+
|
|
12
|
+
Previously, canceling a request caused the promise to hang forever, silently swallowing errors but also blocking any downstream code from running (including loading-state resets). Now, cancelations reject like any other error.
|
|
13
|
+
|
|
14
|
+
:::warning
|
|
15
|
+
Any code that makes cancelable requests must guard against the cancelation error using `axios.isCancel`.
|
|
16
|
+
:::
|
|
17
|
+
|
|
18
|
+
See [Cancelation handling](./ajax-handlers/cancelation-handling) for the correct patterns, or use the `fix-cancelable-requests` skill to automatically find and fix affected call sites. Install it from the [uikit AI Marketplace](./ai-marketplace).
|
|
19
|
+
|
|
20
|
+
### [@servicetitan/startup](./startup/)
|
|
21
|
+
|
|
22
|
+
Upgraded Prettier from 3.8.x to 3.9.x which includes formatting changes. Run `npx startup eslint --fix` to fix new lint errors.
|
|
23
|
+
|
|
6
24
|
## v37.0.0
|
|
7
25
|
|
|
8
26
|
### [@servicetitan/startup](./startup/)
|
|
9
27
|
|
|
10
|
-
Upgraded TypeScript from 5.x to 6.x, which turns several deprecated `tsconfig` options into hard errors and changes compiler defaults that can surface as new errors in consumer projects.
|
|
28
|
+
- Upgraded TypeScript from 5.x to 6.x, which turns several deprecated `tsconfig` options into hard errors and changes compiler defaults that can surface as new errors in consumer projects.
|
|
11
29
|
|
|
12
|
-
See the [TypeScript 6 upgrade guide](https://docs.st.dev/docs/frontend/upgrading-to-typescript-6) for the breaking changes and the `migrating-to-typescript-6` skill that automates the mechanical fixes.
|
|
30
|
+
See the [TypeScript 6 upgrade guide](https://docs.st.dev/docs/frontend/upgrading-to-typescript-6) for the breaking changes and the `migrating-to-typescript-6` skill that automates the mechanical fixes.
|
|
13
31
|
|
|
14
32
|
## v36.0.0
|
|
15
33
|
|
|
@@ -41,8 +59,8 @@ See the [TypeScript 6 upgrade guide](https://docs.st.dev/docs/frontend/upgrading
|
|
|
41
59
|
|
|
42
60
|
### [@servicetitan/startup](./startup/)
|
|
43
61
|
|
|
44
|
-
Upgraded Jest from v29 to v30. The largest breaking change is that v30 drops [alias matchers](https://jestjs.io/docs/upgrading-to-jest30#jest-expect--matchers) that were deprecated since v26.
|
|
45
|
-
For a complete list of breaking changes see the [Upgrade Guide](https://jestjs.io/docs/upgrading-to-jest30).
|
|
62
|
+
- Upgraded Jest from v29 to v30. The largest breaking change is that v30 drops [alias matchers](https://jestjs.io/docs/upgrading-to-jest30#jest-expect--matchers) that were deprecated since v26.
|
|
63
|
+
For a complete list of breaking changes see the [Upgrade Guide](https://jestjs.io/docs/upgrading-to-jest30).
|
|
46
64
|
|
|
47
65
|
## v32.0.0
|
|
48
66
|
|
|
@@ -42,10 +42,12 @@ function createProxyConfig({ context, cookie, target }) {
|
|
|
42
42
|
target,
|
|
43
43
|
changeOrigin: true,
|
|
44
44
|
secure: false,
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
45
|
+
on: {
|
|
46
|
+
proxyReq: req => {
|
|
47
|
+
if (cookie) {
|
|
48
|
+
req.setHeader('Cookie', cookie);
|
|
49
|
+
}
|
|
50
|
+
},
|
|
49
51
|
},
|
|
50
52
|
};
|
|
51
53
|
}
|
|
@@ -53,6 +55,10 @@ function createProxyConfig({ context, cookie, target }) {
|
|
|
53
55
|
module.exports = proxy.length ? proxy : undefined;
|
|
54
56
|
```
|
|
55
57
|
|
|
58
|
+
:::note
|
|
59
|
+
Older proxy scripts using the flat `onProxyReq` option (instead of `on: { proxyReq }`) still work; `startup` migrates them automatically and logs a deprecation warning. See [Webpack](../../startup/start/webpack#proxy) for details.
|
|
60
|
+
:::
|
|
61
|
+
|
|
56
62
|
## Put cookies in local configuration file
|
|
57
63
|
|
|
58
64
|
Login to the application and use the web browser's Developer Tools to copy the cookies from backend requests to `config.js`.
|
|
@@ -227,6 +227,10 @@ The `*.ts` glob is non-recursive and picks up only root-level config files. The
|
|
|
227
227
|
|
|
228
228
|
:::info
|
|
229
229
|
`Startup` only maps a subset of TypeScript settings from `tsconfig.json` to SWC options. See [cliOptions](https://github.com/search?q=repo%3Aservicetitan%2Fuikit+%22cliOptions%3A%22+-path%3A**%2F*.test.ts&type=code) and [swcOptions](https://github.com/search?q=repo%3Aservicetitan%2Fuikit+%22swcOptions%3A%22+-path%3A**%2F*.test.ts&type=code) for the details.
|
|
230
|
+
|
|
231
|
+
✨ New in **v38.0.0** ✨
|
|
232
|
+
|
|
233
|
+
`compilerOptions.paths` is mapped automatically, so path aliases resolve during SWC compilation without needing to duplicate them in `swcOptions`.
|
|
230
234
|
:::
|
|
231
235
|
|
|
232
236
|
Use `cli.swc-compile-package` to set or override SWC options. E.g.,
|
|
@@ -22,6 +22,18 @@ To make Vite the default, set `cli.bundler` in the project's root `package.json`
|
|
|
22
22
|
|
|
23
23
|
The `--bundler` flag overrides it per invocation.
|
|
24
24
|
|
|
25
|
+
An individual package can pin its own bundler with a package-level `cli.bundler`, overriding both the flag and the root default. This lets a monorepo mix bundlers, for example keeping legacy packages on webpack while the rest use Vite:
|
|
26
|
+
|
|
27
|
+
```json title="packages/legacy/package.json"
|
|
28
|
+
{
|
|
29
|
+
"cli": {
|
|
30
|
+
"bundler": "webpack"
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
Each package resolves its bundler in this order: its own `cli.bundler`, then `--bundler`, then the root `cli.bundler`, then webpack.
|
|
36
|
+
|
|
25
37
|
:::tip
|
|
26
38
|
For dev server configuration (port, proxy, HMR), see [Vite start](../start/vite).
|
|
27
39
|
:::
|
|
@@ -139,7 +151,7 @@ A custom `build.outDir` is not honored for MFEs. Their bundles must reside in `d
|
|
|
139
151
|
For advanced configuration, create `vite.dev.config.ts` (development) or `vite.prod.config.ts` (production) in the package root. Config files support full Vite `UserConfig` including `plugins`.
|
|
140
152
|
|
|
141
153
|
:::tip
|
|
142
|
-
Config files at the package root fall outside the main `tsconfig.json`, so they get no type checking on build or in CI. See [type checking root-level config files](./build#root-level-config-files) to enable it.
|
|
154
|
+
Config files at the package root fall outside the main `tsconfig.json`, so they get no type checking on build or in CI. See [type checking root-level config files](./build.mdx#root-level-config-files) to enable it.
|
|
143
155
|
:::
|
|
144
156
|
|
|
145
157
|
Import `defineConfig` from `@servicetitan/startup/vite` for type safety:
|
|
@@ -208,6 +220,49 @@ export default defineConfig({
|
|
|
208
220
|
|
|
209
221
|
:::
|
|
210
222
|
|
|
223
|
+
## Externalizing to window globals
|
|
224
|
+
|
|
225
|
+
Use `windowExternalsPlugin` from `@servicetitan/startup/vite` to map imports to globals a host exposes on `window`, instead of bundling duplicate copies/instances of a library.
|
|
226
|
+
It is equivalent to webpack's `externals` with `externalsType: 'window'`.
|
|
227
|
+
|
|
228
|
+
It accepts an object where each key is a window property (e.g., `jQuery` -> `window.jQuery`), and the value is a regex (or an object carrying one) that matches the imports resolving to that global. For example,
|
|
229
|
+
|
|
230
|
+
```ts title="vite.prod.config.ts"
|
|
231
|
+
import { defineConfig, windowExternalsPlugin } from '@servicetitan/startup/vite';
|
|
232
|
+
|
|
233
|
+
export default defineConfig({
|
|
234
|
+
config: {
|
|
235
|
+
plugins: [
|
|
236
|
+
windowExternalsPlugin({
|
|
237
|
+
jQuery: /^jquery$/,
|
|
238
|
+
moment: /^(moment|moment-timezone)$/,
|
|
239
|
+
accounting: { match: /^accounting$/, exports: ['formatMoney', 'formatNumber'] },
|
|
240
|
+
arcgis: { match: /^@arcgis\/core\//, member: s => s.split('/').pop() },
|
|
241
|
+
}),
|
|
242
|
+
],
|
|
243
|
+
},
|
|
244
|
+
});
|
|
245
|
+
```
|
|
246
|
+
|
|
247
|
+
```ts
|
|
248
|
+
import $ from 'jquery'; // `$` is `window.jQuery`
|
|
249
|
+
import moment from 'moment'; // `moment` is `window.moment`
|
|
250
|
+
import moment from 'moment-timezone'; // `moment` is `window.moment`
|
|
251
|
+
import { formatMoney } from 'accounting'; // `formatMoney` is `window.accounting.formatMoney`
|
|
252
|
+
import MapView from '@arcgis/core/views/MapView'; // `MapView` is `window.arcgis.MapView`
|
|
253
|
+
import FeatureFilter from '@arcgis/core/layers/support/FeatureFilter'; // `FeatureFilter` is `window.arcgis.FeatureFilter`
|
|
254
|
+
```
|
|
255
|
+
|
|
256
|
+
### Values
|
|
257
|
+
|
|
258
|
+
The object values control what imports match to the corresponding global, and what each import resolves to:
|
|
259
|
+
|
|
260
|
+
| When value is | Triggers when import matches | Resolves to |
|
|
261
|
+
| :---------------------------------------------------------- | :--------------------------- | :----------------------------------------------------------------------------------------------------------------- |
|
|
262
|
+
| `RegExp` | `RegExp` | `window.<global>` |
|
|
263
|
+
| `{ match: RegExp, exports: string[] }` | `match` | `window.<global>.<export>` for listed named export and `window.<global>` for default export |
|
|
264
|
+
| `{ match: RegExp, member?: (specifier: string) => string }` | `match` | `window.<global>[<member>]` when `member` returns a string and `window.<global>` when `member` returns falsy value |
|
|
265
|
+
|
|
211
266
|
## Custom HTML Templates
|
|
212
267
|
|
|
213
268
|
The HTML plugin uses [eta](https://eta.js.org/) as the template engine. By default it picks up `index.ejs` (or `index.html`) from the package source directory, matching webpack's `HtmlWebpackPlugin` convention, and falls back to the built-in template when neither file exists. Eta renders `.ejs` and `.html` files identically, so apps migrating from webpack keep their existing template without renaming it.
|
|
@@ -248,7 +303,7 @@ Example eta template:
|
|
|
248
303
|
<body>
|
|
249
304
|
<div id="root"></div>
|
|
250
305
|
<script type="module">
|
|
251
|
-
import '
|
|
306
|
+
import './<%= it.tsOutDir %>/index';
|
|
252
307
|
</script>
|
|
253
308
|
</body>
|
|
254
309
|
</html>
|
|
@@ -266,6 +321,7 @@ Available template variables:
|
|
|
266
321
|
| `favicon` | `string` | Favicon URL (explicit or auto-detected); may be `undefined` |
|
|
267
322
|
| `css` | `string[]` | Stylesheet entry paths to inject as `<link>` tags |
|
|
268
323
|
| `js` | `string[]` | Script entry paths to inject as `<script>` tags |
|
|
324
|
+
| `tsOutDir` | `string` | TypeScript compiler output dir holding the entry |
|
|
269
325
|
| `name` | `string` | Package/MFE name |
|
|
270
326
|
| `isProduction` | `boolean` | True for production builds |
|
|
271
327
|
| `isWebComponent` | `boolean` | True when building an MFE (web component) |
|
|
@@ -7,7 +7,7 @@ Webpack is the default bundler for `startup build`.
|
|
|
7
7
|
## Minimization
|
|
8
8
|
|
|
9
9
|
`startup` configures webpack to minimize production bundles, using
|
|
10
|
-
[
|
|
10
|
+
[MinimizerWebpackPlugin](https://webpack.js.org/plugins/minimizer-webpack-plugin) for JS bundles
|
|
11
11
|
and [CssMinimizerWebpackPlugin](https://webpack.js.org/plugins/css-minimizer-webpack-plugin)
|
|
12
12
|
for CSS bundles.
|
|
13
13
|
|
|
@@ -21,7 +21,7 @@ to map runtime errors back to source.
|
|
|
21
21
|
|
|
22
22
|
- To turn off minimizing, set `cli.webpack.minify.js` or `cli.webpack.minify.css`, or both, to `false`.
|
|
23
23
|
- To override the default Terser options set `cli.webpack.minify.js` to an object containing
|
|
24
|
-
[`
|
|
24
|
+
[`minimizerOptions`](https://webpack.js.org/plugins/minimizer-webpack-plugin/#minimizeroptions).
|
|
25
25
|
- To override the default CssMinimizerWebpackPlugin options, set `cli.webpack.minify.css` to an object containing
|
|
26
26
|
[CssMinimizerWebpackPlugin options](https://webpack.js.org/plugins/css-minimizer-webpack-plugin/#options).
|
|
27
27
|
|
|
@@ -33,8 +33,8 @@ For example,
|
|
|
33
33
|
"webpack": {
|
|
34
34
|
"minify": {
|
|
35
35
|
"js": {
|
|
36
|
-
//
|
|
37
|
-
// https://webpack.js.org/plugins/
|
|
36
|
+
// minimizer-webpack-plugin minimizerOptions
|
|
37
|
+
// https://webpack.js.org/plugins/minimizer-webpack-plugin/#minimizeroptions
|
|
38
38
|
},
|
|
39
39
|
"css": {
|
|
40
40
|
// css-minimizer-webpack-plugin options
|
|
@@ -22,6 +22,18 @@ To make Vite the default, set `cli.bundler` in the project's root `package.json`
|
|
|
22
22
|
|
|
23
23
|
The `--bundler` flag overrides it per invocation.
|
|
24
24
|
|
|
25
|
+
An individual package can pin its own bundler with a package-level `cli.bundler`, overriding both the flag and the root default. This lets a monorepo mix bundlers, for example keeping legacy packages on webpack while the rest use Vite:
|
|
26
|
+
|
|
27
|
+
```json title="packages/legacy/package.json"
|
|
28
|
+
{
|
|
29
|
+
"cli": {
|
|
30
|
+
"bundler": "webpack"
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
Each package resolves its bundler in this order: its own `cli.bundler`, then `--bundler`, then the root `cli.bundler`, then webpack.
|
|
36
|
+
|
|
25
37
|
:::tip
|
|
26
38
|
For build-time configuration (minification, plugin overrides, custom templates), see [Vite build](../build/vite).
|
|
27
39
|
:::
|
|
@@ -104,6 +116,47 @@ Set `cli.vite.devServer` to `false` to run `startup start` without an HTTP dev s
|
|
|
104
116
|
|
|
105
117
|
## Hot Module Replacement
|
|
106
118
|
|
|
107
|
-
Vite provides fast HMR out of the box.
|
|
119
|
+
[Vite provides fast HMR out of the box](https://vite.dev/guide/features#hot-module-replacement). Startup adds a [React Fast Refresh](https://www.npmjs.com/package/react-refresh) bridge for modules compiled by `swc` so TSX edits can update the page without a full reload when React can safely preserve the component tree.
|
|
108
120
|
|
|
109
121
|
For MFEs running in shadow DOM, CSS HMR uses `adoptedStyleSheets`. Style updates are applied to the shadow root automatically without affecting the host page.
|
|
122
|
+
|
|
123
|
+
### Supported HMR updates
|
|
124
|
+
|
|
125
|
+
| Change | Behavior |
|
|
126
|
+
| :----------------------------------------- | :------------------------------------------------------------------------------------------------------------------- |
|
|
127
|
+
| Plain CSS | Updated in place by Vite without React Fast Refresh. |
|
|
128
|
+
| CSS modules | Propagates through the importing JS module and re-renders through React Fast Refresh. |
|
|
129
|
+
| TSX components in the app package | Uses React Fast Refresh when `swc` can identify and register the component and the module exports remain compatible. |
|
|
130
|
+
| TSX components in local workspace packages | Uses React Fast Refresh when the workspace module is served by Vite and contains a compatible refresh boundary. |
|
|
131
|
+
| Embedded MFE TSX/CSS served by Vite | Updates through the MFE dev server without reloading the host page when the changed module can be safely updated. |
|
|
132
|
+
|
|
133
|
+
### When Startup falls back to a full reload
|
|
134
|
+
|
|
135
|
+
React Fast Refresh only works when `swc` emits component registration markers and the edited module remains a safe refresh boundary. Startup lets Vite perform a full reload when the module cannot be safely refreshed.
|
|
136
|
+
|
|
137
|
+
Common cases that reload instead of refresh:
|
|
138
|
+
|
|
139
|
+
- A module has hook signature markers but no registered component family.
|
|
140
|
+
- A component is hidden behind a pattern `swc` cannot statically identify, such as returning an anonymous component from a higher-order function call.
|
|
141
|
+
- A refresh boundary adds or removes an export.
|
|
142
|
+
- A non-component export changes value.
|
|
143
|
+
- A module exposes exports through getters, which Startup does not evaluate during boundary validation.
|
|
144
|
+
- The edited module is outside the local workspace packages and is treated as third-party code.
|
|
145
|
+
|
|
146
|
+
Hook signature changes, such as adding, removing, or reordering hooks, are handled by React Fast Refresh. React remounts that component to avoid reusing invalid state slots, but that is not the same as a full page reload.
|
|
147
|
+
|
|
148
|
+
For best results, export React components as function declarations or named arrow-function variables so `swc` can register them.
|
|
149
|
+
|
|
150
|
+
### Linting refresh boundaries
|
|
151
|
+
|
|
152
|
+
To keep React Fast Refresh working as often as possible, enable [`eslint-plugin-react-refresh`](https://github.com/ArnaudBarre/eslint-plugin-react-refresh) in applications that use Vite. Its `react-refresh/only-export-components` rule catches modules whose exports would make React Fast Refresh unsafe, such as mixing changed non-component exports with component exports.
|
|
153
|
+
|
|
154
|
+
```js title="eslint.config.mjs"
|
|
155
|
+
import { defineConfig } from 'eslint/config';
|
|
156
|
+
import mono from '@servicetitan/eslint-config/mono';
|
|
157
|
+
import { reactRefresh } from 'eslint-plugin-react-refresh';
|
|
158
|
+
|
|
159
|
+
export default defineConfig([mono, reactRefresh.configs.recommended()]);
|
|
160
|
+
```
|
|
161
|
+
|
|
162
|
+
This lint rule is not required for Startup's Vite dev server to work. It helps teams avoid patterns that force Vite to invalidate the module and reload the page instead of applying React Fast Refresh.
|
|
@@ -34,6 +34,24 @@ Use `cli.webpack.devServer` to set or override `webpack-dev-server` options.
|
|
|
34
34
|
}
|
|
35
35
|
```
|
|
36
36
|
|
|
37
|
+
### Proxy
|
|
38
|
+
|
|
39
|
+
Use `cli.webpack.proxy` to set the `webpack-dev-server` [proxy](https://webpack.js.org/configuration/dev-server/#devserverproxy) configuration, either inline or as the relative path to a script that exports it. See [Authentication](../../microfrontends/developing/authentication) for an example that proxies requests with an authentication cookie.
|
|
40
|
+
|
|
41
|
+
```json title="package.json"
|
|
42
|
+
{
|
|
43
|
+
"cli": {
|
|
44
|
+
"webpack": {
|
|
45
|
+
"proxy": "../../local/proxy-settings.js"
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
:::note
|
|
52
|
+
Proxy configs written against `webpack-dev-server` 5.x and earlier commonly used flat event options such as `onProxyReq`, `onProxyRes`, `onProxyReqWs`, `onOpen`, `onClose`, and `onError`. `webpack-dev-server` 6.x moved these under an `on` object (for example, `on: { proxyReq }`). `startup` migrates the legacy options to `on` automatically and logs a deprecation warning; update existing configs to the `on` object when convenient, since the automatic migration may be removed in a future release.
|
|
53
|
+
:::
|
|
54
|
+
|
|
37
55
|
### Disabling the dev server
|
|
38
56
|
|
|
39
57
|
Set `cli.webpack.devServer` to `false` to run `startup start` without an HTTP dev server. Webpack instead builds in watch mode, recompiling to the output directory on every change, so a separate server can serve the files from disk.
|
package/docs/startup/startup.mdx
CHANGED
|
@@ -25,7 +25,7 @@ Updating build tooling is typically a daunting and time-consuming task. When new
|
|
|
25
25
|
`startup` supports two bundlers:
|
|
26
26
|
|
|
27
27
|
- **Webpack**: the default bundler.
|
|
28
|
-
- **Vite** (✨ New in **v37.0.0** ✨): opt-in via `--bundler=vite` or `cli.bundler` in project's root `package.json`.
|
|
28
|
+
- **Vite** (✨ New in **v37.0.0** ✨): opt-in via `--bundler=vite` or `cli.bundler` in the project's root `package.json`. Individual packages can pin their own bundler with a package-level `cli.bundler`.
|
|
29
29
|
|
|
30
30
|
See [build](./build) and [start](./start) for bundler-specific configuration.
|
|
31
31
|
|
|
@@ -63,14 +63,10 @@ Use `cli.NODE_OPTIONS` or `cli.*.NODE_OPTIONS` to set or override Node options f
|
|
|
63
63
|
"cli": {
|
|
64
64
|
"NODE_OPTIONS": ["--max_old_space_size=4096"], // NODE_OPTIONS for all commands
|
|
65
65
|
"lint": {
|
|
66
|
-
"NODE_OPTIONS": [
|
|
67
|
-
/* NODE_OPTIONS for lint command */
|
|
68
|
-
]
|
|
66
|
+
"NODE_OPTIONS": [/* NODE_OPTIONS for lint command */]
|
|
69
67
|
},
|
|
70
68
|
"test": {
|
|
71
|
-
"NODE_OPTIONS": [
|
|
72
|
-
/* NODE_OPTIONS for test command */
|
|
73
|
-
]
|
|
69
|
+
"NODE_OPTIONS": [/* NODE_OPTIONS for test command */]
|
|
74
70
|
}
|
|
75
71
|
}
|
|
76
72
|
}
|
|
@@ -121,10 +117,7 @@ const { swc, webpackFinal } = require('@servicetitan/startup/storybook-config');
|
|
|
121
117
|
const config: StorybookConfig = {
|
|
122
118
|
framework: '@storybook/react-webpack5',
|
|
123
119
|
stories: ['../src/**/*.stories.ts?(x)'],
|
|
124
|
-
webpackFinal: config =>
|
|
125
|
-
webpackFinal(config, {
|
|
126
|
-
/* Custom webpack overrides */
|
|
127
|
-
}),
|
|
120
|
+
webpackFinal: config => webpackFinal(config, {/* Custom webpack overrides */}),
|
|
128
121
|
swc,
|
|
129
122
|
};
|
|
130
123
|
|
|
@@ -173,9 +166,7 @@ const config: StorybookConfig = {
|
|
|
173
166
|
framework: '@storybook/react-vite',
|
|
174
167
|
stories: ['../src/**/*.stories.ts?(x)'],
|
|
175
168
|
viteFinal: (config, options) =>
|
|
176
|
-
mergeConfig(viteFinal(config, options), {
|
|
177
|
-
/* Custom Vite config */
|
|
178
|
-
}),
|
|
169
|
+
mergeConfig(viteFinal(config, options), {/* Custom Vite config */}),
|
|
179
170
|
};
|
|
180
171
|
|
|
181
172
|
export default config;
|
|
@@ -218,9 +209,7 @@ export default defineConfig({
|
|
|
218
209
|
devServer: {
|
|
219
210
|
framework: 'react',
|
|
220
211
|
bundler: 'webpack',
|
|
221
|
-
webpackConfig: webpackConfig({
|
|
222
|
-
/* Custom webpack overrides */
|
|
223
|
-
}),
|
|
212
|
+
webpackConfig: webpackConfig({/* Custom webpack overrides */}),
|
|
224
213
|
},
|
|
225
214
|
},
|
|
226
215
|
});
|
|
@@ -260,9 +249,7 @@ export default defineConfig({
|
|
|
260
249
|
devServer: {
|
|
261
250
|
framework: 'react',
|
|
262
251
|
bundler: 'vite',
|
|
263
|
-
viteConfig: viteConfig({
|
|
264
|
-
/* Vite InlineConfig overrides */
|
|
265
|
-
}),
|
|
252
|
+
viteConfig: viteConfig({/* Vite InlineConfig overrides */}),
|
|
266
253
|
},
|
|
267
254
|
},
|
|
268
255
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@servicetitan/docs-uikit",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "38.1.0",
|
|
4
4
|
"description": "Documentation content for Uikit packages published at docs.st.dev",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -16,5 +16,5 @@
|
|
|
16
16
|
"cli": {
|
|
17
17
|
"webpack": false
|
|
18
18
|
},
|
|
19
|
-
"gitHead": "
|
|
19
|
+
"gitHead": "e8c601a26ad49ca0d6b0b84a9f530f3242d53c7f"
|
|
20
20
|
}
|