@rsbuild/core 1.1.0-beta.1 → 1.1.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/bin/rsbuild.js +14 -2
- package/compiled/css-loader/index.js +46 -46
- package/compiled/html-rspack-plugin/index.js +14 -14
- package/compiled/http-proxy-middleware/index.d.ts +4 -3
- package/compiled/open/index.d.ts +153 -1
- package/compiled/postcss/index.js +120 -114
- package/compiled/postcss/package.json +1 -1
- package/compiled/postcss-load-config/index.js +10 -10
- package/compiled/postcss-loader/index.js +11 -11
- package/compiled/rsbuild-dev-middleware/index.js +64 -101
- package/compiled/rsbuild-dev-middleware/package.json +1 -1
- package/compiled/rspack-manifest-plugin/index.d.ts +44 -1
- package/compiled/rspack-manifest-plugin/index.js +4 -4
- package/compiled/rspack-manifest-plugin/package.json +1 -1
- package/compiled/style-loader/index.js +10 -10
- package/compiled/ws/index.d.ts +8 -0
- package/dist/client/hmr.js +195 -213
- package/dist/client/overlay.js +88 -90
- package/dist/ignoreCssLoader.cjs +65 -29
- package/dist/index.cjs +11039 -13595
- package/dist/index.js +10796 -13635
- package/dist/transformLoader.cjs +77 -51
- package/dist/transformRawLoader.cjs +105 -60
- package/dist-types/config.d.ts +1 -1
- package/dist-types/configChain.d.ts +1 -1
- package/dist-types/helpers/index.d.ts +3 -1
- package/dist-types/logger.d.ts +1 -1
- package/dist-types/plugins/lazyCompilation.d.ts +1 -1
- package/dist-types/provider/createCompiler.d.ts +1 -1
- package/dist-types/server/cliShortcuts.d.ts +2 -1
- package/dist-types/server/compilerDevMiddleware.d.ts +4 -3
- package/dist-types/server/devServer.d.ts +1 -1
- package/dist-types/server/helper.d.ts +1 -0
- package/dist-types/server/httpServer.d.ts +1 -1
- package/dist-types/server/middlewares.d.ts +8 -2
- package/dist-types/server/prodServer.d.ts +1 -1
- package/dist-types/types/config.d.ts +12 -7
- package/dist-types/types/hooks.d.ts +1 -1
- package/dist-types/types/plugin.d.ts +2 -2
- package/dist-types/types/rsbuild.d.ts +2 -6
- package/dist-types/types/rspack.d.ts +1 -1
- package/dist-types/types/thirdParty.d.ts +1 -1
- package/package.json +16 -15
package/bin/rsbuild.js
CHANGED
|
@@ -1,9 +1,21 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import
|
|
2
|
+
import nodeModule from 'node:module';
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
// enable on-disk code caching of all modules loaded by Node.js
|
|
5
|
+
// requires Nodejs >= 22.8.0
|
|
6
|
+
const { enableCompileCache } = nodeModule;
|
|
7
|
+
if (enableCompileCache) {
|
|
8
|
+
try {
|
|
9
|
+
enableCompileCache();
|
|
10
|
+
} catch {
|
|
11
|
+
// ignore errors
|
|
12
|
+
}
|
|
13
|
+
}
|
|
5
14
|
|
|
6
15
|
async function main() {
|
|
16
|
+
const { __internalHelper, logger } = await import('../dist/index.js');
|
|
17
|
+
const { runCli, prepareCli } = __internalHelper;
|
|
18
|
+
|
|
7
19
|
prepareCli();
|
|
8
20
|
|
|
9
21
|
try {
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
(() => {
|
|
2
2
|
var __webpack_modules__ = {
|
|
3
|
-
|
|
3
|
+
7890: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
4
4
|
"use strict";
|
|
5
|
-
const loader = __nccwpck_require__(
|
|
5
|
+
const loader = __nccwpck_require__(4436);
|
|
6
6
|
module.exports = loader.default;
|
|
7
7
|
module.exports.defaultGetLocalIdent =
|
|
8
|
-
__nccwpck_require__(
|
|
8
|
+
__nccwpck_require__(3193).defaultGetLocalIdent;
|
|
9
9
|
},
|
|
10
|
-
|
|
10
|
+
4436: (__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
11
11
|
"use strict";
|
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
13
|
exports["default"] = loader;
|
|
14
14
|
var _postcss = _interopRequireDefault(__nccwpck_require__(9961));
|
|
15
|
-
var _package = _interopRequireDefault(__nccwpck_require__(
|
|
15
|
+
var _package = _interopRequireDefault(__nccwpck_require__(8505));
|
|
16
16
|
var _semver = { satisfies: () => true };
|
|
17
|
-
var _options = _interopRequireDefault(__nccwpck_require__(
|
|
18
|
-
var _plugins = __nccwpck_require__(
|
|
19
|
-
var _utils = __nccwpck_require__(
|
|
17
|
+
var _options = _interopRequireDefault(__nccwpck_require__(116));
|
|
18
|
+
var _plugins = __nccwpck_require__(4660);
|
|
19
|
+
var _utils = __nccwpck_require__(3193);
|
|
20
20
|
function _interopRequireDefault(obj) {
|
|
21
21
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
22
22
|
}
|
|
@@ -243,7 +243,7 @@
|
|
|
243
243
|
callback(null, `${importCode}${moduleCode}${exportCode}`);
|
|
244
244
|
}
|
|
245
245
|
},
|
|
246
|
-
|
|
246
|
+
4660: (__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
247
247
|
"use strict";
|
|
248
248
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
249
249
|
Object.defineProperty(exports, "icssParser", {
|
|
@@ -265,22 +265,22 @@
|
|
|
265
265
|
},
|
|
266
266
|
});
|
|
267
267
|
var _postcssImportParser = _interopRequireDefault(
|
|
268
|
-
__nccwpck_require__(
|
|
268
|
+
__nccwpck_require__(2420),
|
|
269
269
|
);
|
|
270
270
|
var _postcssIcssParser = _interopRequireDefault(
|
|
271
|
-
__nccwpck_require__(
|
|
271
|
+
__nccwpck_require__(1124),
|
|
272
272
|
);
|
|
273
|
-
var _postcssUrlParser = _interopRequireDefault(__nccwpck_require__(
|
|
273
|
+
var _postcssUrlParser = _interopRequireDefault(__nccwpck_require__(411));
|
|
274
274
|
function _interopRequireDefault(obj) {
|
|
275
275
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
276
276
|
}
|
|
277
277
|
},
|
|
278
|
-
|
|
278
|
+
1124: (__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
279
279
|
"use strict";
|
|
280
280
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
281
281
|
exports["default"] = void 0;
|
|
282
|
-
var _icssUtils = __nccwpck_require__(
|
|
283
|
-
var _utils = __nccwpck_require__(
|
|
282
|
+
var _icssUtils = __nccwpck_require__(5707);
|
|
283
|
+
var _utils = __nccwpck_require__(3193);
|
|
284
284
|
const plugin = (options = {}) => ({
|
|
285
285
|
postcssPlugin: "postcss-icss-parser",
|
|
286
286
|
async OnceExit(root) {
|
|
@@ -379,14 +379,14 @@
|
|
|
379
379
|
plugin.postcss = true;
|
|
380
380
|
var _default = (exports["default"] = plugin);
|
|
381
381
|
},
|
|
382
|
-
|
|
382
|
+
2420: (__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
383
383
|
"use strict";
|
|
384
384
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
385
385
|
exports["default"] = void 0;
|
|
386
386
|
var _postcssValueParser = _interopRequireDefault(
|
|
387
387
|
__nccwpck_require__(7555),
|
|
388
388
|
);
|
|
389
|
-
var _utils = __nccwpck_require__(
|
|
389
|
+
var _utils = __nccwpck_require__(3193);
|
|
390
390
|
function _interopRequireDefault(obj) {
|
|
391
391
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
392
392
|
}
|
|
@@ -691,14 +691,14 @@
|
|
|
691
691
|
plugin.postcss = true;
|
|
692
692
|
var _default = (exports["default"] = plugin);
|
|
693
693
|
},
|
|
694
|
-
|
|
694
|
+
411: (__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
695
695
|
"use strict";
|
|
696
696
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
697
697
|
exports["default"] = void 0;
|
|
698
698
|
var _postcssValueParser = _interopRequireDefault(
|
|
699
699
|
__nccwpck_require__(7555),
|
|
700
700
|
);
|
|
701
|
-
var _utils = __nccwpck_require__(
|
|
701
|
+
var _utils = __nccwpck_require__(3193);
|
|
702
702
|
function _interopRequireDefault(obj) {
|
|
703
703
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
704
704
|
}
|
|
@@ -1041,7 +1041,7 @@
|
|
|
1041
1041
|
plugin.postcss = true;
|
|
1042
1042
|
var _default = (exports["default"] = plugin);
|
|
1043
1043
|
},
|
|
1044
|
-
|
|
1044
|
+
3193: (__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
1045
1045
|
"use strict";
|
|
1046
1046
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1047
1047
|
exports.WEBPACK_IGNORE_COMMENT_REGEXP = void 0;
|
|
@@ -1074,16 +1074,16 @@
|
|
|
1074
1074
|
var _url = __nccwpck_require__(7310);
|
|
1075
1075
|
var _path = _interopRequireDefault(__nccwpck_require__(1017));
|
|
1076
1076
|
var _postcssModulesValues = _interopRequireDefault(
|
|
1077
|
-
__nccwpck_require__(
|
|
1077
|
+
__nccwpck_require__(5165),
|
|
1078
1078
|
);
|
|
1079
1079
|
var _postcssModulesLocalByDefault = _interopRequireDefault(
|
|
1080
|
-
__nccwpck_require__(
|
|
1080
|
+
__nccwpck_require__(5419),
|
|
1081
1081
|
);
|
|
1082
1082
|
var _postcssModulesExtractImports = _interopRequireDefault(
|
|
1083
|
-
__nccwpck_require__(
|
|
1083
|
+
__nccwpck_require__(5248),
|
|
1084
1084
|
);
|
|
1085
1085
|
var _postcssModulesScope = _interopRequireDefault(
|
|
1086
|
-
__nccwpck_require__(
|
|
1086
|
+
__nccwpck_require__(5787),
|
|
1087
1087
|
);
|
|
1088
1088
|
function _interopRequireDefault(obj) {
|
|
1089
1089
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
@@ -2276,7 +2276,7 @@
|
|
|
2276
2276
|
cssesc.version = "3.0.0";
|
|
2277
2277
|
module.exports = cssesc;
|
|
2278
2278
|
},
|
|
2279
|
-
|
|
2279
|
+
611: (module) => {
|
|
2280
2280
|
const createImports = (imports, postcss, mode = "rule") =>
|
|
2281
2281
|
Object.keys(imports).map((path) => {
|
|
2282
2282
|
const aliases = imports[path];
|
|
@@ -2328,7 +2328,7 @@
|
|
|
2328
2328
|
];
|
|
2329
2329
|
module.exports = createICSSRules;
|
|
2330
2330
|
},
|
|
2331
|
-
|
|
2331
|
+
9727: (module) => {
|
|
2332
2332
|
const importPattern = /^:import\(("[^"]*"|'[^']*'|[^"']+)\)$/;
|
|
2333
2333
|
const balancedQuotes = /^("[^"]*"|'[^']*'|[^"']+)$/;
|
|
2334
2334
|
const getDeclsObject = (rule) => {
|
|
@@ -2386,11 +2386,11 @@
|
|
|
2386
2386
|
};
|
|
2387
2387
|
module.exports = extractICSS;
|
|
2388
2388
|
},
|
|
2389
|
-
|
|
2390
|
-
const replaceValueSymbols = __nccwpck_require__(
|
|
2391
|
-
const replaceSymbols = __nccwpck_require__(
|
|
2392
|
-
const extractICSS = __nccwpck_require__(
|
|
2393
|
-
const createICSSRules = __nccwpck_require__(
|
|
2389
|
+
5707: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
2390
|
+
const replaceValueSymbols = __nccwpck_require__(9450);
|
|
2391
|
+
const replaceSymbols = __nccwpck_require__(5058);
|
|
2392
|
+
const extractICSS = __nccwpck_require__(9727);
|
|
2393
|
+
const createICSSRules = __nccwpck_require__(611);
|
|
2394
2394
|
module.exports = {
|
|
2395
2395
|
replaceValueSymbols,
|
|
2396
2396
|
replaceSymbols,
|
|
@@ -2398,8 +2398,8 @@
|
|
|
2398
2398
|
createICSSRules,
|
|
2399
2399
|
};
|
|
2400
2400
|
},
|
|
2401
|
-
|
|
2402
|
-
const replaceValueSymbols = __nccwpck_require__(
|
|
2401
|
+
5058: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
2402
|
+
const replaceValueSymbols = __nccwpck_require__(9450);
|
|
2403
2403
|
const replaceSymbols = (css, replacements) => {
|
|
2404
2404
|
css.walk((node) => {
|
|
2405
2405
|
if (node.type === "decl" && node.value) {
|
|
@@ -2422,7 +2422,7 @@
|
|
|
2422
2422
|
};
|
|
2423
2423
|
module.exports = replaceSymbols;
|
|
2424
2424
|
},
|
|
2425
|
-
|
|
2425
|
+
9450: (module) => {
|
|
2426
2426
|
const matchValueName = /[$]?[\w-]+/g;
|
|
2427
2427
|
const replaceValueSymbols = (value, replacements) => {
|
|
2428
2428
|
let matches;
|
|
@@ -2440,8 +2440,8 @@
|
|
|
2440
2440
|
};
|
|
2441
2441
|
module.exports = replaceValueSymbols;
|
|
2442
2442
|
},
|
|
2443
|
-
|
|
2444
|
-
const topologicalSort = __nccwpck_require__(
|
|
2443
|
+
5248: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
2444
|
+
const topologicalSort = __nccwpck_require__(4726);
|
|
2445
2445
|
const matchImports = /^(.+?)\s+from\s+(?:"([^"]+)"|'([^']+)'|(global))$/;
|
|
2446
2446
|
const icssImport = /^:import\((?:"([^"]+)"|'([^']+)')\)/;
|
|
2447
2447
|
const VISITED_MARKER = 1;
|
|
@@ -2587,7 +2587,7 @@
|
|
|
2587
2587
|
};
|
|
2588
2588
|
module.exports.postcss = true;
|
|
2589
2589
|
},
|
|
2590
|
-
|
|
2590
|
+
4726: (module) => {
|
|
2591
2591
|
const PERMANENT_MARKER = 2;
|
|
2592
2592
|
const TEMPORARY_MARKER = 1;
|
|
2593
2593
|
function createError(node, graph) {
|
|
@@ -2636,11 +2636,11 @@
|
|
|
2636
2636
|
}
|
|
2637
2637
|
module.exports = topologicalSort;
|
|
2638
2638
|
},
|
|
2639
|
-
|
|
2639
|
+
5419: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
2640
2640
|
"use strict";
|
|
2641
2641
|
const selectorParser = __nccwpck_require__(7269);
|
|
2642
2642
|
const valueParser = __nccwpck_require__(7555);
|
|
2643
|
-
const { extractICSS } = __nccwpck_require__(
|
|
2643
|
+
const { extractICSS } = __nccwpck_require__(5707);
|
|
2644
2644
|
const isSpacing = (node) =>
|
|
2645
2645
|
node.type === "combinator" && node.value === " ";
|
|
2646
2646
|
function normalizeNodeArray(nodes) {
|
|
@@ -3151,7 +3151,7 @@
|
|
|
3151
3151
|
};
|
|
3152
3152
|
module.exports.postcss = true;
|
|
3153
3153
|
},
|
|
3154
|
-
|
|
3154
|
+
5787: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
3155
3155
|
"use strict";
|
|
3156
3156
|
const selectorParser = __nccwpck_require__(7269);
|
|
3157
3157
|
const hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
@@ -3458,9 +3458,9 @@
|
|
|
3458
3458
|
};
|
|
3459
3459
|
module.exports = plugin;
|
|
3460
3460
|
},
|
|
3461
|
-
|
|
3461
|
+
5165: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
3462
3462
|
"use strict";
|
|
3463
|
-
const ICSSUtils = __nccwpck_require__(
|
|
3463
|
+
const ICSSUtils = __nccwpck_require__(5707);
|
|
3464
3464
|
const matchImports =
|
|
3465
3465
|
/^(.+?|\([\s\S]+?\))\s+from\s+("[^"]*"|'[^']*'|[\w-]+)$/;
|
|
3466
3466
|
const matchValueDefinition = /(?:\s+|^)([\w-]+):?(.*?)$/;
|
|
@@ -7968,16 +7968,16 @@
|
|
|
7968
7968
|
"use strict";
|
|
7969
7969
|
module.exports = require("util");
|
|
7970
7970
|
},
|
|
7971
|
-
|
|
7971
|
+
116: (module) => {
|
|
7972
7972
|
"use strict";
|
|
7973
7973
|
module.exports = JSON.parse(
|
|
7974
7974
|
'{"title":"CSS Loader options","additionalProperties":false,"properties":{"url":{"description":"Allows to enables/disables `url()`/`image-set()` functions handling.","link":"https://github.com/webpack-contrib/css-loader#url","anyOf":[{"type":"boolean"},{"type":"object","properties":{"filter":{"instanceof":"Function"}},"additionalProperties":false}]},"import":{"description":"Allows to enables/disables `@import` at-rules handling.","link":"https://github.com/webpack-contrib/css-loader#import","anyOf":[{"type":"boolean"},{"type":"object","properties":{"filter":{"instanceof":"Function"}},"additionalProperties":false}]},"modules":{"description":"Allows to enable/disable CSS Modules or ICSS and setup configuration.","link":"https://github.com/webpack-contrib/css-loader#modules","anyOf":[{"type":"boolean"},{"enum":["local","global","pure","icss"]},{"type":"object","additionalProperties":false,"properties":{"auto":{"description":"Allows auto enable CSS modules based on filename.","link":"https://github.com/webpack-contrib/css-loader#auto","anyOf":[{"instanceof":"RegExp"},{"instanceof":"Function"},{"type":"boolean"}]},"mode":{"description":"Setup `mode` option.","link":"https://github.com/webpack-contrib/css-loader#mode","anyOf":[{"enum":["local","global","pure","icss"]},{"instanceof":"Function"}]},"localIdentName":{"description":"Allows to configure the generated local ident name.","link":"https://github.com/webpack-contrib/css-loader#localidentname","type":"string","minLength":1},"localIdentContext":{"description":"Allows to redefine basic loader context for local ident name.","link":"https://github.com/webpack-contrib/css-loader#localidentcontext","type":"string","minLength":1},"localIdentHashSalt":{"description":"Allows to add custom hash to generate more unique classes.","link":"https://github.com/webpack-contrib/css-loader#localidenthashsalt","type":"string","minLength":1},"localIdentHashFunction":{"description":"Allows to specify hash function to generate classes.","link":"https://github.com/webpack-contrib/css-loader#localidenthashfunction","type":"string","minLength":1},"localIdentHashDigest":{"description":"Allows to specify hash digest to generate classes.","link":"https://github.com/webpack-contrib/css-loader#localidenthashdigest","type":"string","minLength":1},"localIdentHashDigestLength":{"description":"Allows to specify hash digest length to generate classes.","link":"https://github.com/webpack-contrib/css-loader#localidenthashdigestlength","type":"number"},"hashStrategy":{"description":"Allows to specify should localName be used when computing the hash.","link":"https://github.com/webpack-contrib/css-loader#hashstrategy","enum":["resource-path-and-local-name","minimal-subset"]},"localIdentRegExp":{"description":"Allows to specify custom RegExp for local ident name.","link":"https://github.com/webpack-contrib/css-loader#localidentregexp","anyOf":[{"type":"string","minLength":1},{"instanceof":"RegExp"}]},"getLocalIdent":{"description":"Allows to specify a function to generate the classname.","link":"https://github.com/webpack-contrib/css-loader#getlocalident","instanceof":"Function"},"namedExport":{"description":"Enables/disables ES modules named export for locals.","link":"https://github.com/webpack-contrib/css-loader#namedexport","type":"boolean"},"exportGlobals":{"description":"Allows to export names from global class or id, so you can use that as local name.","link":"https://github.com/webpack-contrib/css-loader#exportglobals","type":"boolean"},"exportLocalsConvention":{"description":"Style of exported classnames.","link":"https://github.com/webpack-contrib/css-loader#localsconvention","anyOf":[{"enum":["asIs","as-is","camelCase","camel-case","camelCaseOnly","camel-case-only","dashes","dashesOnly","dashes-only"]},{"instanceof":"Function"}]},"exportOnlyLocals":{"description":"Export only locals.","link":"https://github.com/webpack-contrib/css-loader#exportonlylocals","type":"boolean"},"getJSON":{"description":"Allows outputting of CSS modules mapping through a callback.","link":"https://github.com/webpack-contrib/css-loader#getJSON","instanceof":"Function"}}}]},"sourceMap":{"description":"Allows to enable/disable source maps.","link":"https://github.com/webpack-contrib/css-loader#sourcemap","type":"boolean"},"importLoaders":{"description":"Allows enables/disables or setups number of loaders applied before CSS loader for `@import`/CSS Modules and ICSS imports.","link":"https://github.com/webpack-contrib/css-loader#importloaders","anyOf":[{"type":"boolean"},{"type":"string"},{"type":"integer"}]},"esModule":{"description":"Use the ES modules syntax.","link":"https://github.com/webpack-contrib/css-loader#esmodule","type":"boolean"},"exportType":{"description":"Allows exporting styles as array with modules, string or constructable stylesheet (i.e. `CSSStyleSheet`).","link":"https://github.com/webpack-contrib/css-loader#exporttype","enum":["array","string","css-style-sheet"]}},"type":"object"}',
|
|
7975
7975
|
);
|
|
7976
7976
|
},
|
|
7977
|
-
|
|
7977
|
+
8505: (module) => {
|
|
7978
7978
|
"use strict";
|
|
7979
7979
|
module.exports = JSON.parse(
|
|
7980
|
-
'{"name":"postcss","version":"8.4.
|
|
7980
|
+
'{"name":"postcss","version":"8.4.48","description":"Tool for transforming styles with JS plugins","engines":{"node":"^10 || ^12 || >=14"},"exports":{".":{"require":"./lib/postcss.js","import":"./lib/postcss.mjs"},"./lib/at-rule":"./lib/at-rule.js","./lib/comment":"./lib/comment.js","./lib/container":"./lib/container.js","./lib/css-syntax-error":"./lib/css-syntax-error.js","./lib/declaration":"./lib/declaration.js","./lib/fromJSON":"./lib/fromJSON.js","./lib/input":"./lib/input.js","./lib/lazy-result":"./lib/lazy-result.js","./lib/no-work-result":"./lib/no-work-result.js","./lib/list":"./lib/list.js","./lib/map-generator":"./lib/map-generator.js","./lib/node":"./lib/node.js","./lib/parse":"./lib/parse.js","./lib/parser":"./lib/parser.js","./lib/postcss":"./lib/postcss.js","./lib/previous-map":"./lib/previous-map.js","./lib/processor":"./lib/processor.js","./lib/result":"./lib/result.js","./lib/root":"./lib/root.js","./lib/rule":"./lib/rule.js","./lib/stringifier":"./lib/stringifier.js","./lib/stringify":"./lib/stringify.js","./lib/symbols":"./lib/symbols.js","./lib/terminal-highlight":"./lib/terminal-highlight.js","./lib/tokenize":"./lib/tokenize.js","./lib/warn-once":"./lib/warn-once.js","./lib/warning":"./lib/warning.js","./package.json":"./package.json"},"main":"./lib/postcss.js","types":"./lib/postcss.d.ts","keywords":["css","postcss","rework","preprocessor","parser","source map","transform","manipulation","transpiler"],"funding":[{"type":"opencollective","url":"https://opencollective.com/postcss/"},{"type":"tidelift","url":"https://tidelift.com/funding/github/npm/postcss"},{"type":"github","url":"https://github.com/sponsors/ai"}],"author":"Andrey Sitnik <andrey@sitnik.ru>","license":"MIT","homepage":"https://postcss.org/","repository":"postcss/postcss","bugs":{"url":"https://github.com/postcss/postcss/issues"},"dependencies":{"nanoid":"^3.3.7","picocolors":"^1.1.1","source-map-js":"^1.2.1"},"browser":{"./lib/terminal-highlight":false,"source-map-js":false,"path":false,"url":false,"fs":false}}',
|
|
7981
7981
|
);
|
|
7982
7982
|
},
|
|
7983
7983
|
};
|
|
@@ -8003,6 +8003,6 @@
|
|
|
8003
8003
|
}
|
|
8004
8004
|
if (typeof __nccwpck_require__ !== "undefined")
|
|
8005
8005
|
__nccwpck_require__.ab = __dirname + "/";
|
|
8006
|
-
var __webpack_exports__ = __nccwpck_require__(
|
|
8006
|
+
var __webpack_exports__ = __nccwpck_require__(7890);
|
|
8007
8007
|
module.exports = __webpack_exports__;
|
|
8008
8008
|
})();
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(() => {
|
|
2
2
|
var __webpack_modules__ = {
|
|
3
|
-
|
|
3
|
+
452: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
4
4
|
"use strict";
|
|
5
|
-
const { HtmlWebpackChildCompiler } = __nccwpck_require__(
|
|
5
|
+
const { HtmlWebpackChildCompiler } = __nccwpck_require__(48);
|
|
6
6
|
const compilerMap = new WeakMap();
|
|
7
7
|
class CachedChildCompilation {
|
|
8
8
|
constructor(compiler) {
|
|
@@ -304,7 +304,7 @@
|
|
|
304
304
|
}
|
|
305
305
|
module.exports = { CachedChildCompilation };
|
|
306
306
|
},
|
|
307
|
-
|
|
307
|
+
48: (module) => {
|
|
308
308
|
"use strict";
|
|
309
309
|
class HtmlWebpackChildCompiler {
|
|
310
310
|
constructor(templates) {
|
|
@@ -473,7 +473,7 @@
|
|
|
473
473
|
}
|
|
474
474
|
module.exports = { HtmlWebpackChildCompiler };
|
|
475
475
|
},
|
|
476
|
-
|
|
476
|
+
286: (module) => {
|
|
477
477
|
"use strict";
|
|
478
478
|
module.exports = {};
|
|
479
479
|
module.exports.none = (chunks) => chunks;
|
|
@@ -492,7 +492,7 @@
|
|
|
492
492
|
};
|
|
493
493
|
module.exports.auto = module.exports.none;
|
|
494
494
|
},
|
|
495
|
-
|
|
495
|
+
314: (module) => {
|
|
496
496
|
"use strict";
|
|
497
497
|
module.exports = function (err) {
|
|
498
498
|
return {
|
|
@@ -513,7 +513,7 @@
|
|
|
513
513
|
};
|
|
514
514
|
};
|
|
515
515
|
},
|
|
516
|
-
|
|
516
|
+
384: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
517
517
|
"use strict";
|
|
518
518
|
const { AsyncSeriesWaterfallHook } = __nccwpck_require__(348);
|
|
519
519
|
const htmlWebpackPluginHooksMap = new WeakMap();
|
|
@@ -539,7 +539,7 @@
|
|
|
539
539
|
}
|
|
540
540
|
module.exports = { getHtmlRspackPluginHooks };
|
|
541
541
|
},
|
|
542
|
-
|
|
542
|
+
641: (module) => {
|
|
543
543
|
const voidTags = [
|
|
544
544
|
"area",
|
|
545
545
|
"base",
|
|
@@ -607,19 +607,19 @@
|
|
|
607
607
|
htmlTagObjectToString,
|
|
608
608
|
};
|
|
609
609
|
},
|
|
610
|
-
|
|
610
|
+
20: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
611
611
|
"use strict";
|
|
612
612
|
const promisify = __nccwpck_require__(837).promisify;
|
|
613
613
|
const vm = __nccwpck_require__(144);
|
|
614
614
|
const fs = __nccwpck_require__(147);
|
|
615
615
|
const path = __nccwpck_require__(17);
|
|
616
|
-
const { CachedChildCompilation } = __nccwpck_require__(
|
|
616
|
+
const { CachedChildCompilation } = __nccwpck_require__(452);
|
|
617
617
|
const { createHtmlTagObject, htmlTagObjectToString, HtmlTagArray } =
|
|
618
|
-
__nccwpck_require__(
|
|
619
|
-
const prettyError = __nccwpck_require__(
|
|
620
|
-
const chunkSorter = __nccwpck_require__(
|
|
618
|
+
__nccwpck_require__(641);
|
|
619
|
+
const prettyError = __nccwpck_require__(314);
|
|
620
|
+
const chunkSorter = __nccwpck_require__(286);
|
|
621
621
|
const getHtmlRspackPluginHooks =
|
|
622
|
-
__nccwpck_require__(
|
|
622
|
+
__nccwpck_require__(384).getHtmlRspackPluginHooks;
|
|
623
623
|
class HtmlRspackPlugin {
|
|
624
624
|
constructor(userOptions = {}) {
|
|
625
625
|
this.version = HtmlRspackPlugin.version;
|
|
@@ -1578,6 +1578,6 @@
|
|
|
1578
1578
|
}
|
|
1579
1579
|
if (typeof __nccwpck_require__ !== "undefined")
|
|
1580
1580
|
__nccwpck_require__.ab = __dirname + "/";
|
|
1581
|
-
var __webpack_exports__ = __nccwpck_require__(
|
|
1581
|
+
var __webpack_exports__ = __nccwpck_require__(20);
|
|
1582
1582
|
module.exports = __webpack_exports__;
|
|
1583
1583
|
})();
|
|
@@ -253,11 +253,12 @@ declare namespace Server {
|
|
|
253
253
|
* https://github.com/DefinitelyTyped/DefinitelyTyped/blob/6f529c6c67a447190f86bfbf894d1061e41e07b7/types/http-proxy-middleware/index.d.ts
|
|
254
254
|
*/
|
|
255
255
|
|
|
256
|
-
interface Request extends
|
|
256
|
+
interface Request extends http.IncomingMessage {
|
|
257
257
|
}
|
|
258
|
-
interface Response extends
|
|
258
|
+
interface Response extends http.ServerResponse {
|
|
259
259
|
}
|
|
260
|
-
interface RequestHandler
|
|
260
|
+
interface RequestHandler {
|
|
261
|
+
(req: Request, res: Response, next?: (err?: any) => void): void | Promise<void>;
|
|
261
262
|
upgrade?: (req: Request, socket: net.Socket, head: any) => void;
|
|
262
263
|
}
|
|
263
264
|
declare type Filter = string | string[] | ((pathname: string, req: Request) => boolean);
|
package/compiled/open/index.d.ts
CHANGED
|
@@ -1 +1,153 @@
|
|
|
1
|
-
|
|
1
|
+
import { ChildProcess } from 'child_process';
|
|
2
|
+
|
|
3
|
+
declare namespace open {
|
|
4
|
+
interface Options {
|
|
5
|
+
/**
|
|
6
|
+
Wait for the opened app to exit before fulfilling the promise. If `false` it's fulfilled immediately when opening the app.
|
|
7
|
+
|
|
8
|
+
Note that it waits for the app to exit, not just for the window to close.
|
|
9
|
+
|
|
10
|
+
On Windows, you have to explicitly specify an app for it to be able to wait.
|
|
11
|
+
|
|
12
|
+
@default false
|
|
13
|
+
*/
|
|
14
|
+
readonly wait?: boolean;
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
__macOS only__
|
|
18
|
+
|
|
19
|
+
Do not bring the app to the foreground.
|
|
20
|
+
|
|
21
|
+
@default false
|
|
22
|
+
*/
|
|
23
|
+
readonly background?: boolean;
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
__macOS only__
|
|
27
|
+
|
|
28
|
+
Open a new instance of the app even it's already running.
|
|
29
|
+
|
|
30
|
+
A new instance is always opened on other platforms.
|
|
31
|
+
|
|
32
|
+
@default false
|
|
33
|
+
*/
|
|
34
|
+
readonly newInstance?: boolean;
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
Specify the `name` of the app to open the `target` with, and optionally, app `arguments`. `app` can be an array of apps to try to open and `name` can be an array of app names to try. If each app fails, the last error will be thrown.
|
|
38
|
+
|
|
39
|
+
The app name is platform dependent. Don't hard code it in reusable modules. For example, Chrome is `google chrome` on macOS, `google-chrome` on Linux and `chrome` on Windows. If possible, use [`open.apps`](#openapps) which auto-detects the correct binary to use.
|
|
40
|
+
|
|
41
|
+
You may also pass in the app's full path. For example on WSL, this can be `/mnt/c/Program Files (x86)/Google/Chrome/Application/chrome.exe` for the Windows installation of Chrome.
|
|
42
|
+
|
|
43
|
+
The app `arguments` are app dependent. Check the app's documentation for what arguments it accepts.
|
|
44
|
+
*/
|
|
45
|
+
readonly app?: App | readonly App[];
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
Allow the opened app to exit with nonzero exit code when the `wait` option is `true`.
|
|
49
|
+
|
|
50
|
+
We do not recommend setting this option. The convention for success is exit code zero.
|
|
51
|
+
|
|
52
|
+
@default false
|
|
53
|
+
*/
|
|
54
|
+
readonly allowNonzeroExitCode?: boolean;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
interface OpenAppOptions extends Omit<Options, 'app'> {
|
|
58
|
+
/**
|
|
59
|
+
Arguments passed to the app.
|
|
60
|
+
|
|
61
|
+
These arguments are app dependent. Check the app's documentation for what arguments it accepts.
|
|
62
|
+
*/
|
|
63
|
+
readonly arguments?: readonly string[];
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
type AppName =
|
|
67
|
+
| 'chrome'
|
|
68
|
+
| 'firefox'
|
|
69
|
+
| 'edge';
|
|
70
|
+
|
|
71
|
+
type App = {
|
|
72
|
+
name: string | readonly string[];
|
|
73
|
+
arguments?: readonly string[];
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
// eslint-disable-next-line no-redeclare
|
|
78
|
+
declare const open: {
|
|
79
|
+
/**
|
|
80
|
+
Open stuff like URLs, files, executables. Cross-platform.
|
|
81
|
+
|
|
82
|
+
Uses the command `open` on macOS, `start` on Windows and `xdg-open` on other platforms.
|
|
83
|
+
|
|
84
|
+
There is a caveat for [double-quotes on Windows](https://github.com/sindresorhus/open#double-quotes-on-windows) where all double-quotes are stripped from the `target`.
|
|
85
|
+
|
|
86
|
+
@param target - The thing you want to open. Can be a URL, file, or executable. Opens in the default app for the file type. For example, URLs open in your default browser.
|
|
87
|
+
@returns The [spawned child process](https://nodejs.org/api/child_process.html#child_process_class_childprocess). You would normally not need to use this for anything, but it can be useful if you'd like to attach custom event listeners or perform other operations directly on the spawned process.
|
|
88
|
+
|
|
89
|
+
@example
|
|
90
|
+
```
|
|
91
|
+
import open = require('open');
|
|
92
|
+
|
|
93
|
+
// Opens the image in the default image viewer
|
|
94
|
+
await open('unicorn.png', {wait: true});
|
|
95
|
+
console.log('The image viewer app closed');
|
|
96
|
+
|
|
97
|
+
// Opens the url in the default browser
|
|
98
|
+
await open('https://sindresorhus.com');
|
|
99
|
+
|
|
100
|
+
// Opens the URL in a specified browser.
|
|
101
|
+
await open('https://sindresorhus.com', {app: {name: 'firefox'}});
|
|
102
|
+
|
|
103
|
+
// Specify app arguments.
|
|
104
|
+
await open('https://sindresorhus.com', {app: {name: 'google chrome', arguments: ['--incognito']}});
|
|
105
|
+
```
|
|
106
|
+
*/
|
|
107
|
+
(
|
|
108
|
+
target: string,
|
|
109
|
+
options?: open.Options
|
|
110
|
+
): Promise<ChildProcess>;
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
An object containing auto-detected binary names for common apps. Useful to work around cross-platform differences.
|
|
114
|
+
|
|
115
|
+
@example
|
|
116
|
+
```
|
|
117
|
+
import open = require('open');
|
|
118
|
+
|
|
119
|
+
await open('https://google.com', {
|
|
120
|
+
app: {
|
|
121
|
+
name: open.apps.chrome
|
|
122
|
+
}
|
|
123
|
+
});
|
|
124
|
+
```
|
|
125
|
+
*/
|
|
126
|
+
apps: Record<open.AppName, string | readonly string[]>;
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
Open an app. Cross-platform.
|
|
130
|
+
|
|
131
|
+
Uses the command `open` on macOS, `start` on Windows and `xdg-open` on other platforms.
|
|
132
|
+
|
|
133
|
+
@param name - The app you want to open. Can be either builtin supported `open.apps` names or other name supported in platform.
|
|
134
|
+
@returns The [spawned child process](https://nodejs.org/api/child_process.html#child_process_class_childprocess). You would normally not need to use this for anything, but it can be useful if you'd like to attach custom event listeners or perform other operations directly on the spawned process.
|
|
135
|
+
|
|
136
|
+
@example
|
|
137
|
+
```
|
|
138
|
+
const {apps, openApp} = require('open');
|
|
139
|
+
|
|
140
|
+
// Open Firefox
|
|
141
|
+
await openApp(apps.firefox);
|
|
142
|
+
|
|
143
|
+
// Open Chrome incognito mode
|
|
144
|
+
await openApp(apps.chrome, {arguments: ['--incognito']});
|
|
145
|
+
|
|
146
|
+
// Open Xcode
|
|
147
|
+
await openApp('xcode');
|
|
148
|
+
```
|
|
149
|
+
*/
|
|
150
|
+
openApp: (name: open.App['name'], options?: open.OpenAppOptions) => Promise<ChildProcess>;
|
|
151
|
+
};
|
|
152
|
+
|
|
153
|
+
export { open as default };
|