@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/index.js CHANGED
@@ -2877,7 +2877,7 @@ async function build(inlineConfig = {}) {
2877
2877
  const startTime = performance.now();
2878
2878
  logger.info(
2879
2879
  pc4.cyan(`
2880
- nasti v${"2.0.2"} `) + pc4.green(`building for ${config.mode}...`)
2880
+ nasti v${"2.1.0"} `) + pc4.green(`building for ${config.mode}...`)
2881
2881
  );
2882
2882
  debug4?.(`root: ${config.root}`);
2883
2883
  const buildableNames = Object.keys(config.environments).filter(
@@ -4758,7 +4758,7 @@ async function createServer(inlineConfig = {}) {
4758
4758
  const readyIn = Math.ceil(performance.now() - startTime);
4759
4759
  logger.info(
4760
4760
  `
4761
- ${pc9.cyan(pc9.bold("NASTI"))} ${pc9.cyan(`v${"2.0.2"}`)} ${pc9.dim("ready in")} ${pc9.bold(readyIn)} ${pc9.dim("ms")}
4761
+ ${pc9.cyan(pc9.bold("NASTI"))} ${pc9.cyan(`v${"2.1.0"}`)} ${pc9.dim("ready in")} ${pc9.bold(readyIn)} ${pc9.dim("ms")}
4762
4762
  `
4763
4763
  );
4764
4764
  printServerUrls(
@@ -4886,7 +4886,7 @@ async function buildElectron(inlineConfig = {}) {
4886
4886
  const config = await resolveConfig({ ...inlineConfig, target: "electron" }, "build");
4887
4887
  const startTime = performance.now();
4888
4888
  assertElectronVersion(config);
4889
- console.log(pc5.cyan("\n\u26A1 nasti build (electron)") + pc5.dim(` v${"2.0.2"}`));
4889
+ console.log(pc5.cyan("\n\u26A1 nasti build (electron)") + pc5.dim(` v${"2.1.0"}`));
4890
4890
  console.log(pc5.dim(` root: ${config.root}`));
4891
4891
  console.log(pc5.dim(` mode: ${config.mode}`));
4892
4892
  console.log(pc5.dim(` target: electron (\u2265 ${config.electron.minVersion})`));
@@ -5037,7 +5037,7 @@ async function startElectronDev(inlineConfig = {}) {
5037
5037
  const { noSpawn, ...rest } = inlineConfig;
5038
5038
  const config = await resolveConfig({ ...rest, target: "electron" }, "serve");
5039
5039
  warnElectronVersion(config);
5040
- console.log(pc10.cyan("\n\u26A1 nasti electron dev") + pc10.dim(` v${"2.0.2"}`));
5040
+ console.log(pc10.cyan("\n\u26A1 nasti electron dev") + pc10.dim(` v${"2.1.0"}`));
5041
5041
  const { createServer: createServer2 } = await Promise.resolve().then(() => (init_server(), server_exports));
5042
5042
  const server = await createServer2({ ...rest, target: "electron" });
5043
5043
  await server.listen();
@@ -5161,7 +5161,7 @@ async function compileNode(config, entry, opts) {
5161
5161
  transform(code, id) {
5162
5162
  if (!shouldTransform(id)) return null;
5163
5163
  const result = transformCode(id, code, {
5164
- sourcemap: !!config.build.sourcemap,
5164
+ sourcemap: true,
5165
5165
  jsxRuntime: "automatic",
5166
5166
  jsxImportSource: config.framework === "vue" ? "vue" : "react"
5167
5167
  });
@@ -5178,7 +5178,7 @@ async function compileNode(config, entry, opts) {
5178
5178
  await bundle2.write({
5179
5179
  file: opts.outFile,
5180
5180
  format: opts.format === "cjs" ? "cjs" : "esm",
5181
- sourcemap: false,
5181
+ sourcemap: true,
5182
5182
  minify: false,
5183
5183
  // rolldown 已弃用 inlineDynamicImports,改用 codeSplitting:false 表达
5184
5184
  // 同样语义(单 chunk、内联 dynamic import)