@sveltejs/adapter-vercel 1.0.0-next.74 → 1.0.0-next.76

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/index.js +5 -0
  2. package/package.json +3 -3
package/index.js CHANGED
@@ -308,6 +308,11 @@ async function create_function_bundle(builder, entry, dir, runtime) {
308
308
  // pending https://github.com/vercel/nft/issues/284
309
309
  if (error.message.startsWith('Failed to resolve dependency node:')) return;
310
310
 
311
+ // parse errors are likely not js and can safely be ignored,
312
+ // such as this html file in "main" meant for nw instead of node:
313
+ // https://github.com/vercel/nft/issues/311
314
+ if (error.message.startsWith('Failed to parse')) return;
315
+
311
316
  if (error.message.startsWith('Failed to resolve dependency')) {
312
317
  const match = /Cannot find module '(.+?)' loaded from (.+)/;
313
318
  const [, module, importer] = match.exec(error.message);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sveltejs/adapter-vercel",
3
- "version": "1.0.0-next.74",
3
+ "version": "1.0.0-next.76",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/sveltejs/kit",
@@ -24,10 +24,10 @@
24
24
  ],
25
25
  "dependencies": {
26
26
  "@vercel/nft": "^0.22.0",
27
- "esbuild": "^0.15.6"
27
+ "esbuild": "^0.15.7"
28
28
  },
29
29
  "devDependencies": {
30
- "@sveltejs/kit": "1.0.0-next.481",
30
+ "@sveltejs/kit": "1.0.0-next.483",
31
31
  "@types/node": "^16.11.36",
32
32
  "typescript": "^4.8.2"
33
33
  },