Skip to content
This repository has been archived by the owner on May 10, 2024. It is now read-only.

with browser true #2

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion dist-cloudflare/README.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
This folder contains the built output assets for the worker "solid-start-2022-09-30" generated at 2022-10-03T08:45:34.756Z.
This folder contains the built output assets for the worker "solid-start-2022-09-30" generated at 2022-10-03T08:49:53.721Z.
16,797 changes: 6,543 additions & 10,254 deletions dist-cloudflare/server.js

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions dist-cloudflare/server.js.map

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/public/manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"src/entry-client.tsx": {
"file": "assets/entry-client.b0117054.js",
"file": "assets/entry-client.0e635511.js",
"src": "src/entry-client.tsx",
"isEntry": true,
"dynamicImports": [
Expand All @@ -11,7 +11,7 @@
]
},
"src/routes/index.tsx": {
"file": "assets/index.af6c29ac.js",
"file": "assets/index.f572890e.js",
"src": "src/routes/index.tsx",
"isDynamicEntry": true,
"imports": [
Expand Down
6 changes: 3 additions & 3 deletions dist/public/route-manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
"/": [
{
"type": "script",
"href": "/assets/index.af6c29ac.js"
"href": "/assets/index.f572890e.js"
},
{
"type": "script",
"href": "/assets/entry-client.b0117054.js"
"href": "/assets/entry-client.0e635511.js"
},
{
"type": "style",
Expand All @@ -16,7 +16,7 @@
"entry-client": [
{
"type": "script",
"href": "/assets/entry-client.b0117054.js"
"href": "/assets/entry-client.0e635511.js"
},
{
"type": "style",
Expand Down
96 changes: 48 additions & 48 deletions dist/public/ssr-manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"node_modules/.pnpm/solid-js@1.5.7/node_modules/solid-js/dist/solid.js": [],
"node_modules/.pnpm/solid-js@1.5.7/node_modules/solid-js/web/dist/web.js": [],
"node_modules/.pnpm/solid-js@1.5.7_rioon2l6g4t5h43ht6tz6zjuqa/node_modules/solid-js/dist/solid.js": [],
"node_modules/.pnpm/solid-js@1.5.7_rioon2l6g4t5h43ht6tz6zjuqa/node_modules/solid-js/web/dist/web.js": [],
"\u0000vite/preload-helper": [],
"node_modules/.pnpm/solid-start@0.1.2_662kx2gjxcetvfdkelauuogf74/node_modules/solid-start/entry-client/mount.tsx": [],
"node_modules/.pnpm/@solidjs+meta@0.28.0_solid-js@1.5.7/node_modules/@solidjs/meta/dist/index.jsx": [],
Expand All @@ -20,141 +20,141 @@
"node_modules/.pnpm/solid-start@0.1.2_662kx2gjxcetvfdkelauuogf74/node_modules/solid-start/entry-client/StartClient.tsx": [],
"src/entry-client.tsx": [],
"\u0000commonjsHelpers.js": [
"/assets/index.af6c29ac.js"
"/assets/index.f572890e.js"
],
"\u0000/workspace/solid-start-2022-09-30/node_modules/.pnpm/graphql-request@5.0.0_graphql@16.6.0/node_modules/graphql-request/dist/index.js?commonjs-exports": [
"/assets/index.af6c29ac.js"
"/assets/index.f572890e.js"
],
"\u0000/workspace/solid-start-2022-09-30/node_modules/.pnpm/cross-fetch@3.1.5/node_modules/cross-fetch/dist/browser-ponyfill.js?commonjs-module": [
"/assets/index.af6c29ac.js"
"/assets/index.f572890e.js"
],
"node_modules/.pnpm/cross-fetch@3.1.5/node_modules/cross-fetch/dist/browser-ponyfill.js": [
"/assets/index.af6c29ac.js"
"/assets/index.f572890e.js"
],
"node_modules/.pnpm/graphql@16.6.0/node_modules/graphql/jsutils/isObjectLike.mjs": [
"/assets/index.af6c29ac.js"
"/assets/index.f572890e.js"
],
"node_modules/.pnpm/graphql@16.6.0/node_modules/graphql/jsutils/invariant.mjs": [
"/assets/index.af6c29ac.js"
"/assets/index.f572890e.js"
],
"node_modules/.pnpm/graphql@16.6.0/node_modules/graphql/language/location.mjs": [
"/assets/index.af6c29ac.js"
"/assets/index.f572890e.js"
],
"node_modules/.pnpm/graphql@16.6.0/node_modules/graphql/language/printLocation.mjs": [
"/assets/index.af6c29ac.js"
"/assets/index.f572890e.js"
],
"node_modules/.pnpm/graphql@16.6.0/node_modules/graphql/error/GraphQLError.mjs": [
"/assets/index.af6c29ac.js"
"/assets/index.f572890e.js"
],
"node_modules/.pnpm/graphql@16.6.0/node_modules/graphql/error/syntaxError.mjs": [
"/assets/index.af6c29ac.js"
"/assets/index.f572890e.js"
],
"node_modules/.pnpm/graphql@16.6.0/node_modules/graphql/language/ast.mjs": [
"/assets/index.af6c29ac.js"
"/assets/index.f572890e.js"
],
"node_modules/.pnpm/graphql@16.6.0/node_modules/graphql/language/directiveLocation.mjs": [
"/assets/index.af6c29ac.js"
"/assets/index.f572890e.js"
],
"node_modules/.pnpm/graphql@16.6.0/node_modules/graphql/language/kinds.mjs": [
"/assets/index.af6c29ac.js"
"/assets/index.f572890e.js"
],
"node_modules/.pnpm/graphql@16.6.0/node_modules/graphql/language/characterClasses.mjs": [
"/assets/index.af6c29ac.js"
"/assets/index.f572890e.js"
],
"node_modules/.pnpm/graphql@16.6.0/node_modules/graphql/language/blockString.mjs": [
"/assets/index.af6c29ac.js"
"/assets/index.f572890e.js"
],
"node_modules/.pnpm/graphql@16.6.0/node_modules/graphql/language/tokenKind.mjs": [
"/assets/index.af6c29ac.js"
"/assets/index.f572890e.js"
],
"node_modules/.pnpm/graphql@16.6.0/node_modules/graphql/language/lexer.mjs": [
"/assets/index.af6c29ac.js"
"/assets/index.f572890e.js"
],
"node_modules/.pnpm/graphql@16.6.0/node_modules/graphql/jsutils/devAssert.mjs": [
"/assets/index.af6c29ac.js"
"/assets/index.f572890e.js"
],
"node_modules/.pnpm/graphql@16.6.0/node_modules/graphql/jsutils/inspect.mjs": [
"/assets/index.af6c29ac.js"
"/assets/index.f572890e.js"
],
"node_modules/.pnpm/graphql@16.6.0/node_modules/graphql/jsutils/instanceOf.mjs": [
"/assets/index.af6c29ac.js"
"/assets/index.f572890e.js"
],
"node_modules/.pnpm/graphql@16.6.0/node_modules/graphql/language/source.mjs": [
"/assets/index.af6c29ac.js"
"/assets/index.f572890e.js"
],
"node_modules/.pnpm/graphql@16.6.0/node_modules/graphql/language/parser.mjs": [
"/assets/index.af6c29ac.js"
"/assets/index.f572890e.js"
],
"\u0000/workspace/solid-start-2022-09-30/node_modules/.pnpm/graphql@16.6.0/node_modules/graphql/language/parser.mjs?commonjs-proxy": [
"/assets/index.af6c29ac.js"
"/assets/index.f572890e.js"
],
"node_modules/.pnpm/graphql@16.6.0/node_modules/graphql/language/printString.mjs": [
"/assets/index.af6c29ac.js"
"/assets/index.f572890e.js"
],
"node_modules/.pnpm/graphql@16.6.0/node_modules/graphql/language/visitor.mjs": [
"/assets/index.af6c29ac.js"
"/assets/index.f572890e.js"
],
"node_modules/.pnpm/graphql@16.6.0/node_modules/graphql/language/printer.mjs": [
"/assets/index.af6c29ac.js"
"/assets/index.f572890e.js"
],
"\u0000/workspace/solid-start-2022-09-30/node_modules/.pnpm/graphql@16.6.0/node_modules/graphql/language/printer.mjs?commonjs-proxy": [
"/assets/index.af6c29ac.js"
"/assets/index.f572890e.js"
],
"\u0000/workspace/solid-start-2022-09-30/node_modules/.pnpm/graphql-request@5.0.0_graphql@16.6.0/node_modules/graphql-request/dist/createRequestBody.js?commonjs-exports": [
"/assets/index.af6c29ac.js"
"/assets/index.f572890e.js"
],
"\u0000/workspace/solid-start-2022-09-30/node_modules/.pnpm/extract-files@9.0.0/node_modules/extract-files/public/index.js?commonjs-exports": [
"/assets/index.af6c29ac.js"
"/assets/index.f572890e.js"
],
"node_modules/.pnpm/extract-files@9.0.0/node_modules/extract-files/public/ReactNativeFile.js": [
"/assets/index.af6c29ac.js"
"/assets/index.f572890e.js"
],
"node_modules/.pnpm/extract-files@9.0.0/node_modules/extract-files/public/isExtractableFile.js": [
"/assets/index.af6c29ac.js"
"/assets/index.f572890e.js"
],
"node_modules/.pnpm/extract-files@9.0.0/node_modules/extract-files/public/extractFiles.js": [
"/assets/index.af6c29ac.js"
"/assets/index.f572890e.js"
],
"node_modules/.pnpm/extract-files@9.0.0/node_modules/extract-files/public/index.js": [
"/assets/index.af6c29ac.js"
"/assets/index.f572890e.js"
],
"node_modules/.pnpm/form-data@3.0.1/node_modules/form-data/lib/browser.js": [
"/assets/index.af6c29ac.js"
"/assets/index.f572890e.js"
],
"\u0000/workspace/solid-start-2022-09-30/node_modules/.pnpm/graphql-request@5.0.0_graphql@16.6.0/node_modules/graphql-request/dist/defaultJsonSerializer.js?commonjs-exports": [
"/assets/index.af6c29ac.js"
"/assets/index.f572890e.js"
],
"node_modules/.pnpm/graphql-request@5.0.0_graphql@16.6.0/node_modules/graphql-request/dist/defaultJsonSerializer.js": [
"/assets/index.af6c29ac.js"
"/assets/index.f572890e.js"
],
"node_modules/.pnpm/graphql-request@5.0.0_graphql@16.6.0/node_modules/graphql-request/dist/createRequestBody.js": [
"/assets/index.af6c29ac.js"
"/assets/index.f572890e.js"
],
"\u0000/workspace/solid-start-2022-09-30/node_modules/.pnpm/graphql-request@5.0.0_graphql@16.6.0/node_modules/graphql-request/dist/parseArgs.js?commonjs-exports": [
"/assets/index.af6c29ac.js"
"/assets/index.f572890e.js"
],
"node_modules/.pnpm/graphql-request@5.0.0_graphql@16.6.0/node_modules/graphql-request/dist/parseArgs.js": [
"/assets/index.af6c29ac.js"
"/assets/index.f572890e.js"
],
"\u0000/workspace/solid-start-2022-09-30/node_modules/.pnpm/graphql-request@5.0.0_graphql@16.6.0/node_modules/graphql-request/dist/types.js?commonjs-exports": [
"/assets/index.af6c29ac.js"
"/assets/index.f572890e.js"
],
"node_modules/.pnpm/graphql-request@5.0.0_graphql@16.6.0/node_modules/graphql-request/dist/types.js": [
"/assets/index.af6c29ac.js"
"/assets/index.f572890e.js"
],
"\u0000/workspace/solid-start-2022-09-30/node_modules/.pnpm/graphql-request@5.0.0_graphql@16.6.0/node_modules/graphql-request/dist/graphql-ws.js?commonjs-exports": [
"/assets/index.af6c29ac.js"
"/assets/index.f572890e.js"
],
"node_modules/.pnpm/graphql-request@5.0.0_graphql@16.6.0/node_modules/graphql-request/dist/graphql-ws.js": [
"/assets/index.af6c29ac.js"
"/assets/index.f572890e.js"
],
"node_modules/.pnpm/graphql-request@5.0.0_graphql@16.6.0/node_modules/graphql-request/dist/index.js": [
"/assets/index.af6c29ac.js"
"/assets/index.f572890e.js"
],
"\u0000/workspace/solid-start-2022-09-30/node_modules/.pnpm/graphql-request@5.0.0_graphql@16.6.0/node_modules/graphql-request/dist/index.js?commonjs-es-import": [
"/assets/index.af6c29ac.js"
"/assets/index.f572890e.js"
],
"src/routes/index.tsx": [
"/assets/index.af6c29ac.js"
"/assets/index.f572890e.js"
]
}
163,704 changes: 19,635 additions & 144,069 deletions dist/server.js

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"@cloudflare/workers-types": "^3.16.0",
"autoprefixer": "^10.4.9",
"postcss": "^8.4.17",
"prettier": "^2.7.1",
"solid-start-node": "0.1.2",
"tailwindcss": "^3.1.8",
"typescript": "^4.8.3",
Expand All @@ -31,5 +32,11 @@
},
"engines": {
"node": ">=16"
},
"pnpm": {
"patchedDependencies": {
"solid-start-cloudflare-workers@0.1.2": "patches/solid-start-cloudflare-workers@0.1.2.patch",
"solid-js@1.5.7": "patches/solid-js@1.5.7.patch"
}
}
}
45 changes: 45 additions & 0 deletions patches/solid-js@1.5.7.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
diff --git a/package.json b/package.json
index aed77eecf35d60f3a568e3b6ca4ff911ce6bc384..8478b2ebeba3c59e32bc8101cecf44cd22e35b3f 100644
--- a/package.json
+++ b/package.json
@@ -11,10 +11,6 @@
},
"main": "./dist/server.cjs",
"module": "./dist/server.js",
- "browser": {
- "./dist/server.cjs": "./dist/solid.cjs",
- "./dist/server.js": "./dist/solid.js"
- },
"unpkg": "./dist/solid.cjs",
"types": "types/index.d.ts",
"sideEffects": false,
diff --git a/store/package.json b/store/package.json
index 252dd14b8c3c4b9c2bd84cc9c117176912b5b223..ffd2889042a12c4ca352779ddc84c8f571789060 100644
--- a/store/package.json
+++ b/store/package.json
@@ -2,10 +2,6 @@
"name": "solid-js/store",
"main": "./dist/server.cjs",
"module": "./dist/server.js",
- "browser": {
- "./dist/server.cjs": "./dist/store.cjs",
- "./dist/server.js": "./dist/store.js"
- },
"unpkg": "./dist/store.cjs",
"types": "./types/index.d.ts",
"type": "module",
diff --git a/web/package.json b/web/package.json
index fee7a002f4418f67b2f9f2c6fd202e2c94fc5e21..f4b2a9881a58ecf0f5d3412d6d415e57579e9f74 100644
--- a/web/package.json
+++ b/web/package.json
@@ -2,10 +2,6 @@
"name": "solid-js/web",
"main": "./dist/server.cjs",
"module": "./dist/server.js",
- "browser": {
- "./dist/server.cjs": "./dist/web.cjs",
- "./dist/server.js": "./dist/web.js"
- },
"unpkg": "./dist/web.cjs",
"types": "./types/index.d.ts",
"type": "module",
12 changes: 12 additions & 0 deletions patches/solid-start-cloudflare-workers@0.1.2.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
diff --git a/index.js b/index.js
index 13a5e1623c4ad5bf6ab02e3702af16d25221db9d..a59cda2ac15f896272e424dafc926a4659bc62b8 100644
--- a/index.js
+++ b/index.js
@@ -156,6 +156,7 @@ export default function (miniflareOptions = {}) {
plugins: [
json(),
nodeResolve({
+ browser: true,
preferBuiltins: true,
exportConditions: ["worker", "solid"]
}),
Loading