@sveltejs/adapter-vercel 1.0.0-next.86 → 1.0.0-next.88

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 +2 -2
  2. package/package.json +5 -2
package/index.js CHANGED
@@ -122,12 +122,12 @@ const plugin = function ({ external = [], edge, split } = {}) {
122
122
  );
123
123
 
124
124
  await esbuild.build({
125
- platform: 'neutral',
126
- mainFields: ['module', 'main'],
127
125
  entryPoints: [`${tmp}/edge.js`],
128
126
  outfile: `${dirs.functions}/${name}.func/index.js`,
129
127
  target: 'es2020', // TODO verify what the edge runtime supports
130
128
  bundle: true,
129
+ platform: 'browser',
130
+ format: 'esm',
131
131
  external,
132
132
  sourcemap: 'linked',
133
133
  banner: { js: 'globalThis.global = globalThis;' }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sveltejs/adapter-vercel",
3
- "version": "1.0.0-next.86",
3
+ "version": "1.0.0-next.88",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/sveltejs/kit",
@@ -29,7 +29,10 @@
29
29
  "devDependencies": {
30
30
  "@types/node": "^16.18.6",
31
31
  "typescript": "^4.9.3",
32
- "@sveltejs/kit": "1.0.0-next.584"
32
+ "@sveltejs/kit": "1.0.0-next.587"
33
+ },
34
+ "peerDependencies": {
35
+ "@sveltejs/kit": "^1.0.0-next.587"
33
36
  },
34
37
  "scripts": {
35
38
  "lint": "prettier --check . --config ../../.prettierrc --ignore-path .gitignore",