1328 Commits (fix-build-duplicate-code)
 

Author SHA1 Message Date
Katja Lutz e60ba647c6 fix: remove entry-server handler copy in adapters
In certain cases the handler.js copy resulted in duplicate code in the
final project build. As example in the final build, dynamically imported
modules might import their dependencies from the original entry-server.js
instead of the handler.js copy, this would result in the following chain:

1. handler.js copied from entry-server.js (therefore has code of dep1,
   dep2, dep3)
2. handler.js dynamically imports
   SomeComponent.js
2. SomeComponent.js doesnt know about handler.js, imports dep2 from entry-server.js
3. entry-server.js has code for dep1, dep2, dep3
4. The final build includes dep1, dep2 and dep3 from handler.js and from
   entry-server.js

So by removing the handler.js copy and directly importing
entry-server.js we can avoid the duplicate dependency code.
1 year ago
Ryan Carniato ec6eecb133 v0.2.22 1 year ago
Ryan Carniato fe677622da fix memory leak in server side createRouteData 1 year ago
Ryan Carniato c653c6f919 v0.2.21 1 year ago
David Di Biase 78c4bb3ad9
start-netlify: Add context to request handler (#746)
* Add context to request  to handler

* pass netlify context to env

---------

Co-authored-by: Ryan Carniato <ryansolid@gmail.com>
1 year ago
LiQuidProQuo cb904e50c6
remove redundant hard coded <Root> also reduce one level of propMerge (#747) 1 year ago
Aaron Bassett 6469a0fe5b
allow vite to split dynamic imports to multiple files (#744) 1 year ago
Burhanuddin Udaipurwala a1bdb9a34d
fix: move solid deps to prod deps in todo example (#740)
Co-authored-by: Ryan Carniato <ryansolid@gmail.com>
1 year ago
Alex Lohr d67c8d3c81
fix: use base path in client router (#742)
Co-authored-by: Alex Lohr <alex.lohr@goto.com>
1 year ago
Aaron Bassett 446679a999
Vercel & Netlify forward ssr.external to rollup build (#745)
* vercel forward ssr.external config to rollup build

* netlify forward ssr.external config to rollup build
1 year ago
Caleb Webber be97acfae1
fix: always render doctype (#737)
Co-authored-by: Ryan Carniato <ryansolid@gmail.com>
1 year ago
Ryan Carniato e5ea482376 Revert "Initial typings fs-router folder (#709)"
This reverts commit 1890f44a1b.
1 year ago
Birk Skyum 1890f44a1b
Initial typings fs-router folder (#709)
* type path-utils

* convert fileRoutesImport to ts

* add @types/babel-types

* add types to fileRoutesImport

* use @babel/types directly

* add @babel/types as dependency

* convert manifest to ts

* add some types to manifest

* rename router.js to .ts

* convert router.js to .ts

* Revert "rename router.js to .ts"

This reverts commit 38049e1a4b74dc8e00540124dac98ce26162347d.

* Revert "add some types to manifest"

This reverts commit 9e44f91b8ac031b19f30a217349cde8dff6b91f2.

* Revert "convert manifest to ts"

This reverts commit 23ce4a323a66782ea8012f487b6ffc0eb63cd6b1.

* ts-ignore @babel/types

* revert router.js

---------

Co-authored-by: Ryan Carniato <ryansolid@gmail.com>
1 year ago
Simon Basset eb8ea6c7e8
feat(solid-start-static): when building a static app, throw an error if ssr option is disabled (#735) 1 year ago
Birk Skyum 027d4acd2f
Update lockfile after 1.6.10 release (#727) 1 year ago
Ryan Carniato a482fca835 v0.2.20 1 year ago
Ryan Carniato a4c8b18c63 add node 18, temp disable cloudflare 1 year ago
OrJDev 3d4d2dadbd
fix: set adapters as peer dependencies (#718)
* fix: set adapters as peer dependencies

* npx sort-package-json

---------

Co-authored-by: Ryan Carniato <ryansolid@gmail.com>
1 year ago
Ryan Carniato 02a199a7f1
fix windows with ssr:false (#724)
* try to fix windows

* option 2
1 year ago
Alex Errant 94512e0dc1
`bump.cjs` updates example deps (#721)
* bump examples' solid-start version

* guard against no solid-start

* update solidJsVersion
1 year ago
OrJDev c9c3e5524a
types: add types for the vercel adapter (#717)
* types: add types for the vercel adapter

* unrelated but remove the warning
1 year ago
gunnnnii 89bc41f25d
changes solid-styled babel plugin to solid-styled/babel (#712) 1 year ago
Nikhil Saraf 867d6b645f
Merge pull request #708 from OrJDev/with-authjs
Bump Examples Versions And Add With-AuthJS Example
1 year ago
OrJDev 53ea619185 remove comments 1 year ago
OrJDev 05d6429f8a remove counter 1 year ago
OrJDev 97312251f1 Bump Examples Versions And Add With-AuthJS Example 1 year ago
Ryan Carniato 281b5ff9f5 0.2.19 1 year ago
Ryan Carniato 106eac7693 remove alpha changelog 1 year ago
Ryan Carniato 0a27fc2d97 better csr fix 1 year ago
Oren Elbaum ae36320bb2 fix csr dev server evaluates user modules 1 year ago
Birk Skyum 9c216df46b
Bump playwright to 1.25.2 (#704)
* Bump playwright to 1.25.2

* update playwright in ci
1 year ago
Ryan Carniato bdec158aa5 v0.2.18 1 year ago
Ryan Carniato 4e2ba7f02c fix lockfile 1 year ago
Aaron Bassett a0c71fc864
feat(solid-start-vercel): use @vercel/nft to include un-bundable dependancies (#702)
* convert raw paths to URL objects

* temp jsdoc for types

* use @vercel/nft to copy files to functions

* build output from root of filesystem

* cleanup dist dir

* func entrypoint relative path

* func extension matches output

* fix config.json output

* handle @vercel/nft warining

* include & exclude

* symlinks

* start with empty build dirs

* cleanup done TODOs

---------

Co-authored-by: Ryan Carniato <ryansolid@gmail.com>
1 year ago
Birk Skyum 89adf94d85
Bump deps for tests (#694)
* Bump deps for tests

* rollback playwright/test

* rollback playwright/test

---------

Co-authored-by: Ryan Carniato <ryansolid@gmail.com>
1 year ago
Garrett Hopper 430cab7cc9
fix typo (#701) 1 year ago
Ryan Carniato ec40728773 better default port fix 1 year ago
Ryan Carniato 1644a1df1a v0.2.17 1 year ago
Sam C. Finan 82901a8a21
Append http headers instead of overwrite (#233)
* Append http headers instead of overwrite

* Set by default, append if prop set

---------

Co-authored-by: Nikhil Saraf <nsaraf98@gmail.com>
Co-authored-by: Ryan Carniato <ryansolid@gmail.com>
1 year ago
Isaac 91b5d20112
feat: call handleRefetch() when the response is not a redirect (#683)
* feat: call handleRefetch() when the response doesn't have a status that indicates a redirect

* fix: remove validations to call handleRefetch() method

---------

Co-authored-by: Ryan Carniato <ryansolid@gmail.com>
1 year ago
LiQuidProQuo e989c22566
docs: file based routing optional parameter (#686) 1 year ago
Julius Marminge 5668213646
feat(create-solid): prompt target if not supplied through args (#685)
* prompt target if not supplied through args

* const

Co-authored-by: Ryan Carniato <ryansolid@gmail.com>
1 year ago
Birk Skyum 59527f193e
Make css link tests compatible with Vite 4 (#673)
Revert "Make css link tests compatible with Vite 4"

This reverts commit e1d0bea1df26cb14791006315290ec6acaa65ec4.

make small change
1 year ago
Eduardo Sotero d5cf24dfee
fix og:site_name grammar (#677) 1 year ago
Ryan Carniato 20de367add downgrade to avoid weirdness around rollup node resolve 1 year ago
Ryan Carniato 6068911412 docs fixes, fix #670, fix #671, fix #672 1 year ago
Ryan Carniato 026877601d v0.2.16 1 year ago
Ryan Carniato d29bf749cd update deps 1 year ago
Ryan Carniato c5a065e536 v0.2.15 1 year ago
Gabriel Halle 2d197477a3
explicitly handle serverResource server functions (#663)
Co-authored-by: Ryan Carniato <ryansolid@gmail.com>
1 year ago