From 96f1a4e370b05f143fe351438a27f08a5881427c Mon Sep 17 00:00:00 2001 From: Ben McCann <322311+benmccann@users.noreply.github.com> Date: Mon, 22 Mar 2021 08:14:39 -0700 Subject: [PATCH] Fix adapter-vercel imports --- .changeset/new-birds-march.md | 5 +++++ packages/adapter-vercel/index.js | 6 +++--- packages/adapter-vercel/package.json | 1 - 3 files changed, 8 insertions(+), 4 deletions(-) create mode 100644 .changeset/new-birds-march.md diff --git a/.changeset/new-birds-march.md b/.changeset/new-birds-march.md new file mode 100644 index 000000000000..f9224d88a0f9 --- /dev/null +++ b/.changeset/new-birds-march.md @@ -0,0 +1,5 @@ +--- +'@sveltejs/adapter-vercel': patch +--- + +Fix adapter-vercel imports diff --git a/packages/adapter-vercel/index.js b/packages/adapter-vercel/index.js index c92a35a2dbc1..0c706fd003af 100644 --- a/packages/adapter-vercel/index.js +++ b/packages/adapter-vercel/index.js @@ -1,6 +1,6 @@ -import { writeFileSync, mkdirSync, renameSync } from 'fs'; -import { resolve, join } from 'path'; -import { copy } from '@sveltejs/app-utils/files'; +const { writeFileSync, mkdirSync, renameSync } = require('fs'); +const { resolve, join } = require('path'); +const { copy } = require('@sveltejs/app-utils/files'); module.exports = function () { /** @type {import('@sveltejs/kit').Adapter} */ diff --git a/packages/adapter-vercel/package.json b/packages/adapter-vercel/package.json index 4d26832fdd21..8ee8cfc62453 100644 --- a/packages/adapter-vercel/package.json +++ b/packages/adapter-vercel/package.json @@ -2,7 +2,6 @@ "name": "@sveltejs/adapter-vercel", "version": "1.0.0-next.6", "main": "index.js", - "type": "module", "files": [ "files" ],