rsbuild-plugin-dts 0.17.0 → 0.17.2

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.
@@ -1,7 +1,7 @@
1
1
  /******/ (() => { // webpackBootstrap
2
2
  /******/ var __webpack_modules__ = ({
3
3
 
4
- /***/ 26:
4
+ /***/ 73:
5
5
  /***/ (function(module, __unused_webpack_exports, __nccwpck_require__) {
6
6
 
7
7
  /* module decorator */ module = __nccwpck_require__.nmd(module);
@@ -463,13 +463,13 @@ function encode(decoded) {
463
463
 
464
464
  /***/ }),
465
465
 
466
- /***/ 485:
466
+ /***/ 96:
467
467
  /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
468
468
 
469
469
  "use strict";
470
470
 
471
471
 
472
- var sourcemapCodec = __nccwpck_require__(26);
472
+ var sourcemapCodec = __nccwpck_require__(73);
473
473
 
474
474
  class BitSet {
475
475
  constructor(arg) {
@@ -2119,7 +2119,7 @@ module.exports = MagicString;
2119
2119
  /******/ // startup
2120
2120
  /******/ // Load entry module and return exports
2121
2121
  /******/ // This entry module is referenced by other modules so it can't be inlined
2122
- /******/ var __webpack_exports__ = __nccwpck_require__(485);
2122
+ /******/ var __webpack_exports__ = __nccwpck_require__(96);
2123
2123
  /******/ module.exports = __webpack_exports__;
2124
2124
  /******/
2125
2125
  /******/ })()
@@ -1,7 +1,7 @@
1
1
  /******/ (() => { // webpackBootstrap
2
2
  /******/ var __webpack_modules__ = ({
3
3
 
4
- /***/ 456:
4
+ /***/ 831:
5
5
  /***/ ((module) => {
6
6
 
7
7
  let p = process || {}, argv = p.argv || [], env = p.env || {}
@@ -125,7 +125,7 @@ module.exports.createColors = createColors
125
125
  /******/ // startup
126
126
  /******/ // Load entry module and return exports
127
127
  /******/ // This entry module is referenced by other modules so it can't be inlined
128
- /******/ var __webpack_exports__ = __nccwpck_require__(456);
128
+ /******/ var __webpack_exports__ = __nccwpck_require__(831);
129
129
  /******/ module.exports = __webpack_exports__;
130
130
  /******/
131
131
  /******/ })()
@@ -1,14 +1,14 @@
1
1
  /******/ (() => { // webpackBootstrap
2
2
  /******/ var __webpack_modules__ = ({
3
3
 
4
- /***/ 925:
4
+ /***/ 676:
5
5
  /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
6
6
 
7
7
  "use strict";
8
8
 
9
9
 
10
- const pico = __nccwpck_require__(771);
11
- const utils = __nccwpck_require__(560);
10
+ const pico = __nccwpck_require__(582);
11
+ const utils = __nccwpck_require__(473);
12
12
 
13
13
  function picomatch(glob, options, returnState = false) {
14
14
  // default to os.platform()
@@ -26,7 +26,7 @@ module.exports = picomatch;
26
26
 
27
27
  /***/ }),
28
28
 
29
- /***/ 820:
29
+ /***/ 717:
30
30
  /***/ ((module) => {
31
31
 
32
32
  "use strict";
@@ -214,14 +214,14 @@ module.exports = {
214
214
 
215
215
  /***/ }),
216
216
 
217
- /***/ 26:
217
+ /***/ 339:
218
218
  /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
219
219
 
220
220
  "use strict";
221
221
 
222
222
 
223
- const constants = __nccwpck_require__(820);
224
- const utils = __nccwpck_require__(560);
223
+ const constants = __nccwpck_require__(717);
224
+ const utils = __nccwpck_require__(473);
225
225
 
226
226
  /**
227
227
  * Constants
@@ -1307,16 +1307,16 @@ module.exports = parse;
1307
1307
 
1308
1308
  /***/ }),
1309
1309
 
1310
- /***/ 771:
1310
+ /***/ 582:
1311
1311
  /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
1312
1312
 
1313
1313
  "use strict";
1314
1314
 
1315
1315
 
1316
- const scan = __nccwpck_require__(712);
1317
- const parse = __nccwpck_require__(26);
1318
- const utils = __nccwpck_require__(560);
1319
- const constants = __nccwpck_require__(820);
1316
+ const scan = __nccwpck_require__(279);
1317
+ const parse = __nccwpck_require__(339);
1318
+ const utils = __nccwpck_require__(473);
1319
+ const constants = __nccwpck_require__(717);
1320
1320
  const isObject = val => val && typeof val === 'object' && !Array.isArray(val);
1321
1321
 
1322
1322
  /**
@@ -1656,13 +1656,13 @@ module.exports = picomatch;
1656
1656
 
1657
1657
  /***/ }),
1658
1658
 
1659
- /***/ 712:
1659
+ /***/ 279:
1660
1660
  /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
1661
1661
 
1662
1662
  "use strict";
1663
1663
 
1664
1664
 
1665
- const utils = __nccwpck_require__(560);
1665
+ const utils = __nccwpck_require__(473);
1666
1666
  const {
1667
1667
  CHAR_ASTERISK, /* * */
1668
1668
  CHAR_AT, /* @ */
@@ -1679,7 +1679,7 @@ const {
1679
1679
  CHAR_RIGHT_CURLY_BRACE, /* } */
1680
1680
  CHAR_RIGHT_PARENTHESES, /* ) */
1681
1681
  CHAR_RIGHT_SQUARE_BRACKET /* ] */
1682
- } = __nccwpck_require__(820);
1682
+ } = __nccwpck_require__(717);
1683
1683
 
1684
1684
  const isPathSeparator = code => {
1685
1685
  return code === CHAR_FORWARD_SLASH || code === CHAR_BACKWARD_SLASH;
@@ -2055,7 +2055,7 @@ module.exports = scan;
2055
2055
 
2056
2056
  /***/ }),
2057
2057
 
2058
- /***/ 560:
2058
+ /***/ 473:
2059
2059
  /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
2060
2060
 
2061
2061
  "use strict";
@@ -2067,7 +2067,7 @@ const {
2067
2067
  REGEX_REMOVE_BACKSLASH,
2068
2068
  REGEX_SPECIAL_CHARS,
2069
2069
  REGEX_SPECIAL_CHARS_GLOBAL
2070
- } = __nccwpck_require__(820);
2070
+ } = __nccwpck_require__(717);
2071
2071
 
2072
2072
  exports.isObject = val => val !== null && typeof val === 'object' && !Array.isArray(val);
2073
2073
  exports.hasRegexChars = str => REGEX_SPECIAL_CHARS.test(str);
@@ -2151,7 +2151,7 @@ module.exports = require("path");
2151
2151
 
2152
2152
  /***/ }),
2153
2153
 
2154
- /***/ 399:
2154
+ /***/ 278:
2155
2155
  /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
2156
2156
 
2157
2157
  //#region rolldown:runtime
@@ -2614,8 +2614,8 @@ var APIBuilder = class {
2614
2614
  let pm = null;
2615
2615
  /* c8 ignore next 6 */
2616
2616
  try {
2617
- /*require.resolve*/(925);
2618
- pm = __nccwpck_require__(925);
2617
+ /*require.resolve*/(676);
2618
+ pm = __nccwpck_require__(676);
2619
2619
  } catch {}
2620
2620
  var Builder = class {
2621
2621
  globCache = {};
@@ -2811,8 +2811,8 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
2811
2811
 
2812
2812
  //#endregion
2813
2813
  const path = __toESM(__nccwpck_require__(928));
2814
- const fdir = __toESM(__nccwpck_require__(399));
2815
- const picomatch = __toESM(__nccwpck_require__(925));
2814
+ const fdir = __toESM(__nccwpck_require__(278));
2815
+ const picomatch = __toESM(__nccwpck_require__(676));
2816
2816
 
2817
2817
  //#region src/utils.ts
2818
2818
  const ONLY_PARENT_DIRECTORIES = /^(\/?\.\.)+$/;
@@ -1,11 +1,11 @@
1
1
  /******/ (() => { // webpackBootstrap
2
2
  /******/ var __webpack_modules__ = ({
3
3
 
4
- /***/ 883:
4
+ /***/ 598:
5
5
  /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
6
6
 
7
- const parse = __nccwpck_require__(396)
8
- const stringify = __nccwpck_require__(826)
7
+ const parse = __nccwpck_require__(285)
8
+ const stringify = __nccwpck_require__(603)
9
9
 
10
10
  const JSON5 = {
11
11
  parse,
@@ -17,10 +17,10 @@ module.exports = JSON5
17
17
 
18
18
  /***/ }),
19
19
 
20
- /***/ 396:
20
+ /***/ 285:
21
21
  /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
22
22
 
23
- const util = __nccwpck_require__(219)
23
+ const util = __nccwpck_require__(944)
24
24
 
25
25
  let source
26
26
  let parseState
@@ -1138,10 +1138,10 @@ function syntaxError (message) {
1138
1138
 
1139
1139
  /***/ }),
1140
1140
 
1141
- /***/ 826:
1141
+ /***/ 603:
1142
1142
  /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
1143
1143
 
1144
- const util = __nccwpck_require__(219)
1144
+ const util = __nccwpck_require__(944)
1145
1145
 
1146
1146
  module.exports = function stringify (value, replacer, space) {
1147
1147
  const stack = []
@@ -1406,7 +1406,7 @@ module.exports = function stringify (value, replacer, space) {
1406
1406
 
1407
1407
  /***/ }),
1408
1408
 
1409
- /***/ 984:
1409
+ /***/ 773:
1410
1410
  /***/ ((module) => {
1411
1411
 
1412
1412
  // This is a generated file. Do not edit.
@@ -1417,10 +1417,10 @@ module.exports.ID_Continue = /[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\
1417
1417
 
1418
1418
  /***/ }),
1419
1419
 
1420
- /***/ 219:
1420
+ /***/ 944:
1421
1421
  /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
1422
1422
 
1423
- const unicode = __nccwpck_require__(984)
1423
+ const unicode = __nccwpck_require__(773)
1424
1424
 
1425
1425
  module.exports = {
1426
1426
  isSpaceSeparator (c) {
@@ -1459,7 +1459,7 @@ module.exports = {
1459
1459
 
1460
1460
  /***/ }),
1461
1461
 
1462
- /***/ 351:
1462
+ /***/ 78:
1463
1463
  /***/ ((module) => {
1464
1464
 
1465
1465
  "use strict";
@@ -1730,7 +1730,7 @@ module.exports = function (args, opts) {
1730
1730
 
1731
1731
  /***/ }),
1732
1732
 
1733
- /***/ 299:
1733
+ /***/ 938:
1734
1734
  /***/ ((module) => {
1735
1735
 
1736
1736
  "use strict";
@@ -1752,14 +1752,14 @@ module.exports = x => {
1752
1752
 
1753
1753
  /***/ }),
1754
1754
 
1755
- /***/ 350:
1755
+ /***/ 347:
1756
1756
  /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
1757
1757
 
1758
1758
  "use strict";
1759
1759
 
1760
1760
  Object.defineProperty(exports, "__esModule", ({ value: true }));
1761
1761
  exports.configLoader = exports.loadConfig = void 0;
1762
- var TsConfigLoader2 = __nccwpck_require__(573);
1762
+ var TsConfigLoader2 = __nccwpck_require__(875);
1763
1763
  var path = __nccwpck_require__(928);
1764
1764
  function loadConfig(cwd) {
1765
1765
  if (cwd === void 0) { cwd = process.cwd(); }
@@ -1807,7 +1807,7 @@ exports.configLoader = configLoader;
1807
1807
 
1808
1808
  /***/ }),
1809
1809
 
1810
- /***/ 97:
1810
+ /***/ 818:
1811
1811
  /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
1812
1812
 
1813
1813
  "use strict";
@@ -1875,7 +1875,7 @@ exports.removeExtension = removeExtension;
1875
1875
 
1876
1876
  /***/ }),
1877
1877
 
1878
- /***/ 967:
1878
+ /***/ 322:
1879
1879
  /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
1880
1880
 
1881
1881
  "use strict";
@@ -1936,7 +1936,7 @@ function getPrefixLength(pattern) {
1936
1936
 
1937
1937
  /***/ }),
1938
1938
 
1939
- /***/ 408:
1939
+ /***/ 115:
1940
1940
  /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
1941
1941
 
1942
1942
  "use strict";
@@ -1944,9 +1944,9 @@ function getPrefixLength(pattern) {
1944
1944
  Object.defineProperty(exports, "__esModule", ({ value: true }));
1945
1945
  exports.matchFromAbsolutePathsAsync = exports.createMatchPathAsync = void 0;
1946
1946
  var path = __nccwpck_require__(928);
1947
- var TryPath = __nccwpck_require__(105);
1948
- var MappingEntry = __nccwpck_require__(967);
1949
- var Filesystem = __nccwpck_require__(97);
1947
+ var TryPath = __nccwpck_require__(310);
1948
+ var MappingEntry = __nccwpck_require__(322);
1949
+ var Filesystem = __nccwpck_require__(818);
1950
1950
  /**
1951
1951
  * See the sync version for docs.
1952
1952
  */
@@ -2059,7 +2059,7 @@ function findFirstExistingPath(tryPaths, readJson, fileExists, doneCallback, ind
2059
2059
 
2060
2060
  /***/ }),
2061
2061
 
2062
- /***/ 881:
2062
+ /***/ 256:
2063
2063
  /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
2064
2064
 
2065
2065
  "use strict";
@@ -2067,9 +2067,9 @@ function findFirstExistingPath(tryPaths, readJson, fileExists, doneCallback, ind
2067
2067
  Object.defineProperty(exports, "__esModule", ({ value: true }));
2068
2068
  exports.matchFromAbsolutePaths = exports.createMatchPath = void 0;
2069
2069
  var path = __nccwpck_require__(928);
2070
- var Filesystem = __nccwpck_require__(97);
2071
- var MappingEntry = __nccwpck_require__(967);
2072
- var TryPath = __nccwpck_require__(105);
2070
+ var Filesystem = __nccwpck_require__(818);
2071
+ var MappingEntry = __nccwpck_require__(322);
2072
+ var TryPath = __nccwpck_require__(310);
2073
2073
  /**
2074
2074
  * Creates a function that can resolve paths according to tsconfig paths property.
2075
2075
  *
@@ -2157,7 +2157,7 @@ function findFirstExistingPath(tryPaths, readJson, fileExists, mainFields) {
2157
2157
 
2158
2158
  /***/ }),
2159
2159
 
2160
- /***/ 35:
2160
+ /***/ 684:
2161
2161
  /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
2162
2162
 
2163
2163
  "use strict";
@@ -2173,8 +2173,8 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
2173
2173
  };
2174
2174
  Object.defineProperty(exports, "__esModule", ({ value: true }));
2175
2175
  exports.register = void 0;
2176
- var match_path_sync_1 = __nccwpck_require__(881);
2177
- var config_loader_1 = __nccwpck_require__(350);
2176
+ var match_path_sync_1 = __nccwpck_require__(256);
2177
+ var config_loader_1 = __nccwpck_require__(347);
2178
2178
  var noOp = function () { return void 0; };
2179
2179
  function getCoreModules(builtinModules) {
2180
2180
  builtinModules = builtinModules || [
@@ -2228,7 +2228,7 @@ function register(params) {
2228
2228
  }
2229
2229
  else {
2230
2230
  // eslint-disable-next-line
2231
- var minimist = __nccwpck_require__(351);
2231
+ var minimist = __nccwpck_require__(78);
2232
2232
  var argv = minimist(process.argv.slice(2), {
2233
2233
  // eslint-disable-next-line id-denylist
2234
2234
  string: ["project"],
@@ -2276,7 +2276,7 @@ exports.register = register;
2276
2276
 
2277
2277
  /***/ }),
2278
2278
 
2279
- /***/ 105:
2279
+ /***/ 310:
2280
2280
  /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
2281
2281
 
2282
2282
  "use strict";
@@ -2285,7 +2285,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
2285
2285
  exports.exhaustiveTypeException = exports.getStrippedPath = exports.getPathsToTry = void 0;
2286
2286
  var path = __nccwpck_require__(928);
2287
2287
  var path_1 = __nccwpck_require__(928);
2288
- var filesystem_1 = __nccwpck_require__(97);
2288
+ var filesystem_1 = __nccwpck_require__(818);
2289
2289
  /**
2290
2290
  * Builds a list of all physical paths to try by:
2291
2291
  * 1. Check for file named exactly as request.
@@ -2374,7 +2374,7 @@ function matchStar(pattern, search) {
2374
2374
 
2375
2375
  /***/ }),
2376
2376
 
2377
- /***/ 573:
2377
+ /***/ 875:
2378
2378
  /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
2379
2379
 
2380
2380
  "use strict";
@@ -2395,9 +2395,9 @@ exports.loadTsconfig = exports.walkForTsConfig = exports.tsConfigLoader = void 0
2395
2395
  var path = __nccwpck_require__(928);
2396
2396
  var fs = __nccwpck_require__(896);
2397
2397
  // eslint-disable-next-line @typescript-eslint/no-require-imports
2398
- var JSON5 = __nccwpck_require__(883);
2398
+ var JSON5 = __nccwpck_require__(598);
2399
2399
  // eslint-disable-next-line @typescript-eslint/no-require-imports
2400
- var StripBom = __nccwpck_require__(299);
2400
+ var StripBom = __nccwpck_require__(938);
2401
2401
  function tsConfigLoader(_a) {
2402
2402
  var getEnv = _a.getEnv, cwd = _a.cwd, _b = _a.loadSync, loadSync = _b === void 0 ? loadSyncDefault : _b;
2403
2403
  var TS_NODE_PROJECT = getEnv("TS_NODE_PROJECT");
@@ -2600,15 +2600,15 @@ var exports = __webpack_exports__;
2600
2600
  Object.defineProperty(exports, "__esModule", ({ value: true }));
2601
2601
  exports.loadConfig = exports.register = exports.matchFromAbsolutePathsAsync = exports.createMatchPathAsync = exports.matchFromAbsolutePaths = exports.createMatchPath = void 0;
2602
2602
  // register is used from register.js in root dir
2603
- var match_path_sync_1 = __nccwpck_require__(881);
2603
+ var match_path_sync_1 = __nccwpck_require__(256);
2604
2604
  Object.defineProperty(exports, "createMatchPath", ({ enumerable: true, get: function () { return match_path_sync_1.createMatchPath; } }));
2605
2605
  Object.defineProperty(exports, "matchFromAbsolutePaths", ({ enumerable: true, get: function () { return match_path_sync_1.matchFromAbsolutePaths; } }));
2606
- var match_path_async_1 = __nccwpck_require__(408);
2606
+ var match_path_async_1 = __nccwpck_require__(115);
2607
2607
  Object.defineProperty(exports, "createMatchPathAsync", ({ enumerable: true, get: function () { return match_path_async_1.createMatchPathAsync; } }));
2608
2608
  Object.defineProperty(exports, "matchFromAbsolutePathsAsync", ({ enumerable: true, get: function () { return match_path_async_1.matchFromAbsolutePathsAsync; } }));
2609
- var register_1 = __nccwpck_require__(35);
2609
+ var register_1 = __nccwpck_require__(684);
2610
2610
  Object.defineProperty(exports, "register", ({ enumerable: true, get: function () { return register_1.register; } }));
2611
- var config_loader_1 = __nccwpck_require__(350);
2611
+ var config_loader_1 = __nccwpck_require__(347);
2612
2612
  Object.defineProperty(exports, "loadConfig", ({ enumerable: true, get: function () { return config_loader_1.loadConfig; } }));
2613
2613
  //# sourceMappingURL=index.js.map
2614
2614
  })();
package/dist/utils.js CHANGED
@@ -10,7 +10,8 @@ import magic_string from "../compiled/magic-string/index.js";
10
10
  import picocolors from "../compiled/picocolors/index.js";
11
11
  import { convertPathToPattern, glob } from "../compiled/tinyglobby/index.js";
12
12
  import { createRequire as __WEBPACK_EXTERNAL_createRequire } from "node:module";
13
- const tsconfig_paths_index_js_namespaceObject = __WEBPACK_EXTERNAL_createRequire(import.meta.url)("../compiled/tsconfig-paths/index.js");
13
+ const __WEBPACK_EXTERNAL_createRequire_require = __WEBPACK_EXTERNAL_createRequire(import.meta.url);
14
+ const tsconfig_paths_index_js_namespaceObject = __WEBPACK_EXTERNAL_createRequire_require("../compiled/tsconfig-paths/index.js");
14
15
  const { createMatchPath, loadConfig } = tsconfig_paths_index_js_namespaceObject;
15
16
  const utils_filename = fileURLToPath(import.meta.url);
16
17
  const utils_require = createRequire(utils_filename);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rsbuild-plugin-dts",
3
- "version": "0.17.0",
3
+ "version": "0.17.2",
4
4
  "description": "Rsbuild plugin that supports emitting declaration files for TypeScript.",
5
5
  "homepage": "https://rslib.rs",
6
6
  "bugs": {
@@ -29,14 +29,14 @@
29
29
  "@ast-grep/napi": "0.37.0"
30
30
  },
31
31
  "devDependencies": {
32
- "@microsoft/api-extractor": "^7.53.3",
33
- "@rsbuild/core": "~1.6.0",
34
- "@typescript/native-preview": "7.0.0-dev.20251026.1",
32
+ "@microsoft/api-extractor": "^7.54.0",
33
+ "@rsbuild/core": "~1.6.6",
34
+ "@typescript/native-preview": "7.0.0-dev.20251109.1",
35
35
  "magic-string": "^0.30.21",
36
36
  "picocolors": "1.1.1",
37
- "prebundle": "1.4.2",
37
+ "prebundle": "1.5.0",
38
38
  "rsbuild-plugin-publint": "^0.3.3",
39
- "rslib": "npm:@rslib/core@0.16.1",
39
+ "rslib": "npm:@rslib/core@0.17.1",
40
40
  "tinyglobby": "0.2.14",
41
41
  "tsconfig-paths": "^4.2.0",
42
42
  "typescript": "^5.9.3",