Skip to content

Commit

Permalink
fix: 'Could not resolve "./headers"'
Browse files Browse the repository at this point in the history
  • Loading branch information
FlippingBinary committed Oct 13, 2022
1 parent 5c64c99 commit 0152257
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export default function ({
// use posix because of https://github.com/sveltejs/kit/pull/3200
const relativePath = posix.relative(tmp, builder.getServerDirectory());

builder.copy(join(files, 'entry.js'), entry, {
builder.copy(files, tmp, {
replace: {
SERVER: `${relativePath}/index.js`,
MANIFEST: './manifest.js',
Expand All @@ -75,8 +75,6 @@ export default function ({
})};\n`
);

builder.copy(join(files, 'api'), apiDir);

/** @type {BuildOptions} */
const default_options = {
entryPoints: [entry],
Expand Down

0 comments on commit 0152257

Please sign in to comment.