@nasti-toolchain/nasti 2.0.2 → 2.1.0
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/cli.cjs +8 -8
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js +8 -8
- package/dist/cli.js.map +1 -1
- package/dist/index.cjs +6 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +6 -6
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -2871,7 +2871,7 @@ async function build(inlineConfig = {}) {
|
|
|
2871
2871
|
const startTime = performance.now();
|
|
2872
2872
|
logger.info(
|
|
2873
2873
|
import_picocolors4.default.cyan(`
|
|
2874
|
-
nasti v${"2.0
|
|
2874
|
+
nasti v${"2.1.0"} `) + import_picocolors4.default.green(`building for ${config.mode}...`)
|
|
2875
2875
|
);
|
|
2876
2876
|
debug4?.(`root: ${config.root}`);
|
|
2877
2877
|
const buildableNames = Object.keys(config.environments).filter(
|
|
@@ -4753,7 +4753,7 @@ async function createServer(inlineConfig = {}) {
|
|
|
4753
4753
|
const readyIn = Math.ceil(performance.now() - startTime);
|
|
4754
4754
|
logger.info(
|
|
4755
4755
|
`
|
|
4756
|
-
${import_picocolors9.default.cyan(import_picocolors9.default.bold("NASTI"))} ${import_picocolors9.default.cyan(`v${"2.0
|
|
4756
|
+
${import_picocolors9.default.cyan(import_picocolors9.default.bold("NASTI"))} ${import_picocolors9.default.cyan(`v${"2.1.0"}`)} ${import_picocolors9.default.dim("ready in")} ${import_picocolors9.default.bold(readyIn)} ${import_picocolors9.default.dim("ms")}
|
|
4757
4757
|
`
|
|
4758
4758
|
);
|
|
4759
4759
|
printServerUrls(
|
|
@@ -4912,7 +4912,7 @@ async function buildElectron(inlineConfig = {}) {
|
|
|
4912
4912
|
const config = await resolveConfig({ ...inlineConfig, target: "electron" }, "build");
|
|
4913
4913
|
const startTime = performance.now();
|
|
4914
4914
|
assertElectronVersion(config);
|
|
4915
|
-
console.log(import_picocolors5.default.cyan("\n\u26A1 nasti build (electron)") + import_picocolors5.default.dim(` v${"2.0
|
|
4915
|
+
console.log(import_picocolors5.default.cyan("\n\u26A1 nasti build (electron)") + import_picocolors5.default.dim(` v${"2.1.0"}`));
|
|
4916
4916
|
console.log(import_picocolors5.default.dim(` root: ${config.root}`));
|
|
4917
4917
|
console.log(import_picocolors5.default.dim(` mode: ${config.mode}`));
|
|
4918
4918
|
console.log(import_picocolors5.default.dim(` target: electron (\u2265 ${config.electron.minVersion})`));
|
|
@@ -5063,7 +5063,7 @@ async function startElectronDev(inlineConfig = {}) {
|
|
|
5063
5063
|
const { noSpawn, ...rest } = inlineConfig;
|
|
5064
5064
|
const config = await resolveConfig({ ...rest, target: "electron" }, "serve");
|
|
5065
5065
|
warnElectronVersion(config);
|
|
5066
|
-
console.log(import_picocolors10.default.cyan("\n\u26A1 nasti electron dev") + import_picocolors10.default.dim(` v${"2.0
|
|
5066
|
+
console.log(import_picocolors10.default.cyan("\n\u26A1 nasti electron dev") + import_picocolors10.default.dim(` v${"2.1.0"}`));
|
|
5067
5067
|
const { createServer: createServer2 } = await Promise.resolve().then(() => (init_server(), server_exports));
|
|
5068
5068
|
const server = await createServer2({ ...rest, target: "electron" });
|
|
5069
5069
|
await server.listen();
|
|
@@ -5187,7 +5187,7 @@ async function compileNode(config, entry, opts) {
|
|
|
5187
5187
|
transform(code, id) {
|
|
5188
5188
|
if (!shouldTransform(id)) return null;
|
|
5189
5189
|
const result = transformCode(id, code, {
|
|
5190
|
-
sourcemap:
|
|
5190
|
+
sourcemap: true,
|
|
5191
5191
|
jsxRuntime: "automatic",
|
|
5192
5192
|
jsxImportSource: config.framework === "vue" ? "vue" : "react"
|
|
5193
5193
|
});
|
|
@@ -5204,7 +5204,7 @@ async function compileNode(config, entry, opts) {
|
|
|
5204
5204
|
await bundle2.write({
|
|
5205
5205
|
file: opts.outFile,
|
|
5206
5206
|
format: opts.format === "cjs" ? "cjs" : "esm",
|
|
5207
|
-
sourcemap:
|
|
5207
|
+
sourcemap: true,
|
|
5208
5208
|
minify: false,
|
|
5209
5209
|
// rolldown 已弃用 inlineDynamicImports,改用 codeSplitting:false 表达
|
|
5210
5210
|
// 同样语义(单 chunk、内联 dynamic import)
|