nitropack-nightly 2.11.0-20250211-195501.69b73adf → 2.11.0-20250211-203640.d86b672b
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/meta/index.d.mts +1 -1
- package/dist/meta/index.d.ts +1 -1
- package/dist/meta/index.mjs +1 -1
- package/dist/rollup/index.mjs +44 -21
- package/package.json +2 -2
package/dist/meta/index.d.mts
CHANGED
package/dist/meta/index.d.ts
CHANGED
package/dist/meta/index.mjs
CHANGED
package/dist/rollup/index.mjs
CHANGED
|
@@ -35,6 +35,47 @@ import { withTrailingSlash } from 'ufo';
|
|
|
35
35
|
import _replace from '@rollup/plugin-replace';
|
|
36
36
|
import { normalizeKey, builtinDrivers } from 'unstorage';
|
|
37
37
|
|
|
38
|
+
const common = {
|
|
39
|
+
alias: {
|
|
40
|
+
"node-fetch": "unenv/npm/node-fetch",
|
|
41
|
+
"cross-fetch": "unenv/npm/cross-fetch",
|
|
42
|
+
"cross-fetch/polyfill": "unenv/mock/empty",
|
|
43
|
+
"isomorphic-fetch": "unenv/mock/empty",
|
|
44
|
+
debug: "unenv/npm/debug",
|
|
45
|
+
// buffer (npm)
|
|
46
|
+
buffer: "node:buffer",
|
|
47
|
+
"buffer/": "node:buffer",
|
|
48
|
+
"buffer/index": "node:buffer",
|
|
49
|
+
"buffer/index.js": "node:buffer"
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
const node = {
|
|
53
|
+
alias: {
|
|
54
|
+
"node-mock-http/_polyfill/events": "node:events",
|
|
55
|
+
"node-mock-http/_polyfill/buffer": "node:buffer"
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
const nodeless = {
|
|
59
|
+
alias: {
|
|
60
|
+
fsevents: "unenv/npm/fsevents",
|
|
61
|
+
inherits: "unenv/npm/inherits",
|
|
62
|
+
"whatwg-url": "unenv/npm/whatwg-url"
|
|
63
|
+
},
|
|
64
|
+
inject: {
|
|
65
|
+
performance: "unenv/polyfill/performance",
|
|
66
|
+
global: "unenv/polyfill/globalthis",
|
|
67
|
+
process: "unenv/node/process",
|
|
68
|
+
Buffer: ["unenv/node/buffer", "Buffer"]
|
|
69
|
+
},
|
|
70
|
+
polyfill: [
|
|
71
|
+
// Backward compatibility (remove in v2)
|
|
72
|
+
// https://github.com/unjs/unenv/pull/427
|
|
73
|
+
"unenv/polyfill/globalthis-global",
|
|
74
|
+
"unenv/polyfill/process",
|
|
75
|
+
"unenv/polyfill/performance"
|
|
76
|
+
]
|
|
77
|
+
};
|
|
78
|
+
|
|
38
79
|
const PREFIX = "\0virtual:";
|
|
39
80
|
function virtual(modules, cache = {}) {
|
|
40
81
|
const _modules = /* @__PURE__ */ new Map();
|
|
@@ -1677,30 +1718,12 @@ const getRollupConfig = (nitro) => {
|
|
|
1677
1718
|
nodeCompat: isNodeless,
|
|
1678
1719
|
resolve: true,
|
|
1679
1720
|
presets: [
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
// https://github.com/unjs/unenv/pull/427
|
|
1683
|
-
inject: {
|
|
1684
|
-
performance: "unenv/polyfill/performance"
|
|
1685
|
-
},
|
|
1686
|
-
polyfill: [
|
|
1687
|
-
"unenv/polyfill/globalthis-global",
|
|
1688
|
-
"unenv/polyfill/process",
|
|
1689
|
-
"unenv/polyfill/performance"
|
|
1690
|
-
]
|
|
1691
|
-
} : {},
|
|
1721
|
+
common,
|
|
1722
|
+
isNodeless ? nodeless : node,
|
|
1692
1723
|
nitro.options.unenv
|
|
1693
1724
|
],
|
|
1694
1725
|
overrides: {
|
|
1695
1726
|
alias: {
|
|
1696
|
-
// General
|
|
1697
|
-
...nitro.options.dev ? {} : {
|
|
1698
|
-
debug: "unenv/npm/debug"
|
|
1699
|
-
},
|
|
1700
|
-
...isNodeless ? {} : {
|
|
1701
|
-
"node-mock-http/_polyfill/events": "node:events",
|
|
1702
|
-
"node-mock-http/_polyfill/buffer": "node:buffer"
|
|
1703
|
-
},
|
|
1704
1727
|
...nitro.options.alias
|
|
1705
1728
|
}
|
|
1706
1729
|
}
|
|
@@ -1767,7 +1790,7 @@ const getRollupConfig = (nitro) => {
|
|
|
1767
1790
|
return relativePath.includes("node_modules");
|
|
1768
1791
|
}
|
|
1769
1792
|
},
|
|
1770
|
-
external: env.external,
|
|
1793
|
+
external: [...env.external],
|
|
1771
1794
|
plugins: [],
|
|
1772
1795
|
onwarn(warning, rollupWarn) {
|
|
1773
1796
|
if (!["CIRCULAR_DEPENDENCY", "EVAL"].includes(warning.code || "") && !warning.message.includes("Unsupported source map comment")) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nitropack-nightly",
|
|
3
|
-
"version": "2.11.0-20250211-
|
|
3
|
+
"version": "2.11.0-20250211-203640.d86b672b",
|
|
4
4
|
"description": "Build and Deploy Universal JavaScript Servers",
|
|
5
5
|
"repository": "nitrojs/nitro",
|
|
6
6
|
"license": "MIT",
|
|
@@ -162,7 +162,7 @@
|
|
|
162
162
|
"ultrahtml": "^1.5.3",
|
|
163
163
|
"uncrypto": "^0.1.3",
|
|
164
164
|
"unctx": "^2.4.1",
|
|
165
|
-
"unenv": "2.0.0-rc.
|
|
165
|
+
"unenv": "2.0.0-rc.4",
|
|
166
166
|
"unimport": "^4.0.0",
|
|
167
167
|
"unplugin-utils": "^0.2.3",
|
|
168
168
|
"unstorage": "^1.14.4",
|