nitropack-nightly 2.11.10-20250427-170723.f258555c → 2.11.12-20250501-152448.ab1cd033
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.mjs
CHANGED
package/dist/rollup/index.mjs
CHANGED
|
@@ -154,7 +154,7 @@ export const connectionConfigs = {
|
|
|
154
154
|
|
|
155
155
|
const PLUGIN_NAME = "dynamic-require";
|
|
156
156
|
const HELPER_DYNAMIC = `\0${PLUGIN_NAME}.mjs`;
|
|
157
|
-
const DYNAMIC_REQUIRE_RE = /import\("\.\/" ?\+(.*)\).then/g;
|
|
157
|
+
const DYNAMIC_REQUIRE_RE = /import\((?:.*\+\s*)?"\.\/" ?\+(.*)\).then/g;
|
|
158
158
|
function dynamicRequire({ dir, ignore, inline }) {
|
|
159
159
|
return {
|
|
160
160
|
name: PLUGIN_NAME,
|
|
@@ -53,10 +53,7 @@ export default eventHandler((event) => {
|
|
|
53
53
|
if (!asset) {
|
|
54
54
|
if (isPublicAssetURL(id)) {
|
|
55
55
|
removeResponseHeader(event, "Cache-Control");
|
|
56
|
-
throw createError({
|
|
57
|
-
statusMessage: "Cannot find static asset " + id,
|
|
58
|
-
statusCode: 404
|
|
59
|
-
});
|
|
56
|
+
throw createError({ statusCode: 404 });
|
|
60
57
|
}
|
|
61
58
|
return;
|
|
62
59
|
}
|
package/package.json
CHANGED