-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* start fiddling about with code-split server code * generate build data * working, minus adapters * prerendering * WIP * tidy some stuff up * fix prefixes * adapter-node working * tidy up * tidy * make copy opts optional * tidy * netlify working albeit with single function * expose route data to adapters * some progress * lint * remove sandbox example from PR * implement createEntries API * fix some tests * AMP fix * tests all passing * update gitignore * disable adapter-node tests for now * typechecking * always create prerendered output directory * manifest -> generateManifest, add utils-level method * spread -> rest * finesse return value of copy helper * no need to pass config through to adapter * Update packages/kit/src/core/build/index.js Co-authored-by: Ben McCann <[email protected]> * fix * refactor out method extraction * add comment to resolve separate routes/components entry point detection * remove out of date comment * nicer rollup output types * actually that caused chaos, doing this instead * fix tests * update adapter-cloudflare * refactor build functions into client/server/service worker modules * make build_server more readable * oops * gah * windows fix * split manifest into public and private parts, so we can use manifest.assets in adapters * lint * prevent duplication of asset list in functions * exclude prerendered pages from functions * lint * get vercel adapter working (with v1 filesystem API) * target node14 * rename utils -> builder * add methods for getting directories instead of hardcoding .svelte-kit etc * fix lockfile * update cloudflare adapters * update readmes * tidy up * tweak docs * remove sandbox from workspace * try pinning version * Update packages/kit/src/core/build/build_server.js Co-authored-by: Ben McCann <[email protected]> * remove redundant strict fs stuff * remove sandbox from gitignore * lint * fix cloudflare pages handling of prerendered pages * support esm and cjs manifests * force createEntries to follow prerender * fix types * fix adapter-netlify * separate App from InternalApp * Update packages/kit/types/internal.d.ts Co-authored-by: Ben McCann <[email protected]> * expose SSRManifest * fall back to HTTP fetch if endpoint is missing * app.render should not be passed a host string * default hostHeader to host in config * fix types * replace page.host with page.origin * fix host stuff * make SSR route splitting optional * simplify createEntries * these are no longer generic * implement .json heuristic * lint * changesets * changeset * Update packages/adapter-netlify/index.js Co-authored-by: Ben McCann <[email protected]> * Update packages/adapter-node/README.md Co-authored-by: Ben McCann <[email protected]> * this.server -> this.vite * give a bare-bones description of createEntries * lint * add missing origin * remove TODO * replace ts-ignore with ts-expect-error * Update packages/kit/src/core/adapt/builder.js Co-authored-by: Ben McCann <[email protected]> * document AdapterEntry * Update packages/kit/types/config.d.ts Co-authored-by: Ben McCann <[email protected]> * oops * manifest -> vite_manifest Co-authored-by: Ben McCann <[email protected]> Co-authored-by: Rich Harris <[email protected]>
- Loading branch information
1 parent
588aaaf
commit ecb423b
Showing
110 changed files
with
2,345 additions
and
1,761 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
--- | ||
'@sveltejs/adapter-auto': patch | ||
'@sveltejs/adapter-cloudflare': patch | ||
'@sveltejs/adapter-cloudflare-workers': patch | ||
'@sveltejs/adapter-netlify': patch | ||
'@sveltejs/adapter-node': patch | ||
'@sveltejs/adapter-static': patch | ||
'@sveltejs/adapter-vercel': patch | ||
'@sveltejs/kit': patch | ||
--- | ||
|
||
Overhaul adapter API |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
'@sveltejs/adapter-cloudflare': patch | ||
'@sveltejs/adapter-cloudflare-workers': patch | ||
'@sveltejs/adapter-vercel': patch | ||
--- | ||
|
||
Remove esbuild options |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@sveltejs/kit': patch | ||
--- | ||
|
||
Replace config.kit.hostHeader with config.kit.headers.host, add config.kit.headers.protocol |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@sveltejs/kit': patch | ||
--- | ||
|
||
Replace page.host with page.origin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@sveltejs/adapter-netlify': patch | ||
--- | ||
|
||
Add experimental function splitting |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
'@sveltejs/adapter-netlify': patch | ||
'@sveltejs/adapter-node': patch | ||
--- | ||
|
||
Don't bundle final output |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,7 +16,7 @@ jobs: | |
- uses: actions/checkout@v2 | ||
- uses: pnpm/[email protected] | ||
with: | ||
version: 6 | ||
version: 6.23.2 | ||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: '14.x' | ||
|
@@ -41,7 +41,7 @@ jobs: | |
- uses: actions/checkout@v2 | ||
- uses: pnpm/[email protected] | ||
with: | ||
version: 6 | ||
version: 6.23.2 | ||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
|
@@ -75,7 +75,7 @@ jobs: | |
- uses: actions/checkout@v2 | ||
- uses: pnpm/[email protected] | ||
with: | ||
version: 6 | ||
version: 6.23.2 | ||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,7 +19,7 @@ jobs: | |
fetch-depth: 0 | ||
- uses: pnpm/[email protected] | ||
with: | ||
version: 6 | ||
version: 6.23.2 | ||
- name: Setup Node.js 12.x | ||
uses: actions/setup-node@v2 | ||
with: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,4 @@ | ||
import { Adapter } from '@sveltejs/kit'; | ||
import { BuildOptions } from 'esbuild'; | ||
|
||
interface AdapterOptions { | ||
esbuild?: (options: BuildOptions) => Promise<BuildOptions> | BuildOptions; | ||
} | ||
|
||
declare function plugin(options?: AdapterOptions): Adapter; | ||
declare function plugin(): Adapter; | ||
export = plugin; |
Oops, something went wrong.