@rspack/binding
Advanced tools
Comparing version 0.0.0-bcf6bbc44-20221125091333 to 0.0.0-c74d868c76-20221213160302
@@ -17,4 +17,10 @@ /* tslint:disable */ | ||
*/ | ||
presetEnv: Array<string> | ||
presetEnv?: Array<string> | ||
modules?: RawCssModulesConfig | ||
} | ||
export interface RawCssModulesConfig { | ||
localsConvention?: string | ||
localIdentName?: string | ||
exportsOnly?: boolean | ||
} | ||
export interface RawDecoratorOptions { | ||
@@ -75,2 +81,6 @@ legacy: boolean | ||
} | ||
export interface Minification { | ||
passes?: number | ||
enable?: boolean | ||
} | ||
export interface RawBuiltins { | ||
@@ -80,3 +90,3 @@ html?: Array<RawHtmlPluginConfig> | ||
postcss?: RawPostCssConfig | ||
minify?: boolean | ||
minify?: Minification | ||
polyfill?: boolean | ||
@@ -86,2 +96,3 @@ browserslist?: Array<string> | ||
treeShaking?: boolean | ||
sideEffects?: boolean | ||
progress?: RawProgressPluginConfig | ||
@@ -91,5 +102,23 @@ react?: RawReactOptions | ||
} | ||
export interface RawCacheOptions { | ||
cacheType: string | ||
maxGenerations: number | ||
maxAge: number | ||
profile: boolean | ||
buildDependencies: Array<string> | ||
cacheDirectory: string | ||
cacheLocation: string | ||
name: string | ||
version: string | ||
} | ||
export interface RawDevServer { | ||
hot?: boolean | ||
} | ||
export interface RawEntryItem { | ||
import: Array<string> | ||
runtime?: string | ||
} | ||
export interface RawExperiments { | ||
lazyCompilation: boolean | ||
} | ||
/** | ||
@@ -129,2 +158,4 @@ * `loader` is for js side loader, `builtin_loader` is for rust side loader, | ||
test?: RawModuleRuleCondition | ||
include?: Array<RawModuleRuleCondition> | ||
exclude?: Array<RawModuleRuleCondition> | ||
/** | ||
@@ -159,2 +190,3 @@ * A condition matcher matching an absolute path. | ||
splitChunks?: RawSplitChunksOptions | ||
moduleIds?: string | ||
} | ||
@@ -170,2 +202,3 @@ export interface RawOutputOptions { | ||
uniqueName?: string | ||
library?: string | ||
} | ||
@@ -181,4 +214,14 @@ export interface RawResolveOptions { | ||
symlinks?: boolean | ||
tsconfig?: string | ||
tsConfigPath?: string | ||
} | ||
export interface RawSnapshotStrategy { | ||
hash: boolean | ||
timestamp: boolean | ||
} | ||
export interface RawSnapshotOptions { | ||
resolveBuildDependencies: RawSnapshotStrategy | ||
buildDependencies: RawSnapshotStrategy | ||
resolve: RawSnapshotStrategy | ||
module: RawSnapshotStrategy | ||
} | ||
export interface RawSplitChunksOptions { | ||
@@ -199,3 +242,3 @@ cacheGroups?: Record<string, RawCacheGroupOptions> | ||
export interface RawOptions { | ||
entry?: Record<string, string> | ||
entry?: Record<string, RawEntryItem> | ||
mode?: string | ||
@@ -214,2 +257,5 @@ target?: string[] | ||
devServer?: RawDevServer | ||
snapshot?: RawSnapshotOptions | ||
cache?: RawCacheOptions | ||
experiments?: RawExperiments | ||
} | ||
@@ -332,2 +378,5 @@ export interface JsAssetInfoRelated { | ||
getAsset(name: string): JsAsset | null | ||
getAssetSource(name: string): JsCompatSource | null | ||
getAssetFilenames(): Array<string> | ||
hasAsset(name: string): boolean | ||
emitAsset(filename: string, source: JsCompatSource, assetInfo: JsAssetInfo): void | ||
@@ -334,0 +383,0 @@ deleteAsset(filename: string): void |
{ | ||
"name": "@rspack/binding", | ||
"version": "0.0.0-bcf6bbc44-20221125091333", | ||
"version": "0.0.0-c74d868c76-20221213160302", | ||
"description": "Node binding for rspack", | ||
@@ -25,2 +25,3 @@ "main": "binding.js", | ||
"build:debug": "napi build --platform --js false --dts binding.d.ts --config napirs.rc.json", | ||
"build:debug:x64": "napi build --platform --js false --dts binding.d.ts --config napirs.rc.json --target x86_64-apple-darwin", | ||
"build:release:all": "run-p build:release build:release:x64 build:release:linux", | ||
@@ -27,0 +28,0 @@ "build:release": "napi build --release --platform --js false --dts binding.d.ts --config napirs.rc.json", |
Sorry, the diff of this file is not supported yet
45693242
622