nitro-nightly 3.0.1-20260122-173608-d4f5eafd → 3.0.1-20260122-193916-3c506bba

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.
Files changed (2) hide show
  1. package/dist/vite.mjs +24 -17
  2. package/package.json +1 -1
package/dist/vite.mjs CHANGED
@@ -43,33 +43,40 @@ const getBundlerConfig = async (ctx) => {
43
43
  sourcemapIgnoreList: (id) => id.includes("node_modules")
44
44
  }
45
45
  };
46
- if (ctx._isRolldown) return {
47
- base,
48
- rollupConfig: void 0,
49
- rolldownConfig: defu({
46
+ if (ctx._isRolldown) {
47
+ const rolldownConfig = {
50
48
  transform: { inject: base.env.inject },
51
49
  output: { codeSplitting: { groups: [{
52
50
  test: NODE_MODULES_RE,
53
51
  name: (id) => libChunkName(id)
54
52
  }] } }
55
- }, nitro$1.options.rolldownConfig, nitro$1.options.rollupConfig, commonConfig)
56
- };
57
- else {
53
+ };
54
+ const outputConfig = rolldownConfig.output;
55
+ if (outputConfig.inlineDynamicImports || outputConfig.format === "iife") delete outputConfig.codeSplitting;
56
+ return {
57
+ base,
58
+ rollupConfig: void 0,
59
+ rolldownConfig: defu(rolldownConfig, nitro$1.options.rolldownConfig, nitro$1.options.rollupConfig, commonConfig)
60
+ };
61
+ } else {
58
62
  const inject = (await import("./_libs/plugin-inject.mjs").then((n) => n.t)).default;
59
63
  const alias = (await import("./_libs/plugin-alias.mjs").then((n) => n.n)).default;
64
+ const rollupConfig = {
65
+ plugins: [inject(base.env.inject), alias({ entries: base.aliases })],
66
+ output: {
67
+ sourcemapExcludeSources: true,
68
+ generatedCode: { constBindings: true },
69
+ manualChunks(id) {
70
+ if (NODE_MODULES_RE.test(id)) return libChunkName(id);
71
+ }
72
+ }
73
+ };
74
+ const outputConfig = rollupConfig.output;
75
+ if (outputConfig.inlineDynamicImports || outputConfig.format === "iife") delete outputConfig.manualChunks;
60
76
  return {
61
77
  base,
62
78
  rolldownConfig: void 0,
63
- rollupConfig: defu({
64
- plugins: [inject(base.env.inject), alias({ entries: base.aliases })],
65
- output: {
66
- sourcemapExcludeSources: true,
67
- generatedCode: { constBindings: true },
68
- manualChunks(id) {
69
- if (NODE_MODULES_RE.test(id)) return libChunkName(id);
70
- }
71
- }
72
- }, nitro$1.options.rolldownConfig, nitro$1.options.rollupConfig, commonConfig)
79
+ rollupConfig: defu(rollupConfig, nitro$1.options.rolldownConfig, nitro$1.options.rollupConfig, commonConfig)
73
80
  };
74
81
  }
75
82
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nitro-nightly",
3
- "version": "3.0.1-20260122-173608-d4f5eafd",
3
+ "version": "3.0.1-20260122-193916-3c506bba",
4
4
  "description": "Build and Deploy Universal JavaScript Servers",
5
5
  "keywords": [
6
6
  "api-routes",