@unpackjs/core 4.2.2 → 4.2.3
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.
|
@@ -5194,7 +5194,7 @@
|
|
|
5194
5194
|
const errorEx = __nccwpck_require__(2709);
|
|
5195
5195
|
const fallback = __nccwpck_require__(8827);
|
|
5196
5196
|
const { default: LinesAndColumns } = __nccwpck_require__(3033);
|
|
5197
|
-
const { codeFrameColumns } = __nccwpck_require__(
|
|
5197
|
+
const { codeFrameColumns } = __nccwpck_require__(5112);
|
|
5198
5198
|
const JSONError = errorEx("JSONError", {
|
|
5199
5199
|
fileName: errorEx.append("in %s"),
|
|
5200
5200
|
codeFrame: errorEx.append("\n\n%s\n"),
|
|
@@ -6111,7 +6111,7 @@
|
|
|
6111
6111
|
"use strict";
|
|
6112
6112
|
module.exports = require("util");
|
|
6113
6113
|
},
|
|
6114
|
-
|
|
6114
|
+
5112: (__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
6115
6115
|
"use strict";
|
|
6116
6116
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6117
6117
|
var picocolors = __nccwpck_require__(6831);
|
|
@@ -6220,13 +6220,13 @@
|
|
|
6220
6220
|
}
|
|
6221
6221
|
let deprecationWarningShown = false;
|
|
6222
6222
|
const NEWLINE = /\r\n|[\n\r\u2028\u2029]/;
|
|
6223
|
-
function getMarkerLines(loc, source, opts) {
|
|
6223
|
+
function getMarkerLines(loc, source, opts, startLineBaseZero) {
|
|
6224
6224
|
const startLoc = Object.assign({ column: 0, line: -1 }, loc.start);
|
|
6225
6225
|
const endLoc = Object.assign({}, startLoc, loc.end);
|
|
6226
6226
|
const { linesAbove = 2, linesBelow = 3 } = opts || {};
|
|
6227
|
-
const startLine = startLoc.line;
|
|
6227
|
+
const startLine = startLoc.line - startLineBaseZero;
|
|
6228
6228
|
const startColumn = startLoc.column;
|
|
6229
|
-
const endLine = endLoc.line;
|
|
6229
|
+
const endLine = endLoc.line - startLineBaseZero;
|
|
6230
6230
|
const endColumn = endLoc.column;
|
|
6231
6231
|
let start = Math.max(startLine - (linesAbove + 1), 0);
|
|
6232
6232
|
let end = Math.min(source.length, endLine + linesBelow);
|
|
@@ -6272,11 +6272,17 @@
|
|
|
6272
6272
|
function codeFrameColumns(rawLines, loc, opts = {}) {
|
|
6273
6273
|
const shouldHighlight =
|
|
6274
6274
|
opts.forceColor || (isColorSupported() && opts.highlightCode);
|
|
6275
|
+
const startLineBaseZero = (opts.startLine || 1) - 1;
|
|
6275
6276
|
const defs = getDefs(shouldHighlight);
|
|
6276
6277
|
const lines = rawLines.split(NEWLINE);
|
|
6277
|
-
const { start, end, markerLines } = getMarkerLines(
|
|
6278
|
+
const { start, end, markerLines } = getMarkerLines(
|
|
6279
|
+
loc,
|
|
6280
|
+
lines,
|
|
6281
|
+
opts,
|
|
6282
|
+
startLineBaseZero,
|
|
6283
|
+
);
|
|
6278
6284
|
const hasColumns = loc.start && typeof loc.start.column === "number";
|
|
6279
|
-
const numberMaxWidth = String(end).length;
|
|
6285
|
+
const numberMaxWidth = String(end + startLineBaseZero).length;
|
|
6280
6286
|
const highlightedLines = shouldHighlight
|
|
6281
6287
|
? highlight(rawLines)
|
|
6282
6288
|
: rawLines;
|
|
@@ -6285,7 +6291,9 @@
|
|
|
6285
6291
|
.slice(start, end)
|
|
6286
6292
|
.map((line, index) => {
|
|
6287
6293
|
const number = start + 1 + index;
|
|
6288
|
-
const paddedNumber = ` ${number}`.slice(
|
|
6294
|
+
const paddedNumber = ` ${number + startLineBaseZero}`.slice(
|
|
6295
|
+
-numberMaxWidth,
|
|
6296
|
+
);
|
|
6289
6297
|
const gutter = ` ${paddedNumber} |`;
|
|
6290
6298
|
const hasMarker = markerLines[number];
|
|
6291
6299
|
const lastMarkerLine = !markerLines[number + 1];
|
package/dist/index.js
CHANGED
|
@@ -561,10 +561,11 @@ let COMPRESSIBLE_REGEX = /\.(?:js|css|html|json|svg|txt|xml|xhtml|wasm|manifest|
|
|
|
561
561
|
recursive,
|
|
562
562
|
publicPrefix: './' === baseDir ? './' : baseDir
|
|
563
563
|
};
|
|
564
|
-
}, hasEager = (rawOptions)=>!!rawOptions && /eager\s*:\s*true/.test(rawOptions), normalizeGlobByAliases = (pattern, options)=>{
|
|
564
|
+
}, hasEager = (rawOptions)=>!!rawOptions && /eager\s*:\s*true/.test(rawOptions), warnedMissingAliasKeys = new Set(), normalizeGlobByAliases = (pattern, options)=>{
|
|
565
565
|
let trimmed = pattern.trim();
|
|
566
566
|
if (!trimmed || trimmed.startsWith('/') || trimmed.startsWith('.')) return trimmed;
|
|
567
|
-
|
|
567
|
+
let aliasEntries = Object.entries(options.alias).filter(([key])=>key && '/' !== key).sort((a, b)=>b[0].length - a[0].length);
|
|
568
|
+
for (let [rawKey, rawTarget] of aliasEntries){
|
|
568
569
|
let key = rawKey.endsWith('/') ? rawKey.slice(0, -1) : rawKey;
|
|
569
570
|
if (!key || !trimmed.startsWith(`${key}/`)) continue;
|
|
570
571
|
let targetAbs = node_path.isAbsolute(rawTarget) ? rawTarget : node_path.resolve(options.root, rawTarget), rel = node_path.relative(options.root, targetAbs).replace(/\\/g, '/');
|
|
@@ -572,6 +573,11 @@ let COMPRESSIBLE_REGEX = /\.(?:js|css|html|json|svg|txt|xml|xhtml|wasm|manifest|
|
|
|
572
573
|
let publicBase = `/${rel}`.replace(/\/{2,}/g, '/').replace(/\/$/, ''), rest = trimmed.slice(key.length);
|
|
573
574
|
return `${publicBase}${rest}`.replace(/\/{2,}/g, '/');
|
|
574
575
|
}
|
|
576
|
+
let normalized = trimmed.replace(/\\/g, '/'), firstChar = normalized[0];
|
|
577
|
+
if ('@' === firstChar || '~' === firstChar || '#' === firstChar) {
|
|
578
|
+
let slashIndex = normalized.indexOf('/'), aliasKey = normalized.slice(0, slashIndex);
|
|
579
|
+
aliasEntries.map(([rawKey])=>rawKey.endsWith('/') ? rawKey.slice(0, -1) : rawKey).filter(Boolean).includes(aliasKey) || warnedMissingAliasKeys.has(aliasKey) || (warnedMissingAliasKeys.add(aliasKey), logger_logger.warn(`Unrecognized alias "${aliasKey}" in glob pattern: "${trimmed}", please ensure it is defined in "resolve.alias".`));
|
|
580
|
+
}
|
|
575
581
|
return trimmed;
|
|
576
582
|
}, SPECIAL_NO_ENTRY_DEPS = [
|
|
577
583
|
'@iconify-icons/material-symbols'
|
|
@@ -875,7 +881,7 @@ class JsMinifyPlugin {
|
|
|
875
881
|
apply(compiler) {
|
|
876
882
|
let meta = JSON.stringify({
|
|
877
883
|
name: jsMinify_PLUGIN_NAME,
|
|
878
|
-
version: "4.2.
|
|
884
|
+
version: "4.2.3",
|
|
879
885
|
options: this.minifyOptions
|
|
880
886
|
});
|
|
881
887
|
compiler.hooks.compilation.tap(jsMinify_PLUGIN_NAME, (compilation)=>{
|
|
@@ -1268,12 +1274,13 @@ async function getBundlerConfig(originalUnpackConfig) {
|
|
|
1268
1274
|
]
|
|
1269
1275
|
},
|
|
1270
1276
|
extensions: [
|
|
1271
|
-
'.tsx',
|
|
1272
1277
|
'.ts',
|
|
1273
|
-
'.
|
|
1278
|
+
'.tsx',
|
|
1279
|
+
'.mjs',
|
|
1274
1280
|
'.js',
|
|
1275
|
-
'.
|
|
1281
|
+
'.jsx',
|
|
1276
1282
|
'.json',
|
|
1283
|
+
'.wasm',
|
|
1277
1284
|
...unpackConfig.resolve?.extensions || []
|
|
1278
1285
|
]
|
|
1279
1286
|
},
|
|
@@ -1756,7 +1763,7 @@ async function unpackDev(unpackConfig) {
|
|
|
1756
1763
|
...middlewares
|
|
1757
1764
|
]);
|
|
1758
1765
|
let server = new RspackDevServer(devServerOptions, compiler);
|
|
1759
|
-
await server.start(), logger_logger.greet(` ${colors.brand(`${colors.bold(unpackConfig._context.callerName.toUpperCase())} v4.2.
|
|
1766
|
+
await server.start(), logger_logger.greet(` ${colors.brand(`${colors.bold(unpackConfig._context.callerName.toUpperCase())} v4.2.3`)} ${colors.dim('ready in')} ${colors.bold(Math.ceil(performance.now() - getUnpackStartTime()))} ${colors.dim('ms')}\n`), printServerUrls({
|
|
1760
1767
|
port,
|
|
1761
1768
|
host: unpackConfig.server.host,
|
|
1762
1769
|
base: unpackConfig.base
|
|
@@ -1770,10 +1777,10 @@ async function unpackDev(unpackConfig) {
|
|
|
1770
1777
|
function createUnpack({ cwd = process.cwd(), config: userConfig, callerName = 'unpack' }) {
|
|
1771
1778
|
let _context = {
|
|
1772
1779
|
callerName,
|
|
1773
|
-
version: "4.2.
|
|
1780
|
+
version: "4.2.3",
|
|
1774
1781
|
cachePath: 'node_modules/.unpack'
|
|
1775
1782
|
}, resolveConfig = (mode)=>{
|
|
1776
|
-
let rootPath, outputPath, basePath, cachedTraceMap, fs, isValidMethodName, parseFrame, formatOriginalLocation, formatFullStack, resolveErrorLocationAndStack, root, alias, shouldTransformDeepImport, preJsAssets, jsAssets, cssAssets, bundledDepsCachePath, deepImportPkgPattern, deepImportRegex, plugin, root1, uno, generated, configOrPathFromUnpackConfig, defaultsFromUnpackConfig, VIRTUAL_UNO_CSS_ID, rootDir, isMpa, unoConfig, configFilePath, unpackConfigPath, tokens, requestedLayers, tasks, unocssCacheDir, tokensCachePath, layersCachePath, timeCachePath, configHashCachePath, generatedCachePath, bundlerCacheDir,
|
|
1783
|
+
let rootPath, outputPath, basePath, cachedTraceMap, fs, isValidMethodName, parseFrame, formatOriginalLocation, formatFullStack, resolveErrorLocationAndStack, root, alias, shouldTransformDeepImport, preJsAssets, jsAssets, cssAssets, bundledDepsCachePath, deepImportPkgPattern, deepImportRegex, plugin, root1, uno, generated, configOrPathFromUnpackConfig, defaultsFromUnpackConfig, VIRTUAL_UNO_CSS_ID, rootDir, isMpa, unoConfig, configFilePath, unpackConfigPath, tokens, requestedLayers, tasks, unocssCacheDir, tokensCachePath, layersCachePath, timeCachePath, configHashCachePath, generatedCachePath, bundlerCacheDir, cachedTokensSize, cachedLayersSize, isCompiling, resolveUnocssConfig, flushTasks, getVirtualModuleContent, hash, restoreSkipCode, applyUnoTransformers, getCustomLayers, optionsFromUnpackConfig, rootPath1, registerCode, namesCode, defaultConfig = {
|
|
1777
1784
|
root: cwd,
|
|
1778
1785
|
base: '/',
|
|
1779
1786
|
sourceMap: 'production' !== mode && 'cheap-module-source-map',
|
|
@@ -2510,7 +2517,7 @@ function createUnpack({ cwd = process.cwd(), config: userConfig, callerName = 'u
|
|
|
2510
2517
|
}),
|
|
2511
2518
|
(VIRTUAL_UNO_CSS_ID = 'uno.css', rootDir = process.cwd(), isMpa = !1, unoConfig = {}, configFilePath = '', unpackConfigPath = '', tokens = new Set(), requestedLayers = new Set([
|
|
2512
2519
|
LAYER_MARK_ALL
|
|
2513
|
-
]), tasks = [], unocssCacheDir = '', tokensCachePath = '', layersCachePath = '', timeCachePath = '', configHashCachePath = '', generatedCachePath = '', bundlerCacheDir = '',
|
|
2520
|
+
]), tasks = [], unocssCacheDir = '', tokensCachePath = '', layersCachePath = '', timeCachePath = '', configHashCachePath = '', generatedCachePath = '', bundlerCacheDir = '', cachedTokensSize = 0, cachedLayersSize = 0, isCompiling = !0, resolveUnocssConfig = async ()=>{
|
|
2514
2521
|
let resolvedConfigOrPath = (void 0) ?? configOrPathFromUnpackConfig, resolvedDefaults = (void 0) ?? defaultsFromUnpackConfig, configFromOption = {};
|
|
2515
2522
|
return isPlainObject(resolvedConfigOrPath) ? configFromOption = resolvedConfigOrPath : isString(resolvedConfigOrPath) && (configFilePath = node_path.isAbsolute(resolvedConfigOrPath) ? resolvedConfigOrPath : node_path.resolve(rootDir, resolvedConfigOrPath)), configFilePath = ((root, customConfig)=>{
|
|
2516
2523
|
if (customConfig) {
|
|
@@ -2524,10 +2531,11 @@ function createUnpack({ cwd = process.cwd(), config: userConfig, callerName = 'u
|
|
|
2524
2531
|
})(rootDir, configFilePath), configFromOption = mergeConfig(configFromOption, await loadConfigFile(configFilePath)), resolvedDefaults && (configFromOption = mergeConfig(resolvedDefaults, configFromOption)), configFromOption;
|
|
2525
2532
|
}, flushTasks = async ()=>{
|
|
2526
2533
|
if (!tasks.length) return;
|
|
2534
|
+
logger_logger.debug(colors.yellow(`[unocss] Extract token from ${tasks.length} files.`));
|
|
2527
2535
|
let pending = tasks.map((t)=>t());
|
|
2528
2536
|
tasks = [], await Promise.all(pending);
|
|
2529
|
-
},
|
|
2530
|
-
let code, hash = (code = `${tokens.size}|${layer}|${
|
|
2537
|
+
}, getVirtualModuleContent = (layer)=>{
|
|
2538
|
+
let code, hash = (code = `${tokens.size}|${layer}|${requestedLayers.size}`, createHash('sha256').update(code).digest('hex').slice(0, 8));
|
|
2531
2539
|
return `#--unocss-hash--{content:"${hash}"}#--unocss--{layer:${layer};escape-view:\\"\\'\\\`\\\\}`;
|
|
2532
2540
|
}, hash = (str)=>{
|
|
2533
2541
|
let i, l, hVal = 0x811c9dc5;
|
|
@@ -2575,19 +2583,19 @@ function createUnpack({ cwd = process.cwd(), config: userConfig, callerName = 'u
|
|
|
2575
2583
|
return;
|
|
2576
2584
|
}
|
|
2577
2585
|
let cachedTime = Number(node_fs.readFileSync(timeCachePath, 'utf-8').trim()), cachedHash = node_fs.readFileSync(configHashCachePath, 'utf-8').trim(), isExpired = now - cachedTime >= 604800000, isHashChanged = cachedHash !== nextHash;
|
|
2578
|
-
(isExpired || isHashChanged) && (isExpired && logger_logger.debug(colors.yellow('[unocss] Cache expired
|
|
2586
|
+
(isExpired || isHashChanged) && (isExpired && logger_logger.debug(colors.yellow('[unocss] Cache expired.')), isHashChanged && logger_logger.debug(colors.yellow('[unocss] Cache invalidated because config has changed.')), removeDir(unocssCacheDir), removeDir(bundlerCacheDir), ensureDir(unocssCacheDir), node_fs.writeFileSync(timeCachePath, String(now), 'utf-8'), node_fs.writeFileSync(configHashCachePath, nextHash, 'utf-8'));
|
|
2579
2587
|
})(), (()=>{
|
|
2580
2588
|
if (node_fs.existsSync(tokensCachePath)) {
|
|
2581
2589
|
let cached = JSON.parse(node_fs.readFileSync(tokensCachePath, 'utf-8'));
|
|
2582
|
-
Array.isArray(cached) && (
|
|
2590
|
+
Array.isArray(cached) && (cachedTokensSize = (tokens = new Set(cached)).size, logger_logger.debug(colors.yellow(`[unocss] Load ${tokens.size} token from cache.`)));
|
|
2583
2591
|
}
|
|
2584
2592
|
if (node_fs.existsSync(layersCachePath)) {
|
|
2585
2593
|
let cached = JSON.parse(node_fs.readFileSync(layersCachePath, 'utf-8'));
|
|
2586
|
-
Array.isArray(cached) && (
|
|
2594
|
+
Array.isArray(cached) && (cachedLayersSize = (requestedLayers = new Set(cached)).size, logger_logger.debug(colors.yellow(`[unocss] Load ${requestedLayers.size} layer from cache.`)));
|
|
2587
2595
|
}
|
|
2588
2596
|
if (node_fs.existsSync(generatedCachePath)) {
|
|
2589
2597
|
let cached = JSON.parse(node_fs.readFileSync(generatedCachePath, 'utf-8'));
|
|
2590
|
-
if (cached && cached.meta?.
|
|
2598
|
+
if (cached && cached.meta?.tokensSize === tokens.size && cached.meta?.layersSize === requestedLayers.size) {
|
|
2591
2599
|
let list, index, runChunk, timer;
|
|
2592
2600
|
generated = cached, isDev() && (list = Array.from(tokens), index = 0, timer = setTimeout(runChunk = ()=>{
|
|
2593
2601
|
if (isCompiling) {
|
|
@@ -2610,7 +2618,7 @@ function createUnpack({ cwd = process.cwd(), config: userConfig, callerName = 'u
|
|
|
2610
2618
|
isCompiling = !0;
|
|
2611
2619
|
},
|
|
2612
2620
|
buildEnd () {
|
|
2613
|
-
isCompiling = !1, tokens.size !==
|
|
2621
|
+
isCompiling = !1, tokens.size !== cachedTokensSize && (node_fs.writeFileSync(tokensCachePath, JSON.stringify(Array.from(tokens)), 'utf-8'), logger_logger.debug(colors.yellow(`[unocss] Add ${tokens.size - cachedTokensSize} token to cache.`)), cachedTokensSize = tokens.size), requestedLayers.size !== cachedLayersSize && (node_fs.writeFileSync(layersCachePath, JSON.stringify(Array.from(requestedLayers)), 'utf-8'), logger_logger.debug(colors.yellow(`[unocss] Add ${requestedLayers.size - cachedLayersSize} layer to cache.`)), cachedLayersSize = requestedLayers.size);
|
|
2614
2622
|
},
|
|
2615
2623
|
transform: {
|
|
2616
2624
|
filter: {
|
|
@@ -2637,16 +2645,14 @@ function createUnpack({ cwd = process.cwd(), config: userConfig, callerName = 'u
|
|
|
2637
2645
|
processAssets: {
|
|
2638
2646
|
stage: Compilation.PROCESS_ASSETS_STAGE_ADDITIONS,
|
|
2639
2647
|
handler: async ({ compilation, sources })=>{
|
|
2640
|
-
await flushTasks()
|
|
2641
|
-
let layersKey = getLayersKey();
|
|
2642
|
-
if (!generated || generated.meta.tokensLength !== tokens.size || generated.meta.layersKey !== layersKey) {
|
|
2648
|
+
if (await flushTasks(), !generated || generated.meta.tokensSize !== tokens.size || generated.meta.layersSize !== requestedLayers.size) {
|
|
2643
2649
|
let result = await uno.generate(tokens, {
|
|
2644
2650
|
minify: !0
|
|
2645
2651
|
}), customLayers = getCustomLayers();
|
|
2646
2652
|
generated = {
|
|
2647
2653
|
meta: {
|
|
2648
|
-
|
|
2649
|
-
|
|
2654
|
+
tokensSize: tokens.size,
|
|
2655
|
+
layersSize: requestedLayers.size
|
|
2650
2656
|
},
|
|
2651
2657
|
allCSS: result.getLayers(void 0, customLayers),
|
|
2652
2658
|
layerCSS: customLayers.reduce((acc, layer)=>(acc[layer] = result.getLayer(layer) || '', acc), {})
|
|
@@ -2712,7 +2718,7 @@ function createUnpack({ cwd = process.cwd(), config: userConfig, callerName = 'u
|
|
|
2712
2718
|
let mode = watch ? 'development' : 'production';
|
|
2713
2719
|
setNodeEnv(mode);
|
|
2714
2720
|
let config = resolveConfig(mode);
|
|
2715
|
-
console.log(colors.brand(`${callerName} v4.2.
|
|
2721
|
+
console.log(colors.brand(`${callerName} v4.2.3`), colors.cyan(`building for ${mode}...`)), await unpackBuild(config);
|
|
2716
2722
|
},
|
|
2717
2723
|
dev: async ()=>{
|
|
2718
2724
|
setUnpackStartTime(performance.now());
|
|
@@ -2861,7 +2867,7 @@ function runCLI() {
|
|
|
2861
2867
|
logger_logger.clear(), logger_logger.info(`${node_path.basename(file)} changed, restarting server...`), await watcher.close(), await cleanUpBeforeRestart(), startServer(options);
|
|
2862
2868
|
});
|
|
2863
2869
|
});
|
|
2864
|
-
devCommand.option('-o, --open [url]', 'Open browser on startup').option('--port <port>', 'Specify port').option('--host', 'Expose hostname').action(startServer), cli.help(), cli.version("4.2.
|
|
2870
|
+
devCommand.option('-o, --open [url]', 'Open browser on startup').option('--port <port>', 'Specify port').option('--host', 'Expose hostname').action(startServer), cli.help(), cli.version("4.2.3"), cli.parse();
|
|
2865
2871
|
}
|
|
2866
2872
|
var src_CSS_MODULES_NAMED_EXPORT = !1;
|
|
2867
2873
|
export { ALL_INTERFACES_IPV4, CSS_MODULES_EXPORTS_CONVENTION, CSS_MODULES_LOCAL_IDENT_NAME, DEV_DEFAULT_FILENAME, JSX_REGEX, JS_REGEX, LOCALHOST, NODE_MODULES_REGEX, PROD_DEFAULT_FILENAME, SCRIPT_REGEX, TEMPLATE_CONTENT, addRestartCleaner, cleanUpBeforeRestart, clearLine, colors, convertBasicAnsiColors, createChokidar, createUnpack, debounce, defineConfig, emptyDir, ensureDir, esVersionToBrowserslist, external_tinyglobby_glob as glob, findExists, getAddressUrls, getCompiledPkgPath, getCurrentUnpackConfig, getFilesContentHash, getHtmlTemplateOrContent, getIpv4Interfaces, getNodeEnv, getOrSetDefault, getPathInJs, getPort, getTime, getUnpackStartTime, getUserDepPath, getUserDepVersion, globSync, injectToHead, isBoolean, isDebug, isDev, isEmptyDir, isFileExists, isFileSync, isFunction, isNodeVersionAtLeast, isObject, isPlainObject, isRegExp, isString, isUndefined, isWin, launchEditor, loadConfig, loadConfigFile, logUpdate, logger_LogColor as LogColor, logger_logger as logger, mergeConfig, normalizePublicPath, openBrowser, pLimit, pathExists, pathToExportIdentifier, prettyTime, printServerUrls, removeDir, resolveConfigPath, rspack, runCLI, set, setCurrentUnpackConfig, setDevServer, setNodeEnv, setUnpackStartTime, src_CSS_MODULES_NAMED_EXPORT as CSS_MODULES_NAMED_EXPORT, trackPerformance, utils_isDevServer as isDevServer, utils_isProd as isProd };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/bundler-config/index.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,oBAAoB,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAwBnE,wBAAsB,gBAAgB,CACpC,oBAAoB,EAAE,YAAY,GACjC,OAAO,CAAC,oBAAoB,CAAC,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/bundler-config/index.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,oBAAoB,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAwBnE,wBAAsB,gBAAgB,CACpC,oBAAoB,EAAE,YAAY,GACjC,OAAO,CAAC,oBAAoB,CAAC,CAsN/B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"glob.d.ts","sourceRoot":"","sources":["../../src/plugins/glob.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"glob.d.ts","sourceRoot":"","sources":["../../src/plugins/glob.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAgR7C,eAAO,MAAM,UAAU,QAAO,YA+C7B,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"unocss.d.ts","sourceRoot":"","sources":["../../src/plugins/unocss.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAIV,UAAU,EACV,kBAAkB,EACnB,MAAM,cAAc,CAAA;AAOrB,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAU7C,MAAM,MAAM,mBAAmB,CAAC,KAAK,SAAS,MAAM,GAAG,MAAM,IAAI,UAAU,CAAC,KAAK,CAAC,CAAA;AAClF,MAAM,MAAM,oBAAoB,CAAC,KAAK,SAAS,MAAM,GAAG,MAAM,IAAI,kBAAkB,CAAC,KAAK,CAAC,CAAA;AAoE3F,eAAO,MAAM,YAAY,GAAI,KAAK,SAAS,MAAM,EAC/C,eAAe,mBAAmB,CAAC,KAAK,CAAC,GAAG,MAAM,EAClD,WAAW,oBAAoB,CAAC,KAAK,CAAC,KACrC,
|
|
1
|
+
{"version":3,"file":"unocss.d.ts","sourceRoot":"","sources":["../../src/plugins/unocss.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAIV,UAAU,EACV,kBAAkB,EACnB,MAAM,cAAc,CAAA;AAOrB,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAU7C,MAAM,MAAM,mBAAmB,CAAC,KAAK,SAAS,MAAM,GAAG,MAAM,IAAI,UAAU,CAAC,KAAK,CAAC,CAAA;AAClF,MAAM,MAAM,oBAAoB,CAAC,KAAK,SAAS,MAAM,GAAG,MAAM,IAAI,kBAAkB,CAAC,KAAK,CAAC,CAAA;AAoE3F,eAAO,MAAM,YAAY,GAAI,KAAK,SAAS,MAAM,EAC/C,eAAe,mBAAmB,CAAC,KAAK,CAAC,GAAG,MAAM,EAClD,WAAW,oBAAoB,CAAC,KAAK,CAAC,KACrC,YAoWF,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unpackjs/core",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.3",
|
|
4
4
|
"description": "An Rspack-based build tool",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
43
|
"@jridgewell/trace-mapping": "0.3.31",
|
|
44
|
-
"@rsdoctor/rspack-plugin": "1.5.
|
|
44
|
+
"@rsdoctor/rspack-plugin": "1.5.2",
|
|
45
45
|
"@rspack/core": "1.7.5",
|
|
46
46
|
"@rspack/dev-server": "1.2.1",
|
|
47
47
|
"cac": "6.7.14",
|