@bemedev/dev-utils 1.0.0 → 1.0.1
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/README.md +6 -11
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -379,7 +379,7 @@ vitestExtended.useTFA(myFunction, 'myFunction');
|
|
|
379
379
|
## `rolldownConfig`
|
|
380
380
|
|
|
381
381
|
Rolldown bundler configuration factory with built-in plugins for TypeScript
|
|
382
|
-
declarations,
|
|
382
|
+
declarations, circular dependency detection, and
|
|
383
383
|
tree-shaking externals.
|
|
384
384
|
|
|
385
385
|
### `defineConfig(additionals?)`
|
|
@@ -390,16 +390,13 @@ Shorthand for `defineConfig.default`.
|
|
|
390
390
|
|
|
391
391
|
Produces a full Rolldown config with the default plugin pipeline:
|
|
392
392
|
|
|
393
|
-
1. **
|
|
394
|
-
2. **tsPaths** — resolves tsconfig path imports at bundle time
|
|
395
|
-
(`rollup-plugin-tsconfig-paths`)
|
|
396
|
-
3. **circulars** — warns on circular dependencies
|
|
393
|
+
1. **circulars** — warns on circular dependencies
|
|
397
394
|
(`rollup-plugin-circular-dependency`)
|
|
398
|
-
|
|
395
|
+
2. **externals** — marks `dependencies` and `peerDependencies` as external
|
|
399
396
|
(`rollup-plugin-node-externals`)
|
|
400
|
-
|
|
397
|
+
3. **typescript** — emits `.d.ts` declarations via the TypeScript compiler
|
|
401
398
|
API
|
|
402
|
-
|
|
399
|
+
4. **clean** — removes JS outputs for files that produce empty chunks
|
|
403
400
|
|
|
404
401
|
```typescript
|
|
405
402
|
// rolldown.config.ts
|
|
@@ -464,8 +461,6 @@ Individual plugin factories are available for custom pipeline assembly:
|
|
|
464
461
|
|
|
465
462
|
| Key | Function | Wraps |
|
|
466
463
|
| ------------ | ---------------------- | ------------------------------------- |
|
|
467
|
-
| `alias` | `alias(options?)` | `rollup-plugin-tsc-alias` |
|
|
468
|
-
| `tsPaths` | `tsPaths(options?)` | `rollup-plugin-tsconfig-paths` |
|
|
469
464
|
| `circulars` | `circulars(options?)` | `rollup-plugin-circular-dependency` |
|
|
470
465
|
| `externals` | `externals(options?)` | `rollup-plugin-node-externals` |
|
|
471
466
|
| `typescript` | `typescript(options?)` | TypeScript compiler API + `tsc-alias` |
|
|
@@ -476,7 +471,7 @@ them:
|
|
|
476
471
|
|
|
477
472
|
```typescript
|
|
478
473
|
defineConfig.default({
|
|
479
|
-
plugins: ['
|
|
474
|
+
plugins: ['externals', 'typescript'],
|
|
480
475
|
});
|
|
481
476
|
```
|
|
482
477
|
|
package/package.json
CHANGED