Skip to content

Commit

Permalink
0.0.5
Browse files Browse the repository at this point in the history
  • Loading branch information
ClarkXia committed Jan 3, 2024
1 parent b1585f3 commit bd58a15
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 16 deletions.
67 changes: 52 additions & 15 deletions crates/node_binding/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ export interface JsHooks {
afterEmit: (...args: any[]) => any
make: (...args: any[]) => any
optimizeModules: (...args: any[]) => any
afterOptimizeModules: (...args: any[]) => any
optimizeTree: (...args: any[]) => any
optimizeChunkModules: (...args: any[]) => any
beforeCompile: (...args: any[]) => any
Expand Down Expand Up @@ -216,10 +217,16 @@ export interface JsCompatSource {
export interface JsStatsError {
message: string
formatted: string
moduleIdentifier?: string
moduleName?: string
moduleId?: string
}
export interface JsStatsWarning {
message: string
formatted: string
moduleIdentifier?: string
moduleName?: string
moduleId?: string
}
export interface JsStatsLogging {
name: string
Expand Down Expand Up @@ -392,6 +399,7 @@ export interface RawContainerPluginOptions {
runtime?: string
filename?: string
exposes: Array<RawExposeOptions>
enhanced: boolean
}
export interface RawExposeOptions {
key: string
Expand All @@ -402,6 +410,7 @@ export interface RawContainerReferencePluginOptions {
remoteType: string
remotes: Array<RawRemoteOptions>
shareScope?: string
enhanced: boolean
}
export interface RawRemoteOptions {
key: string
Expand All @@ -415,6 +424,10 @@ export interface RawProvideOptions {
version?: string | false | undefined
eager: boolean
}
export interface RawConsumeSharedPluginOptions {
consumes: Array<RawConsumeOptions>
enhanced: boolean
}
export interface RawConsumeOptions {
key: string
import?: string
Expand Down Expand Up @@ -514,6 +527,7 @@ export const enum BuiltinPluginName {
EnableChunkLoadingPlugin = 'EnableChunkLoadingPlugin',
EnableLibraryPlugin = 'EnableLibraryPlugin',
EnableWasmLoadingPlugin = 'EnableWasmLoadingPlugin',
ChunkPrefetchPreloadPlugin = 'ChunkPrefetchPreloadPlugin',
CommonJsChunkFormatPlugin = 'CommonJsChunkFormatPlugin',
ArrayPushCallbackChunkFormatPlugin = 'ArrayPushCallbackChunkFormatPlugin',
ModuleChunkFormatPlugin = 'ModuleChunkFormatPlugin',
Expand All @@ -524,11 +538,33 @@ export const enum BuiltinPluginName {
MergeDuplicateChunksPlugin = 'MergeDuplicateChunksPlugin',
SplitChunksPlugin = 'SplitChunksPlugin',
OldSplitChunksPlugin = 'OldSplitChunksPlugin',
ShareRuntimePlugin = 'ShareRuntimePlugin',
ContainerPlugin = 'ContainerPlugin',
ContainerReferencePlugin = 'ContainerReferencePlugin',
ModuleFederationRuntimePlugin = 'ModuleFederationRuntimePlugin',
ProvideSharedPlugin = 'ProvideSharedPlugin',
ConsumeSharedPlugin = 'ConsumeSharedPlugin',
NamedModuleIdsPlugin = 'NamedModuleIdsPlugin',
DeterministicModuleIdsPlugin = 'DeterministicModuleIdsPlugin',
NamedChunkIdsPlugin = 'NamedChunkIdsPlugin',
DeterministicChunkIdsPlugin = 'DeterministicChunkIdsPlugin',
RealContentHashPlugin = 'RealContentHashPlugin',
RemoveEmptyChunksPlugin = 'RemoveEmptyChunksPlugin',
EnsureChunkConditionsPlugin = 'EnsureChunkConditionsPlugin',
WarnCaseSensitiveModulesPlugin = 'WarnCaseSensitiveModulesPlugin',
DataUriPlugin = 'DataUriPlugin',
FileUriPlugin = 'FileUriPlugin',
RuntimePlugin = 'RuntimePlugin',
JsonModulesPlugin = 'JsonModulesPlugin',
InferAsyncModulesPlugin = 'InferAsyncModulesPlugin',
JavascriptModulesPlugin = 'JavascriptModulesPlugin',
AsyncWebAssemblyModulesPlugin = 'AsyncWebAssemblyModulesPlugin',
AssetModulesPlugin = 'AssetModulesPlugin',
SourceMapDevToolPlugin = 'SourceMapDevToolPlugin',
EvalSourceMapDevToolPlugin = 'EvalSourceMapDevToolPlugin',
SideEffectsFlagPlugin = 'SideEffectsFlagPlugin',
FlagDependencyExportsPlugin = 'FlagDependencyExportsPlugin',
FlagDependencyUsagePlugin = 'FlagDependencyUsagePlugin',
MangleExportsPlugin = 'MangleExportsPlugin',
HttpExternalsRspackPlugin = 'HttpExternalsRspackPlugin',
CopyRspackPlugin = 'CopyRspackPlugin',
HtmlRspackPlugin = 'HtmlRspackPlugin',
Expand All @@ -538,6 +574,7 @@ export const enum BuiltinPluginName {
export interface BuiltinPlugin {
name: BuiltinPluginName
options: unknown
canInherentFromParent?: boolean
}
export interface RawCacheOptions {
type: string
Expand All @@ -553,6 +590,14 @@ export interface RawCacheOptions {
export interface RawDevServer {
hot: boolean
}
export interface RawSourceMapDevToolPluginOptions {
filename?: string
append?: boolean
namespace: string
columns: boolean
noSources: boolean
publicPath?: string
}
export interface RawEntryPluginOptions {
context: string
entry: string
Expand All @@ -578,12 +623,9 @@ export interface RawRspackFuture {
disableTransformByDefault: boolean
}
export interface RawExperiments {
lazyCompilation: boolean
incrementalRebuild: RawIncrementalRebuild
asyncWebAssembly: boolean
newSplitChunks: boolean
topLevelAwait: boolean
css: boolean
rspackFuture: RawRspackFuture
}
export interface RawHttpExternalsRspackPluginOptions {
Expand Down Expand Up @@ -727,6 +769,9 @@ export interface RawParserOptions {
}
export interface RawJavascriptParserOptions {
dynamicImportMode: string
dynamicImportPreload: string
dynamicImportPrefetch: string
url: string
}
export interface RawAssetParserOptions {
dataUrlCondition?: RawAssetParserDataUrl
Expand Down Expand Up @@ -781,16 +826,11 @@ export interface RawNodeOption {
global: string
}
export interface RawOptimizationOptions {
splitChunks?: RawSplitChunksOptions
moduleIds: string
chunkIds: string
removeAvailableModules: boolean
removeEmptyChunks: boolean
sideEffects: string
usedExports: string
providedExports: boolean
innerGraph: boolean
realContentHash: boolean
mangleExports: string
}
export interface RawTrustedTypes {
Expand Down Expand Up @@ -906,7 +946,7 @@ export interface RawSplitChunksOptions {
name?: string | false | Function
cacheGroups?: Array<RawCacheGroupOptions>
/** What kind of chunks should be selected. */
chunks?: RegExp | 'async' | 'initial' | 'all'
chunks?: RegExp | 'async' | 'initial' | 'all' | Function
automaticNameDelimiter?: string
maxAsyncRequests?: number
maxInitialRequests?: number
Expand Down Expand Up @@ -966,6 +1006,7 @@ export interface RawOptions {
experiments: RawExperiments
node?: RawNodeOption
profile: boolean
bail: boolean
builtins: RawBuiltins
}
export interface RawStrategyOptions {
Expand All @@ -976,16 +1017,11 @@ export interface RawFeatures {
splitChunksStrategy?: RawStrategyOptions
}
export interface RspackRawOptimizationOptions {
splitChunks?: RawSplitChunksOptions
moduleIds: string
chunkIds: string
removeAvailableModules: boolean
removeEmptyChunks: boolean
sideEffects: string
usedExports: string
providedExports: boolean
innerGraph: boolean
realContentHash: boolean
mangleExports: string
}
export interface RsPackRawOptions {
Expand All @@ -1005,6 +1041,7 @@ export interface RsPackRawOptions {
experiments: RawExperiments
node?: RawNodeOption
profile: boolean
bail: boolean
builtins: RawBuiltins
features: RawFeatures
}
Expand Down
2 changes: 1 addition & 1 deletion crates/node_binding/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ice/pack-binding",
"version": "0.0.4",
"version": "0.0.5",
"main": "index.js",
"types": "index.d.ts",
"napi": {
Expand Down

0 comments on commit bd58a15

Please sign in to comment.