Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/funny-tomatoes-count.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@ice/pkg': major
---

feat: remove `development` option
1 change: 1 addition & 0 deletions packages/pkg/src/config/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ export const bundleSchema = z.object({
polyfill: z.union([z.literal(false), z.enum(['entry', 'usage'])]).optional(),
compileDependencies: z.union([z.boolean(), z.union([z.string(), z.instanceof(RegExp)]).array()]).optional(),
browser: z.boolean().optional(),
codeSplitting: z.boolean().optional(),
});

export const userConfigSchema = z.object({
Expand Down
7 changes: 1 addition & 6 deletions packages/pkg/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,6 @@ export interface BundleUserConfig {
* @default 'dist'
*/
outputDir?: string;
/**
* @deprecated Please use `bundle.modes` config.
* Generate uncompressed bundle for development debug.
*/
development?: boolean;
/**
* Node env modes. For example: 'production', 'development'
* @default ['production']
Expand Down Expand Up @@ -352,7 +347,7 @@ interface _TaskConfig {

export type EngineType = 'rollup' | 'rslib';

export interface BundleTaskConfig extends _TaskConfig, Omit<BundleUserConfig, 'development' | 'minify' | 'formats'> {
export interface BundleTaskConfig extends _TaskConfig, Omit<BundleUserConfig, 'minify' | 'formats'> {
type: 'bundle';
originalFormats?: string[];
formats: BundleFormat[];
Expand Down
Loading