@rspack/binding 1.4.11 → 1.5.0-beta.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/binding.js CHANGED
@@ -385,7 +385,8 @@ if (!nativeBinding) {
385
385
  throw new Error(
386
386
  `Cannot find native binding. ` +
387
387
  `npm has a bug related to optional dependencies (https://github.com/npm/cli/issues/4828). ` +
388
- 'Please try `npm i` again after removing both package-lock.json and node_modules directory.',
388
+ 'Please try `npm i` again after removing both package-lock.json and node_modules directory.' +
389
+ `\n\n${loadErrors.map((e) => e.message).join('\n')}`,
389
390
  { cause: loadErrors }
390
391
  )
391
392
  }
package/napi-binding.d.ts CHANGED
@@ -328,6 +328,7 @@ export declare class JsCompiler {
328
328
  /** Rebuild with the given option passed to the constructor */
329
329
  rebuild(changed_files: string[], removed_files: string[], callback: (err: null | Error) => void): void
330
330
  close(): Promise<void>
331
+ getVirtualFileStore(): VirtualFileStore | null
331
332
  }
332
333
 
333
334
  export declare class JsContextModuleFactoryAfterResolveData {
@@ -406,11 +407,10 @@ export declare class JsModuleGraph {
406
407
  export declare class JsResolver {
407
408
  resolveSync(path: string, request: string): string | undefined
408
409
  resolve(path: string, request: string, callback: (err: null | Error, req?: string) => void): void
409
- withOptions(raw?: RawResolveOptionsWithDependencyType | undefined | null): JsResolver
410
410
  }
411
411
 
412
412
  export declare class JsResolverFactory {
413
- constructor(pnp: boolean)
413
+ constructor(pnp: boolean, jsResolveOptions: RawResolveOptions, jsLoaderResolveOptions: RawResolveOptions)
414
414
  get(type: string, options?: RawResolveOptionsWithDependencyType): JsResolver
415
415
  }
416
416
 
@@ -444,6 +444,7 @@ export declare class ModuleGraphConnection {
444
444
  export declare class NativeWatcher {
445
445
  constructor(options: NativeWatcherOptions)
446
446
  watch(files: [Array<string>, Array<string>], directories: [Array<string>, Array<string>], missing: [Array<string>, Array<string>], callback: (err: Error | null, result: NativeWatchResult) => void, callbackUndelayed: (path: string) => void): void
447
+ triggerEvent(kind: 'change' | 'remove' | 'create', path: string): void
447
448
  /**
448
449
  * # Safety
449
450
  *
@@ -471,10 +472,31 @@ export declare class ReadonlyResourceData {
471
472
  get descriptionFilePath(): string
472
473
  }
473
474
 
475
+ export declare class ResolverFactory {
476
+ constructor(options?: NapiResolveOptions | undefined | null)
477
+ static default(): ResolverFactory
478
+ /** Clone the resolver using the same underlying cache. */
479
+ cloneWithOptions(options: NapiResolveOptions): ResolverFactory
480
+ /** Clear the underlying cache. */
481
+ clearCache(): void
482
+ /** Synchronously resolve `specifier` at an absolute path to a `directory`. */
483
+ sync(directory: string, request: string): ResolveResult
484
+ /** Asynchronously resolve `specifier` at an absolute path to a `directory`. */
485
+ async(directory: string, request: string): Promise<ResolveResult>
486
+ }
487
+
474
488
  export declare class Sources {
475
489
  _get(sourceType: string): JsCompatSourceOwned | null
476
490
  }
477
491
 
492
+ export declare class VirtualFileStore {
493
+ writeVirtualFileSync(path: string, content: string): void
494
+ batchWriteVirtualFilesSync(files: Array<JsVirtualFile>): void
495
+ }
496
+ export type JsVirtualFileStore = VirtualFileStore
497
+
498
+ export declare function async(path: string, request: string): Promise<ResolveResult>
499
+
478
500
  export interface BuiltinPlugin {
479
501
  name: BuiltinPluginName | CustomPluginName
480
502
  options: unknown
@@ -545,6 +567,7 @@ export declare enum BuiltinPluginName {
545
567
  RuntimeChunkPlugin = 'RuntimeChunkPlugin',
546
568
  SizeLimitsPlugin = 'SizeLimitsPlugin',
547
569
  NoEmitOnErrorsPlugin = 'NoEmitOnErrorsPlugin',
570
+ NormalModuleReplacementPlugin = 'NormalModuleReplacementPlugin',
548
571
  ContextReplacementPlugin = 'ContextReplacementPlugin',
549
572
  DllEntryPlugin = 'DllEntryPlugin',
550
573
  DllReferenceAgencyPlugin = 'DllReferenceAgencyPlugin',
@@ -576,11 +599,10 @@ export interface ContextInfo {
576
599
  issuerLayer?: string
577
600
  }
578
601
 
579
- export interface CssChunkingPluginOptions {
580
- strict?: boolean
581
- minSize?: number
582
- maxSize?: number
583
- exclude?: RegExp
602
+ export declare enum EnforceExtension {
603
+ Auto = 0,
604
+ Enabled = 1,
605
+ Disabled = 2
584
606
  }
585
607
 
586
608
  /**
@@ -676,13 +698,6 @@ export interface JsBeforeEmitData {
676
698
  uid?: number
677
699
  }
678
700
 
679
- export interface JsBeforeResolveArgs {
680
- request: string
681
- context: string
682
- issuer: string
683
- issuerLayer?: string
684
- }
685
-
686
701
  export interface JsBuildMeta {
687
702
  strictEsmModule: boolean
688
703
  hasTopLevelAwait: boolean
@@ -836,13 +851,6 @@ export interface JsExecuteModuleResult {
836
851
  error?: string
837
852
  }
838
853
 
839
- export interface JsFactorizeArgs {
840
- request: string
841
- context: string
842
- issuer: string
843
- issuerLayer?: string
844
- }
845
-
846
854
  export interface JsFactoryMeta {
847
855
  sideEffectFree?: boolean
848
856
  }
@@ -994,11 +1002,14 @@ export interface JsPathDataChunkLike {
994
1002
  id?: string
995
1003
  }
996
1004
 
997
- export interface JsResolveArgs {
1005
+ export interface JsResolveData {
998
1006
  request: string
999
1007
  context: string
1000
- issuer: string
1001
- issuerLayer?: string
1008
+ contextInfo: ContextInfo
1009
+ fileDependencies: Array<string>
1010
+ contextDependencies: Array<string>
1011
+ missingDependencies: Array<string>
1012
+ createData?: JsCreateData
1002
1013
  }
1003
1014
 
1004
1015
  export interface JsResolveForSchemeArgs {
@@ -1459,6 +1470,11 @@ export interface JsTap {
1459
1470
  stage: number
1460
1471
  }
1461
1472
 
1473
+ export interface JsVirtualFile {
1474
+ path: string
1475
+ content: string
1476
+ }
1477
+
1462
1478
  export interface KnownAssetInfo {
1463
1479
  /** if the asset can be long term cached forever (contains a hash) */
1464
1480
  immutable?: boolean
@@ -1500,6 +1516,178 @@ export declare function minify(source: string, options: string): Promise<Transfo
1500
1516
 
1501
1517
  export declare function minifySync(source: string, options: string): TransformOutput
1502
1518
 
1519
+ /**
1520
+ * Module Resolution Options
1521
+ *
1522
+ * Options are directly ported from [enhanced-resolve](https://github.com/webpack/enhanced-resolve#resolver-options).
1523
+ *
1524
+ * See [rspack resolve](https://rspack.rs/config/resolve) for information and examples
1525
+ */
1526
+ export interface NapiResolveOptions {
1527
+ /**
1528
+ * Path to TypeScript configuration file.
1529
+ *
1530
+ * Default `None`
1531
+ */
1532
+ tsconfig?: TsconfigOptions
1533
+ /**
1534
+ * Alias for [ResolveOptions::alias] and [ResolveOptions::fallback].
1535
+ *
1536
+ * For the second value of the tuple, `None -> AliasValue::Ignore`, Some(String) ->
1537
+ * AliasValue::Path(String)`
1538
+ * Create aliases to import or require certain modules more easily.
1539
+ * A trailing $ can also be added to the given object's keys to signify an exact match.
1540
+ */
1541
+ alias?: Record<string, Array<string | undefined | null>>
1542
+ /**
1543
+ * A list of alias fields in description files.
1544
+ * Specify a field, such as `browser`, to be parsed according to [this specification](https://github.com/defunctzombie/package-browser-field-spec).
1545
+ * Can be a path to json object such as `["path", "to", "exports"]`.
1546
+ *
1547
+ * Default `[]`
1548
+ */
1549
+ aliasFields?: (string | string[])[]
1550
+ /**
1551
+ * Condition names for exports field which defines entry points of a package.
1552
+ * The key order in the exports field is significant. During condition matching, earlier entries have higher priority and take precedence over later entries.
1553
+ *
1554
+ * Default `[]`
1555
+ */
1556
+ conditionNames?: Array<string>
1557
+ /**
1558
+ * The JSON files to use for descriptions. (There was once a `bower.json`.)
1559
+ *
1560
+ * Default `["package.json"]`
1561
+ */
1562
+ descriptionFiles?: Array<string>
1563
+ /**
1564
+ * If true, it will not allow extension-less files.
1565
+ * So by default `require('./foo')` works if `./foo` has a `.js` extension,
1566
+ * but with this enabled only `require('./foo.js')` will work.
1567
+ *
1568
+ * Default to `true` when [ResolveOptions::extensions] contains an empty string.
1569
+ * Use `Some(false)` to disable the behavior.
1570
+ * See <https://github.com/webpack/enhanced-resolve/pull/285>
1571
+ *
1572
+ * Default None, which is the same as `Some(false)` when the above empty rule is not applied.
1573
+ */
1574
+ enforceExtension?: EnforceExtension
1575
+ /**
1576
+ * A list of exports fields in description files.
1577
+ * Can be a path to json object such as `["path", "to", "exports"]`.
1578
+ *
1579
+ * Default `[["exports"]]`.
1580
+ */
1581
+ exportsFields?: (string | string[])[]
1582
+ /**
1583
+ * Fields from `package.json` which are used to provide the internal requests of a package
1584
+ * (requests starting with # are considered internal).
1585
+ *
1586
+ * Can be a path to a JSON object such as `["path", "to", "imports"]`.
1587
+ *
1588
+ * Default `[["imports"]]`.
1589
+ */
1590
+ importsFields?: (string | string[])[]
1591
+ /**
1592
+ * An object which maps extension to extension aliases.
1593
+ *
1594
+ * Default `{}`
1595
+ */
1596
+ extensionAlias?: Record<string, Array<string>>
1597
+ /**
1598
+ * Attempt to resolve these extensions in order.
1599
+ * If multiple files share the same name but have different extensions,
1600
+ * will resolve the one with the extension listed first in the array and skip the rest.
1601
+ *
1602
+ * Default `[".js", ".json", ".node"]`
1603
+ */
1604
+ extensions?: Array<string>
1605
+ /**
1606
+ * Redirect module requests when normal resolving fails.
1607
+ *
1608
+ * Default `[]`
1609
+ */
1610
+ fallback?: Record<string, Array<string | undefined | null>>
1611
+ /**
1612
+ * Request passed to resolve is already fully specified and extensions or main files are not resolved for it (they are still resolved for internal requests).
1613
+ *
1614
+ * See also rspack configuration [resolve.fullySpecified](https://rspack.rs/config/resolve#resolvefullyspecified)
1615
+ *
1616
+ * Default `false`
1617
+ */
1618
+ fullySpecified?: boolean
1619
+ /**
1620
+ * A list of main fields in description files
1621
+ *
1622
+ * Default `["main"]`.
1623
+ */
1624
+ mainFields?: string | string[]
1625
+ /**
1626
+ * The filename to be used while resolving directories.
1627
+ *
1628
+ * Default `["index"]`
1629
+ */
1630
+ mainFiles?: Array<string>
1631
+ /**
1632
+ * A list of directories to resolve modules from, can be absolute path or folder name.
1633
+ *
1634
+ * Default `["node_modules"]`
1635
+ */
1636
+ modules?: string | string[]
1637
+ /**
1638
+ * Resolve to a context instead of a file.
1639
+ *
1640
+ * Default `false`
1641
+ */
1642
+ resolveToContext?: boolean
1643
+ /**
1644
+ * Prefer to resolve module requests as relative requests instead of using modules from node_modules directories.
1645
+ *
1646
+ * Default `false`
1647
+ */
1648
+ preferRelative?: boolean
1649
+ /**
1650
+ * Prefer to resolve server-relative urls as absolute paths before falling back to resolve in ResolveOptions::roots.
1651
+ *
1652
+ * Default `false`
1653
+ */
1654
+ preferAbsolute?: boolean
1655
+ /**
1656
+ * A list of resolve restrictions to restrict the paths that a request can be resolved on.
1657
+ *
1658
+ * Default `[]`
1659
+ */
1660
+ restrictions?: Array<Restriction>
1661
+ /**
1662
+ * A list of directories where requests of server-relative URLs (starting with '/') are resolved.
1663
+ * On non-Windows systems these requests are resolved as an absolute path first.
1664
+ *
1665
+ * Default `[]`
1666
+ */
1667
+ roots?: Array<string>
1668
+ /**
1669
+ * Whether to resolve symlinks to their symlinked location.
1670
+ * When enabled, symlinked resources are resolved to their real path, not their symlinked location.
1671
+ * Note that this may cause module resolution to fail when using tools that symlink packages (like npm link).
1672
+ *
1673
+ * Default `true`
1674
+ */
1675
+ symlinks?: boolean
1676
+ /**
1677
+ * Whether to parse [module.builtinModules](https://nodejs.org/api/module.html#modulebuiltinmodules) or not.
1678
+ * For example, "zlib" will throw [crate::ResolveError::Builtin] when set to true.
1679
+ *
1680
+ * Default `false`
1681
+ */
1682
+ builtinModules?: boolean
1683
+ /**
1684
+ * Whether to enable yarn Plug'n'Play
1685
+ *
1686
+ * Default `false`
1687
+ */
1688
+ enablePnp?: boolean
1689
+ }
1690
+
1503
1691
  export interface NativeWatcherOptions {
1504
1692
  followSymlinks?: boolean
1505
1693
  pollInterval?: number
@@ -1801,6 +1989,13 @@ export interface RawCssAutoParserOptions {
1801
1989
  url?: boolean
1802
1990
  }
1803
1991
 
1992
+ export interface RawCssChunkingPluginOptions {
1993
+ strict?: boolean
1994
+ minSize?: number
1995
+ maxSize?: number
1996
+ exclude?: RegExp
1997
+ }
1998
+
1804
1999
  export interface RawCssExtractPluginOption {
1805
2000
  filename: JsFilename
1806
2001
  chunkFilename: JsFilename
@@ -1919,6 +2114,7 @@ useInputFileSystem?: false | Array<RegExp>
1919
2114
  inlineConst: boolean
1920
2115
  inlineEnum: boolean
1921
2116
  typeReexportsPresence: boolean
2117
+ lazyBarrel: boolean
1922
2118
  }
1923
2119
 
1924
2120
  export interface RawExperimentSnapshotOptions {
@@ -2099,6 +2295,7 @@ export interface RawJavascriptParserOptions {
2099
2295
  dynamicImportFetchPriority?: string
2100
2296
  url?: string
2101
2297
  exprContextCritical?: boolean
2298
+ unknownContextCritical?: boolean
2102
2299
  wrappedContextCritical?: boolean
2103
2300
  wrappedContextRegExp?: RegExp
2104
2301
  exportsPresence?: string
@@ -2309,6 +2506,11 @@ export interface RawNonStandard {
2309
2506
  deepSelectorCombinator: boolean
2310
2507
  }
2311
2508
 
2509
+ export interface RawNormalModuleReplacementPluginOptions {
2510
+ resourceRegExp: RegExp
2511
+ newResource: string | ((data: JsResolveData) => JsResolveData)
2512
+ }
2513
+
2312
2514
  export interface RawOccurrenceChunkIdsPluginOptions {
2313
2515
  prioritiseInitial?: boolean
2314
2516
  }
@@ -2342,6 +2544,7 @@ export interface RawOptions {
2342
2544
  amd?: string
2343
2545
  bail: boolean
2344
2546
  __references: Record<string, any>
2547
+ __virtual_files?: Array<JsVirtualFile>
2345
2548
  }
2346
2549
 
2347
2550
  export interface RawOutputOptions {
@@ -2483,7 +2686,7 @@ export interface RawResolveOptionsWithDependencyType {
2483
2686
  aliasFields?: Array<string>
2484
2687
  restrictions?: (string | RegExp)[]
2485
2688
  roots?: Array<string>
2486
- dependencyCategory?: string
2689
+ dependencyType?: string
2487
2690
  resolveToContext?: boolean
2488
2691
  pnp?: boolean
2489
2692
  }
@@ -2501,7 +2704,17 @@ export interface RawRsdoctorPluginOptions {
2501
2704
  }
2502
2705
 
2503
2706
  export interface RawRslibPluginOptions {
2504
- interceptApiPlugin: boolean
2707
+ /**
2708
+ * Intercept partial parse hooks of APIPlugin, expect some statements not to be parsed as API.
2709
+ * @default `false`
2710
+ */
2711
+ interceptApiPlugin?: boolean
2712
+ /**
2713
+ * Use the compact runtime for dynamic import from `modern-module`, commonly used in CommonJS output.
2714
+ * This field should not be set to `true` when using `modern-module` with ESM output, as it is already in use.
2715
+ * @default `false`
2716
+ */
2717
+ compactExternalModuleDynamicImport?: boolean
2505
2718
  }
2506
2719
 
2507
2720
  export interface RawRspackFuture {
@@ -2728,11 +2941,11 @@ export interface RegisterJsTaps {
2728
2941
  registerCompilationAfterProcessAssetsTaps: (stages: Array<number>) => Array<{ function: ((arg: JsCompilation) => void); stage: number; }>
2729
2942
  registerCompilationSealTaps: (stages: Array<number>) => Array<{ function: (() => void); stage: number; }>
2730
2943
  registerCompilationAfterSealTaps: (stages: Array<number>) => Array<{ function: (() => Promise<void>); stage: number; }>
2731
- registerNormalModuleFactoryBeforeResolveTaps: (stages: Array<number>) => Array<{ function: ((arg: JsBeforeResolveArgs) => Promise<[boolean | undefined, JsBeforeResolveArgs]>); stage: number; }>
2732
- registerNormalModuleFactoryFactorizeTaps: (stages: Array<number>) => Array<{ function: ((arg: JsFactorizeArgs) => Promise<JsFactorizeArgs>); stage: number; }>
2733
- registerNormalModuleFactoryResolveTaps: (stages: Array<number>) => Array<{ function: ((arg: JsResolveArgs) => Promise<JsResolveArgs>); stage: number; }>
2944
+ registerNormalModuleFactoryBeforeResolveTaps: (stages: Array<number>) => Array<{ function: ((arg: JsResolveData) => Promise<[boolean | undefined, JsResolveData]>); stage: number; }>
2945
+ registerNormalModuleFactoryFactorizeTaps: (stages: Array<number>) => Array<{ function: ((arg: JsResolveData) => Promise<JsResolveData>); stage: number; }>
2946
+ registerNormalModuleFactoryResolveTaps: (stages: Array<number>) => Array<{ function: ((arg: JsResolveData) => Promise<JsResolveData>); stage: number; }>
2734
2947
  registerNormalModuleFactoryResolveForSchemeTaps: (stages: Array<number>) => Array<{ function: ((arg: JsResolveForSchemeArgs) => Promise<[boolean | undefined, JsResolveForSchemeArgs]>); stage: number; }>
2735
- registerNormalModuleFactoryAfterResolveTaps: (stages: Array<number>) => Array<{ function: ((arg: string) => Promise<[boolean | undefined, JsCreateData | undefined]>); stage: number; }>
2948
+ registerNormalModuleFactoryAfterResolveTaps: (stages: Array<number>) => Array<{ function: ((arg: JsResolveData) => Promise<[boolean | undefined, JsResolveData]>); stage: number; }>
2736
2949
  registerNormalModuleFactoryCreateModuleTaps: (stages: Array<number>) => Array<{ function: ((arg: JsNormalModuleFactoryCreateModuleArgs) => Promise<void>); stage: number; }>
2737
2950
  registerContextModuleFactoryBeforeResolveTaps: (stages: Array<number>) => Array<{ function: ((arg: false | JsContextModuleFactoryBeforeResolveData) => Promise<false | JsContextModuleFactoryBeforeResolveData>); stage: number; }>
2738
2951
  registerContextModuleFactoryAfterResolveTaps: (stages: Array<number>) => Array<{ function: ((arg: false | JsContextModuleFactoryAfterResolveData) => Promise<false | JsContextModuleFactoryAfterResolveData>); stage: number; }>
@@ -2753,6 +2966,22 @@ export interface RegisterJsTaps {
2753
2966
  registerRsdoctorPluginAssetsTaps: (stages: Array<number>) => Array<{ function: ((arg: JsRsdoctorAssetPatch) => Promise<boolean | undefined>); stage: number; }>
2754
2967
  }
2755
2968
 
2969
+ export interface ResolveResult {
2970
+ path?: string
2971
+ error?: string
2972
+ /** "type" field in the package.json file */
2973
+ moduleType?: string
2974
+ }
2975
+
2976
+ /**
2977
+ * Alias Value for [ResolveOptions::alias] and [ResolveOptions::fallback].
2978
+ * Use struct because napi don't support structured union now
2979
+ */
2980
+ export interface Restriction {
2981
+ path?: string
2982
+ regex?: string
2983
+ }
2984
+
2756
2985
  export interface SourceMapDevToolPluginOptions {
2757
2986
  append?: (false | null) | string | Function
2758
2987
  columns?: boolean
@@ -2776,6 +3005,8 @@ export interface SourcePosition {
2776
3005
  column?: number
2777
3006
  }
2778
3007
 
3008
+ export declare function sync(path: string, request: string): ResolveResult
3009
+
2779
3010
  export declare function syncTraceEvent(events: Array<RawTraceEvent>): void
2780
3011
 
2781
3012
  export interface SyntheticDependencyLocation {
@@ -2813,3 +3044,25 @@ export interface TransformOutput {
2813
3044
  }
2814
3045
 
2815
3046
  export declare function transformSync(source: string, options: string): TransformOutput
3047
+
3048
+ /**
3049
+ * Tsconfig Options
3050
+ *
3051
+ * Derived from [tsconfig-paths-webpack-plugin](https://github.com/dividab/tsconfig-paths-webpack-plugin#options)
3052
+ */
3053
+ export interface TsconfigOptions {
3054
+ /**
3055
+ * Allows you to specify where to find the TypeScript configuration file.
3056
+ * You may provide
3057
+ * * a relative path to the configuration file. It will be resolved relative to cwd.
3058
+ * * an absolute path to the configuration file.
3059
+ */
3060
+ configFile: string
3061
+ /**
3062
+ * Support for Typescript Project References.
3063
+ *
3064
+ * * `'auto'`: use the `references` field from tsconfig of `config_file`.
3065
+ * * `string[]`: manually provided relative or absolute path.
3066
+ */
3067
+ references?: 'auto' | string[]
3068
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rspack/binding",
3
- "version": "1.4.11",
3
+ "version": "1.5.0-beta.1",
4
4
  "license": "MIT",
5
5
  "description": "Node binding for rspack",
6
6
  "main": "binding.js",
@@ -21,7 +21,7 @@
21
21
  "@napi-rs/cli": "3.0.4",
22
22
  "@napi-rs/wasm-runtime": "^1.0.1",
23
23
  "emnapi": "^1.4.5",
24
- "typescript": "^5.8.3"
24
+ "typescript": "^5.9.2"
25
25
  },
26
26
  "napi": {
27
27
  "binaryName": "rspack",
@@ -50,16 +50,16 @@
50
50
  }
51
51
  },
52
52
  "optionalDependencies": {
53
- "@rspack/binding-darwin-arm64": "1.4.11",
54
- "@rspack/binding-win32-arm64-msvc": "1.4.11",
55
- "@rspack/binding-linux-arm64-musl": "1.4.11",
56
- "@rspack/binding-linux-arm64-gnu": "1.4.11",
57
- "@rspack/binding-win32-ia32-msvc": "1.4.11",
58
- "@rspack/binding-darwin-x64": "1.4.11",
59
- "@rspack/binding-wasm32-wasi": "1.4.11",
60
- "@rspack/binding-linux-x64-musl": "1.4.11",
61
- "@rspack/binding-linux-x64-gnu": "1.4.11",
62
- "@rspack/binding-win32-x64-msvc": "1.4.11"
53
+ "@rspack/binding-win32-arm64-msvc": "1.5.0-beta.1",
54
+ "@rspack/binding-darwin-arm64": "1.5.0-beta.1",
55
+ "@rspack/binding-linux-arm64-gnu": "1.5.0-beta.1",
56
+ "@rspack/binding-win32-ia32-msvc": "1.5.0-beta.1",
57
+ "@rspack/binding-linux-arm64-musl": "1.5.0-beta.1",
58
+ "@rspack/binding-wasm32-wasi": "1.5.0-beta.1",
59
+ "@rspack/binding-win32-x64-msvc": "1.5.0-beta.1",
60
+ "@rspack/binding-darwin-x64": "1.5.0-beta.1",
61
+ "@rspack/binding-linux-x64-musl": "1.5.0-beta.1",
62
+ "@rspack/binding-linux-x64-gnu": "1.5.0-beta.1"
63
63
  },
64
64
  "scripts": {
65
65
  "build:dev": "node scripts/build.js",
@@ -69,6 +69,8 @@
69
69
  "build:release": "node scripts/build.js --profile release",
70
70
  "build:dev:wasm": "DISABLE_PLUGIN=1 RUST_TARGET=wasm32-wasip1-threads node scripts/build.js",
71
71
  "build:release:wasm": "DISABLE_PLUGIN=1 RUST_TARGET=wasm32-wasip1-threads node scripts/build.js --profile release-wasi",
72
+ "build:dev:browser": "DISABLE_PLUGIN=1 RUST_TARGET=wasm32-wasip1-threads BROWSER=1 node scripts/build.js",
73
+ "build:release:browser": "DISABLE_PLUGIN=1 RUST_TARGET=wasm32-wasip1-threads BROWSER=1 node scripts/build.js --profile release-wasi",
72
74
  "move-binding": "node scripts/move-binding",
73
75
  "test": "tsc -p tsconfig.type-test.json"
74
76
  }