File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
packages/adapter-cloudflare-workers Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import toml from '@iarna/toml';
6
6
import { fileURLToPath } from 'url' ;
7
7
8
8
/** @type {import('.') } */
9
- export default function ( ) {
9
+ export default function ( options = { } ) {
10
10
return {
11
11
name : '@sveltejs/adapter-cloudflare-workers' ,
12
12
@@ -53,12 +53,13 @@ export default function () {
53
53
) ;
54
54
55
55
await esbuild . build ( {
56
- entryPoints : [ `${ tmp } /entry.js` ] ,
57
- outfile : `${ entrypoint } /${ main_path } ` ,
58
56
target : 'es2020' ,
59
57
platform : 'browser' ,
58
+ ...options ,
59
+ entryPoints : [ `${ tmp } /entry.js` ] ,
60
+ outfile : `${ entrypoint } /${ main_path } ` ,
60
61
bundle : true ,
61
- external : [ '__STATIC_CONTENT_MANIFEST' ] ,
62
+ external : [ '__STATIC_CONTENT_MANIFEST' , ... ( options ?. external || [ ] ) ] ,
62
63
format : 'esm'
63
64
} ) ;
64
65
You can’t perform that action at this time.
0 commit comments