Skip to content

Commit

Permalink
Drop CJS version of adapter-netlify (#7401)
Browse files Browse the repository at this point in the history
* Drop CJS version of adapter-netlify

* revert 0SERVER change

* Update rollup.config.js

Co-authored-by: Rich Harris <[email protected]>
  • Loading branch information
benmccann and Rich-Harris authored Oct 27, 2022
1 parent 104c65e commit 97d45c0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
5 changes: 5 additions & 0 deletions .changeset/bright-countries-jump.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@sveltejs/adapter-netlify': patch
---

Drop CJS version of adapter-netlify
14 changes: 4 additions & 10 deletions packages/adapter-netlify/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,10 @@ const config = {
serverless: 'src/serverless.js',
shims: 'src/shims.js'
},
output: [
{
dir: 'files/cjs',
format: 'cjs'
},
{
dir: 'files/esm',
format: 'esm'
}
],
output: {
dir: 'files/esm',
format: 'esm'
},
plugins: [nodeResolve({ preferBuiltins: true }), commonjs(), json()],
external: (id) => id === '0SERVER' || id.startsWith('node:'),
preserveEntrySignatures: 'exports-only'
Expand Down

0 comments on commit 97d45c0

Please sign in to comment.