@unpackjs/core 4.6.0 → 4.6.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/dist/index.js +6 -6
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -870,7 +870,7 @@ class JsMinifyPlugin {
|
|
|
870
870
|
apply(compiler) {
|
|
871
871
|
let meta = JSON.stringify({
|
|
872
872
|
name: jsMinify_PLUGIN_NAME,
|
|
873
|
-
version: "4.6.
|
|
873
|
+
version: "4.6.1",
|
|
874
874
|
options: this.minifyOptions
|
|
875
875
|
});
|
|
876
876
|
compiler.hooks.compilation.tap(jsMinify_PLUGIN_NAME, (compilation)=>{
|
|
@@ -908,7 +908,7 @@ class JsMinifyPlugin {
|
|
|
908
908
|
class ProgressBar {
|
|
909
909
|
prefix = 'transforming';
|
|
910
910
|
update({ percentage, message = '' }) {
|
|
911
|
-
let { columns: terminalWidth } = process.stdout, messageWidth = terminalWidth - this.prefix.length - (1 === percentage ?
|
|
911
|
+
let { columns: terminalWidth } = process.stdout, messageWidth = terminalWidth - this.prefix.length - (1 === percentage ? 8 : 7);
|
|
912
912
|
logUpdate(`${this.prefix} (${Math.floor(100 * percentage)}%) ${colors.dim(message.slice(0, messageWidth).padEnd(messageWidth, ' '))}`), 1 === percentage && clearLine();
|
|
913
913
|
}
|
|
914
914
|
}
|
|
@@ -1628,7 +1628,7 @@ async function unpackDev(unpackConfig) {
|
|
|
1628
1628
|
...middlewares
|
|
1629
1629
|
]);
|
|
1630
1630
|
let server = new RspackDevServer(devServerOptions, compiler);
|
|
1631
|
-
await server.start(), logger_logger.greet(` ${colors.brand(`${colors.bold(unpackConfig._context.callerName.toUpperCase())} v4.6.
|
|
1631
|
+
await server.start(), logger_logger.greet(` ${colors.brand(`${colors.bold(unpackConfig._context.callerName.toUpperCase())} v4.6.1`)} ${colors.dim('ready in')} ${colors.bold(Math.ceil(performance.now() - getUnpackStartTime()))} ${colors.dim('ms')}\n`), printServerUrls({
|
|
1632
1632
|
port,
|
|
1633
1633
|
host: unpackConfig.server.host,
|
|
1634
1634
|
base: unpackConfig.base
|
|
@@ -1642,7 +1642,7 @@ async function unpackDev(unpackConfig) {
|
|
|
1642
1642
|
function createUnpack({ cwd = process.cwd(), config: userConfig, callerName = 'unpack' }) {
|
|
1643
1643
|
let _context = {
|
|
1644
1644
|
callerName,
|
|
1645
|
-
version: "4.6.
|
|
1645
|
+
version: "4.6.1",
|
|
1646
1646
|
cachePath: 'node_modules/.unpack'
|
|
1647
1647
|
}, resolveConfig = (mode)=>{
|
|
1648
1648
|
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, optionsFromUnpackConfig, rootPath1, registerCode, namesCode, defaultConfig = {
|
|
@@ -2635,7 +2635,7 @@ function createUnpack({ cwd = process.cwd(), config: userConfig, callerName = 'u
|
|
|
2635
2635
|
let mode = watch ? 'development' : 'production';
|
|
2636
2636
|
setNodeEnv(mode);
|
|
2637
2637
|
let config = resolveConfig(mode);
|
|
2638
|
-
console.log(colors.brand(`${callerName} v4.6.
|
|
2638
|
+
console.log(colors.brand(`${callerName} v4.6.1`), colors.cyan(`building for ${mode}...`)), await unpackBuild(config);
|
|
2639
2639
|
},
|
|
2640
2640
|
dev: async ()=>{
|
|
2641
2641
|
setUnpackStartTime(performance.now());
|
|
@@ -2786,7 +2786,7 @@ function runCLI() {
|
|
|
2786
2786
|
logger_logger.clear(), logger_logger.info(`${node_path.basename(file)} changed, restarting server...`), await watcher.close(), await cleanUpBeforeRestart(), startServer(options);
|
|
2787
2787
|
});
|
|
2788
2788
|
});
|
|
2789
|
-
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.6.
|
|
2789
|
+
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.6.1"), cli.parse();
|
|
2790
2790
|
}
|
|
2791
2791
|
var src_CSS_MODULES_NAMED_EXPORT = !1;
|
|
2792
2792
|
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, applyHtmlTagDescriptors, 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, isBoolean, isDebug, isDev, isEmptyDir, isFileExists, isFileSync, isFunction, isNodeVersionAtLeast, isObject, isPlainObject, isRegExp, isString, isUndefined, isWin, launchEditor, loadConfig, loadConfigFromFile, logUpdate, logger_LogColor as LogColor, logger_logger as logger, normalizePublicPath, openBrowser, pLimit, pathExists, pathToExportIdentifier, prettyTime, printServerUrls, removeDir, renderHtmlTagDescriptor, 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, utils_mergeConfig as mergeConfig };
|