@unpackjs/core 3.7.3 → 3.7.4
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 +4 -4
- package/package.json +1 -2
package/dist/index.js
CHANGED
|
@@ -668,7 +668,7 @@ class JsMinifyPlugin {
|
|
|
668
668
|
apply(compiler) {
|
|
669
669
|
let meta = JSON.stringify({
|
|
670
670
|
name: jsMinify_PLUGIN_NAME,
|
|
671
|
-
version: "3.7.
|
|
671
|
+
version: "3.7.4",
|
|
672
672
|
options: this.minifyOptions
|
|
673
673
|
});
|
|
674
674
|
compiler.hooks.compilation.tap(jsMinify_PLUGIN_NAME, (compilation)=>{
|
|
@@ -1876,7 +1876,7 @@ async function unpackDev(originalUnpackConfig) {
|
|
|
1876
1876
|
req.headers.accept?.includes('html') && (req.url = '/index.html'), next();
|
|
1877
1877
|
}), middlewares.unshift(experiments.lazyCompilationMiddleware(compiler)), middlewares);
|
|
1878
1878
|
let server = new RspackDevServer(devServerOptions, compiler);
|
|
1879
|
-
await server.start(), logger_logger.greet(` ${colors.brand(`${colors.bold(unpackConfig._context.callerName.toUpperCase())} v3.7.
|
|
1879
|
+
await server.start(), logger_logger.greet(` ${colors.brand(`${colors.bold(unpackConfig._context.callerName.toUpperCase())} v3.7.4`)} ${colors.dim('ready in')} ${colors.bold(Math.ceil(performance.now() - global.__unpack_start_time))} ${colors.dim('ms')}\n`), printAddressUrls(port, unpackConfig.server?.host), addRestartCleaner(()=>server.stop(), ()=>new Promise((resolve)=>compiler.close(()=>resolve())));
|
|
1880
1880
|
let open = unpackConfig.server?.open, url = isString(open) ? open : `http://localhost:${port}`;
|
|
1881
1881
|
open && openBrowser(url), setupCliShortcuts({
|
|
1882
1882
|
openPage: async ()=>{
|
|
@@ -1912,7 +1912,7 @@ function printAddressUrls(port, host) {
|
|
|
1912
1912
|
function createUnpack({ cwd = process.cwd(), config: userConfig, callerName = 'unpack' }) {
|
|
1913
1913
|
let _context = {
|
|
1914
1914
|
callerName,
|
|
1915
|
-
version: "3.7.
|
|
1915
|
+
version: "3.7.4",
|
|
1916
1916
|
cachePath: 'node_modules/.unpack'
|
|
1917
1917
|
};
|
|
1918
1918
|
global.__unpack_caller_name = callerName;
|
|
@@ -1962,7 +1962,7 @@ function createUnpack({ cwd = process.cwd(), config: userConfig, callerName = 'u
|
|
|
1962
1962
|
let mode = watch ? 'development' : 'production';
|
|
1963
1963
|
setNodeEnv(mode);
|
|
1964
1964
|
let config = resolveConfig(mode);
|
|
1965
|
-
console.log(colors.brand(`${callerName} v3.7.
|
|
1965
|
+
console.log(colors.brand(`${callerName} v3.7.4`), colors.cyan(`building for ${mode}...`)), await unpackBuild(config);
|
|
1966
1966
|
},
|
|
1967
1967
|
dev: async ()=>{
|
|
1968
1968
|
global.__unpack_start_time = performance.now();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unpackjs/core",
|
|
3
|
-
"version": "3.7.
|
|
3
|
+
"version": "3.7.4",
|
|
4
4
|
"description": "An Rspack-based build tool",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -10,7 +10,6 @@
|
|
|
10
10
|
},
|
|
11
11
|
"./package.json": "./package.json"
|
|
12
12
|
},
|
|
13
|
-
"main": "./dist/index.js",
|
|
14
13
|
"types": "./dist-types/index.d.ts",
|
|
15
14
|
"keywords": [],
|
|
16
15
|
"authors": [],
|