@depup/gatsby 5.16.1-depup.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +22 -0
- package/README.md +142 -0
- package/adapters.js +31 -0
- package/apis.json +73 -0
- package/cache-dir/.eslintrc.json +10 -0
- package/cache-dir/api-runner-browser-plugins.js +14 -0
- package/cache-dir/api-runner-browser.js +52 -0
- package/cache-dir/api-runner-ssr.js +88 -0
- package/cache-dir/api-ssr-docs.js +207 -0
- package/cache-dir/app.js +249 -0
- package/cache-dir/blank.css +0 -0
- package/cache-dir/commonjs/api-runner-browser-plugins.js +17 -0
- package/cache-dir/commonjs/api-runner-browser-plugins.js.map +1 -0
- package/cache-dir/commonjs/api-runner-browser.js +49 -0
- package/cache-dir/commonjs/api-runner-browser.js.map +1 -0
- package/cache-dir/commonjs/api-runner-ssr.js +88 -0
- package/cache-dir/commonjs/api-runner-ssr.js.map +1 -0
- package/cache-dir/commonjs/api-ssr-docs.js +210 -0
- package/cache-dir/commonjs/api-ssr-docs.js.map +1 -0
- package/cache-dir/commonjs/app.js +197 -0
- package/cache-dir/commonjs/app.js.map +1 -0
- package/cache-dir/commonjs/context-utils.js +25 -0
- package/cache-dir/commonjs/context-utils.js.map +1 -0
- package/cache-dir/commonjs/create-content-digest-browser-shim.js +4 -0
- package/cache-dir/commonjs/create-content-digest-browser-shim.js.map +1 -0
- package/cache-dir/commonjs/css-to-object.js +21 -0
- package/cache-dir/commonjs/css-to-object.js.map +1 -0
- package/cache-dir/commonjs/debug-log.js +11 -0
- package/cache-dir/commonjs/debug-log.js.map +1 -0
- package/cache-dir/commonjs/default-html.js +33 -0
- package/cache-dir/commonjs/default-html.js.map +1 -0
- package/cache-dir/commonjs/dev-loader.js +247 -0
- package/cache-dir/commonjs/dev-loader.js.map +1 -0
- package/cache-dir/commonjs/develop-static-entry.js +129 -0
- package/cache-dir/commonjs/develop-static-entry.js.map +1 -0
- package/cache-dir/commonjs/dummy.js +8 -0
- package/cache-dir/commonjs/dummy.js.map +1 -0
- package/cache-dir/commonjs/emitter.js +10 -0
- package/cache-dir/commonjs/emitter.js.map +1 -0
- package/cache-dir/commonjs/ensure-resources.js +107 -0
- package/cache-dir/commonjs/ensure-resources.js.map +1 -0
- package/cache-dir/commonjs/error-overlay-handler.js +35 -0
- package/cache-dir/commonjs/error-overlay-handler.js.map +1 -0
- package/cache-dir/commonjs/fast-refresh-overlay/components/accordion.js +80 -0
- package/cache-dir/commonjs/fast-refresh-overlay/components/accordion.js.map +1 -0
- package/cache-dir/commonjs/fast-refresh-overlay/components/build-error.js +44 -0
- package/cache-dir/commonjs/fast-refresh-overlay/components/build-error.js.map +1 -0
- package/cache-dir/commonjs/fast-refresh-overlay/components/code-frame.js +38 -0
- package/cache-dir/commonjs/fast-refresh-overlay/components/code-frame.js.map +1 -0
- package/cache-dir/commonjs/fast-refresh-overlay/components/dev-ssr-error.js +52 -0
- package/cache-dir/commonjs/fast-refresh-overlay/components/dev-ssr-error.js.map +1 -0
- package/cache-dir/commonjs/fast-refresh-overlay/components/error-boundary.js +31 -0
- package/cache-dir/commonjs/fast-refresh-overlay/components/error-boundary.js.map +1 -0
- package/cache-dir/commonjs/fast-refresh-overlay/components/getserverdata-error.js +47 -0
- package/cache-dir/commonjs/fast-refresh-overlay/components/getserverdata-error.js.map +1 -0
- package/cache-dir/commonjs/fast-refresh-overlay/components/graphql-errors.js +77 -0
- package/cache-dir/commonjs/fast-refresh-overlay/components/graphql-errors.js.map +1 -0
- package/cache-dir/commonjs/fast-refresh-overlay/components/hooks.js +93 -0
- package/cache-dir/commonjs/fast-refresh-overlay/components/hooks.js.map +1 -0
- package/cache-dir/commonjs/fast-refresh-overlay/components/overlay.js +147 -0
- package/cache-dir/commonjs/fast-refresh-overlay/components/overlay.js.map +1 -0
- package/cache-dir/commonjs/fast-refresh-overlay/components/runtime-errors.js +110 -0
- package/cache-dir/commonjs/fast-refresh-overlay/components/runtime-errors.js.map +1 -0
- package/cache-dir/commonjs/fast-refresh-overlay/components/use-id.js +50 -0
- package/cache-dir/commonjs/fast-refresh-overlay/components/use-id.js.map +1 -0
- package/cache-dir/commonjs/fast-refresh-overlay/helpers/focus-trap.js +2879 -0
- package/cache-dir/commonjs/fast-refresh-overlay/helpers/focus-trap.js.map +1 -0
- package/cache-dir/commonjs/fast-refresh-overlay/helpers/keys.js +84 -0
- package/cache-dir/commonjs/fast-refresh-overlay/helpers/keys.js.map +1 -0
- package/cache-dir/commonjs/fast-refresh-overlay/helpers/lock-body.js +48 -0
- package/cache-dir/commonjs/fast-refresh-overlay/helpers/lock-body.js.map +1 -0
- package/cache-dir/commonjs/fast-refresh-overlay/helpers/match.js +44 -0
- package/cache-dir/commonjs/fast-refresh-overlay/helpers/match.js.map +1 -0
- package/cache-dir/commonjs/fast-refresh-overlay/index.js +182 -0
- package/cache-dir/commonjs/fast-refresh-overlay/index.js.map +1 -0
- package/cache-dir/commonjs/fast-refresh-overlay/style.js +418 -0
- package/cache-dir/commonjs/fast-refresh-overlay/style.js.map +1 -0
- package/cache-dir/commonjs/fast-refresh-overlay/utils.js +75 -0
- package/cache-dir/commonjs/fast-refresh-overlay/utils.js.map +1 -0
- package/cache-dir/commonjs/find-path.js +145 -0
- package/cache-dir/commonjs/find-path.js.map +1 -0
- package/cache-dir/commonjs/gatsby-browser-entry.js +52 -0
- package/cache-dir/commonjs/gatsby-browser-entry.js.map +1 -0
- package/cache-dir/commonjs/head/components/fire-callback-in-effect.js +18 -0
- package/cache-dir/commonjs/head/components/fire-callback-in-effect.js.map +1 -0
- package/cache-dir/commonjs/head/components/head-components.js +72 -0
- package/cache-dir/commonjs/head/components/head-components.js.map +1 -0
- package/cache-dir/commonjs/head/constants.js +13 -0
- package/cache-dir/commonjs/head/constants.js.map +1 -0
- package/cache-dir/commonjs/head/head-export-handler-for-browser.js +144 -0
- package/cache-dir/commonjs/head/head-export-handler-for-browser.js.map +1 -0
- package/cache-dir/commonjs/head/head-export-handler-for-ssr.js +225 -0
- package/cache-dir/commonjs/head/head-export-handler-for-ssr.js.map +1 -0
- package/cache-dir/commonjs/head/utils.js +264 -0
- package/cache-dir/commonjs/head/utils.js.map +1 -0
- package/cache-dir/commonjs/loader.js +861 -0
- package/cache-dir/commonjs/loader.js.map +1 -0
- package/cache-dir/commonjs/loading-indicator/index.js +25 -0
- package/cache-dir/commonjs/loading-indicator/index.js.map +1 -0
- package/cache-dir/commonjs/loading-indicator/indicator.js +63 -0
- package/cache-dir/commonjs/loading-indicator/indicator.js.map +1 -0
- package/cache-dir/commonjs/loading-indicator/style.js +103 -0
- package/cache-dir/commonjs/loading-indicator/style.js.map +1 -0
- package/cache-dir/commonjs/navigation.js +260 -0
- package/cache-dir/commonjs/navigation.js.map +1 -0
- package/cache-dir/commonjs/normalize-page-path.js +22 -0
- package/cache-dir/commonjs/normalize-page-path.js.map +1 -0
- package/cache-dir/commonjs/page-renderer.js +59 -0
- package/cache-dir/commonjs/page-renderer.js.map +1 -0
- package/cache-dir/commonjs/pages.json +1 -0
- package/cache-dir/commonjs/polyfill-entry.js +7 -0
- package/cache-dir/commonjs/polyfill-entry.js.map +1 -0
- package/cache-dir/commonjs/prefetch.js +67 -0
- package/cache-dir/commonjs/prefetch.js.map +1 -0
- package/cache-dir/commonjs/production-app.js +256 -0
- package/cache-dir/commonjs/production-app.js.map +1 -0
- package/cache-dir/commonjs/public-page-renderer-dev.js +26 -0
- package/cache-dir/commonjs/public-page-renderer-dev.js.map +1 -0
- package/cache-dir/commonjs/public-page-renderer-prod.js +30 -0
- package/cache-dir/commonjs/public-page-renderer-prod.js.map +1 -0
- package/cache-dir/commonjs/public-page-renderer.js +11 -0
- package/cache-dir/commonjs/public-page-renderer.js.map +1 -0
- package/cache-dir/commonjs/query-result-store.js +160 -0
- package/cache-dir/commonjs/query-result-store.js.map +1 -0
- package/cache-dir/commonjs/react-dom-utils.js +34 -0
- package/cache-dir/commonjs/react-dom-utils.js.map +1 -0
- package/cache-dir/commonjs/react-lifecycles-compat.js +4 -0
- package/cache-dir/commonjs/react-lifecycles-compat.js.map +1 -0
- package/cache-dir/commonjs/redirect-utils.js +25 -0
- package/cache-dir/commonjs/redirect-utils.js.map +1 -0
- package/cache-dir/commonjs/redirects.json +1 -0
- package/cache-dir/commonjs/register-service-worker.js +66 -0
- package/cache-dir/commonjs/register-service-worker.js.map +1 -0
- package/cache-dir/commonjs/root.js +105 -0
- package/cache-dir/commonjs/root.js.map +1 -0
- package/cache-dir/commonjs/route-announcer-props.js +24 -0
- package/cache-dir/commonjs/route-announcer-props.js.map +1 -0
- package/cache-dir/commonjs/server-utils/writable-as-promise.js +42 -0
- package/cache-dir/commonjs/server-utils/writable-as-promise.js.map +1 -0
- package/cache-dir/commonjs/shadow-portal.js +36 -0
- package/cache-dir/commonjs/shadow-portal.js.map +1 -0
- package/cache-dir/commonjs/slice/context.js +15 -0
- package/cache-dir/commonjs/slice/context.js.map +1 -0
- package/cache-dir/commonjs/slice/inline-slice.js +34 -0
- package/cache-dir/commonjs/slice/inline-slice.js.map +1 -0
- package/cache-dir/commonjs/slice/server-slice-renderer.js +29 -0
- package/cache-dir/commonjs/slice/server-slice-renderer.js.map +1 -0
- package/cache-dir/commonjs/slice/server-slice.js +54 -0
- package/cache-dir/commonjs/slice/server-slice.js.map +1 -0
- package/cache-dir/commonjs/slice.js +124 -0
- package/cache-dir/commonjs/slice.js.map +1 -0
- package/cache-dir/commonjs/socketIo.js +62 -0
- package/cache-dir/commonjs/socketIo.js.map +1 -0
- package/cache-dir/commonjs/ssr-builtin-trackers/child_process.js +8 -0
- package/cache-dir/commonjs/ssr-builtin-trackers/child_process.js.map +1 -0
- package/cache-dir/commonjs/ssr-builtin-trackers/fs.js +7 -0
- package/cache-dir/commonjs/ssr-builtin-trackers/fs.js.map +1 -0
- package/cache-dir/commonjs/ssr-builtin-trackers/http.js +9 -0
- package/cache-dir/commonjs/ssr-builtin-trackers/http.js.map +1 -0
- package/cache-dir/commonjs/ssr-builtin-trackers/http2.js +7 -0
- package/cache-dir/commonjs/ssr-builtin-trackers/http2.js.map +1 -0
- package/cache-dir/commonjs/ssr-builtin-trackers/https.js +9 -0
- package/cache-dir/commonjs/ssr-builtin-trackers/https.js.map +1 -0
- package/cache-dir/commonjs/ssr-builtin-trackers/tracking-unsafe-module-wrapper.js +55 -0
- package/cache-dir/commonjs/ssr-builtin-trackers/tracking-unsafe-module-wrapper.js.map +1 -0
- package/cache-dir/commonjs/ssr-develop-static-entry.js +366 -0
- package/cache-dir/commonjs/ssr-develop-static-entry.js.map +1 -0
- package/cache-dir/commonjs/static-entry.js +544 -0
- package/cache-dir/commonjs/static-entry.js.map +1 -0
- package/cache-dir/commonjs/static-query.js +74 -0
- package/cache-dir/commonjs/static-query.js.map +1 -0
- package/cache-dir/commonjs/strip-prefix.js +22 -0
- package/cache-dir/commonjs/strip-prefix.js.map +1 -0
- package/cache-dir/context-utils.js +29 -0
- package/cache-dir/create-content-digest-browser-shim.js +1 -0
- package/cache-dir/css-to-object.js +19 -0
- package/cache-dir/debug-log.js +13 -0
- package/cache-dir/default-html.js +36 -0
- package/cache-dir/dev-loader.js +280 -0
- package/cache-dir/develop-static-entry.js +129 -0
- package/cache-dir/dummy.js +2 -0
- package/cache-dir/emitter.js +4 -0
- package/cache-dir/ensure-resources.js +119 -0
- package/cache-dir/error-overlay-handler.js +36 -0
- package/cache-dir/fast-refresh-overlay/components/accordion.js +83 -0
- package/cache-dir/fast-refresh-overlay/components/build-error.js +46 -0
- package/cache-dir/fast-refresh-overlay/components/code-frame.js +38 -0
- package/cache-dir/fast-refresh-overlay/components/dev-ssr-error.js +66 -0
- package/cache-dir/fast-refresh-overlay/components/error-boundary.js +28 -0
- package/cache-dir/fast-refresh-overlay/components/getserverdata-error.js +53 -0
- package/cache-dir/fast-refresh-overlay/components/graphql-errors.js +100 -0
- package/cache-dir/fast-refresh-overlay/components/hooks.js +102 -0
- package/cache-dir/fast-refresh-overlay/components/overlay.js +143 -0
- package/cache-dir/fast-refresh-overlay/components/runtime-errors.js +139 -0
- package/cache-dir/fast-refresh-overlay/components/use-id.js +56 -0
- package/cache-dir/fast-refresh-overlay/helpers/focus-trap.js +3561 -0
- package/cache-dir/fast-refresh-overlay/helpers/keys.js +80 -0
- package/cache-dir/fast-refresh-overlay/helpers/lock-body.js +52 -0
- package/cache-dir/fast-refresh-overlay/helpers/match.js +42 -0
- package/cache-dir/fast-refresh-overlay/index.js +147 -0
- package/cache-dir/fast-refresh-overlay/style.js +413 -0
- package/cache-dir/fast-refresh-overlay/utils.js +81 -0
- package/cache-dir/find-path.js +160 -0
- package/cache-dir/gatsby-browser-entry.js +27 -0
- package/cache-dir/head/components/fire-callback-in-effect.js +12 -0
- package/cache-dir/head/components/head-components.js +86 -0
- package/cache-dir/head/constants.js +15 -0
- package/cache-dir/head/head-export-handler-for-browser.js +170 -0
- package/cache-dir/head/head-export-handler-for-ssr.js +237 -0
- package/cache-dir/head/utils.js +287 -0
- package/cache-dir/loader.js +977 -0
- package/cache-dir/loading-indicator/index.js +19 -0
- package/cache-dir/loading-indicator/indicator.js +65 -0
- package/cache-dir/loading-indicator/style.js +99 -0
- package/cache-dir/navigation.js +257 -0
- package/cache-dir/normalize-page-path.js +17 -0
- package/cache-dir/page-renderer.js +59 -0
- package/cache-dir/page-ssr/index.d.ts +76 -0
- package/cache-dir/pages.json +1 -0
- package/cache-dir/polyfill-entry.js +5 -0
- package/cache-dir/prefetch.js +80 -0
- package/cache-dir/production-app.js +340 -0
- package/cache-dir/public-page-renderer-dev.js +21 -0
- package/cache-dir/public-page-renderer-prod.js +25 -0
- package/cache-dir/public-page-renderer.js +9 -0
- package/cache-dir/query-engine/index.d.ts +31 -0
- package/cache-dir/query-result-store.js +197 -0
- package/cache-dir/react-dom-utils.js +38 -0
- package/cache-dir/react-lifecycles-compat.js +1 -0
- package/cache-dir/redirect-utils.js +22 -0
- package/cache-dir/redirects.json +1 -0
- package/cache-dir/register-service-worker.js +64 -0
- package/cache-dir/root.js +147 -0
- package/cache-dir/route-announcer-props.js +18 -0
- package/cache-dir/server-utils/writable-as-promise.js +41 -0
- package/cache-dir/shadow-portal.js +28 -0
- package/cache-dir/slice/context.js +13 -0
- package/cache-dir/slice/inline-slice.js +34 -0
- package/cache-dir/slice/server-slice-renderer.js +28 -0
- package/cache-dir/slice/server-slice.js +52 -0
- package/cache-dir/slice.js +158 -0
- package/cache-dir/socketIo.js +58 -0
- package/cache-dir/ssr-builtin-trackers/child_process.js +4 -0
- package/cache-dir/ssr-builtin-trackers/fs.js +3 -0
- package/cache-dir/ssr-builtin-trackers/http.js +3 -0
- package/cache-dir/ssr-builtin-trackers/http2.js +3 -0
- package/cache-dir/ssr-builtin-trackers/https.js +3 -0
- package/cache-dir/ssr-builtin-trackers/tracking-unsafe-module-wrapper.js +64 -0
- package/cache-dir/ssr-develop-static-entry.js +428 -0
- package/cache-dir/static-entry.js +594 -0
- package/cache-dir/static-query.js +91 -0
- package/cache-dir/strip-prefix.js +20 -0
- package/changes.json +454 -0
- package/cli.js +3 -0
- package/dist/bin/gatsby.js +5 -0
- package/dist/bin/gatsby.js.map +1 -0
- package/dist/bootstrap/__mocks__/get-config/ts/gatsby-config.d.ts +3 -0
- package/dist/bootstrap/__mocks__/resolve-module-exports.d.ts +1 -0
- package/dist/bootstrap/create-graphql-runner.d.ts +10 -0
- package/dist/bootstrap/create-graphql-runner.js +71 -0
- package/dist/bootstrap/create-graphql-runner.js.map +1 -0
- package/dist/bootstrap/get-config-file.d.ts +4 -0
- package/dist/bootstrap/get-config-file.js +152 -0
- package/dist/bootstrap/get-config-file.js.map +1 -0
- package/dist/bootstrap/index.d.ts +12 -0
- package/dist/bootstrap/index.js +56 -0
- package/dist/bootstrap/index.js.map +1 -0
- package/dist/bootstrap/load-config/index.d.ts +7 -0
- package/dist/bootstrap/load-config/index.js +73 -0
- package/dist/bootstrap/load-config/index.js.map +1 -0
- package/dist/bootstrap/load-plugins/index.d.ts +3 -0
- package/dist/bootstrap/load-plugins/index.js +79 -0
- package/dist/bootstrap/load-plugins/index.js.map +1 -0
- package/dist/bootstrap/load-plugins/load-internal-plugins.d.ts +2 -0
- package/dist/bootstrap/load-plugins/load-internal-plugins.js +105 -0
- package/dist/bootstrap/load-plugins/load-internal-plugins.js.map +1 -0
- package/dist/bootstrap/load-plugins/process-plugin.d.ts +2 -0
- package/dist/bootstrap/load-plugins/process-plugin.js +81 -0
- package/dist/bootstrap/load-plugins/process-plugin.js.map +1 -0
- package/dist/bootstrap/load-plugins/resolve-plugin.d.ts +13 -0
- package/dist/bootstrap/load-plugins/resolve-plugin.js +75 -0
- package/dist/bootstrap/load-plugins/resolve-plugin.js.map +1 -0
- package/dist/bootstrap/load-plugins/types.d.ts +48 -0
- package/dist/bootstrap/load-plugins/types.js +4 -0
- package/dist/bootstrap/load-plugins/types.js.map +1 -0
- package/dist/bootstrap/load-plugins/utils/check-local-plugin.d.ts +8 -0
- package/dist/bootstrap/load-plugins/utils/check-local-plugin.js +38 -0
- package/dist/bootstrap/load-plugins/utils/check-local-plugin.js.map +1 -0
- package/dist/bootstrap/load-plugins/utils/create-hash.d.ts +1 -0
- package/dist/bootstrap/load-plugins/utils/create-hash.js +20 -0
- package/dist/bootstrap/load-plugins/utils/create-hash.js.map +1 -0
- package/dist/bootstrap/load-plugins/utils/create-id.d.ts +10 -0
- package/dist/bootstrap/load-plugins/utils/create-id.js +16 -0
- package/dist/bootstrap/load-plugins/utils/create-id.js.map +1 -0
- package/dist/bootstrap/load-plugins/utils/flatten-plugins.d.ts +2 -0
- package/dist/bootstrap/load-plugins/utils/flatten-plugins.js +41 -0
- package/dist/bootstrap/load-plugins/utils/flatten-plugins.js.map +1 -0
- package/dist/bootstrap/load-plugins/utils/get-api.d.ts +12 -0
- package/dist/bootstrap/load-plugins/utils/get-api.js +12 -0
- package/dist/bootstrap/load-plugins/utils/get-api.js.map +1 -0
- package/dist/bootstrap/load-plugins/utils/normalize.d.ts +5 -0
- package/dist/bootstrap/load-plugins/utils/normalize.js +33 -0
- package/dist/bootstrap/load-plugins/utils/normalize.js.map +1 -0
- package/dist/bootstrap/load-plugins/validate.d.ts +41 -0
- package/dist/bootstrap/load-plugins/validate.js +369 -0
- package/dist/bootstrap/load-plugins/validate.js.map +1 -0
- package/dist/bootstrap/load-themes/index.d.ts +17 -0
- package/dist/bootstrap/load-themes/index.js +186 -0
- package/dist/bootstrap/load-themes/index.js.map +1 -0
- package/dist/bootstrap/log-line-function.d.ts +0 -0
- package/dist/bootstrap/log-line-function.js +19 -0
- package/dist/bootstrap/log-line-function.js.map +1 -0
- package/dist/bootstrap/prefer-default.d.ts +1 -0
- package/dist/bootstrap/prefer-default.js +7 -0
- package/dist/bootstrap/prefer-default.js.map +1 -0
- package/dist/bootstrap/redirects-writer.d.ts +2 -0
- package/dist/bootstrap/redirects-writer.js +59 -0
- package/dist/bootstrap/redirects-writer.js.map +1 -0
- package/dist/bootstrap/remove-stale-jobs.d.ts +2 -0
- package/dist/bootstrap/remove-stale-jobs.js +31 -0
- package/dist/bootstrap/remove-stale-jobs.js.map +1 -0
- package/dist/bootstrap/requires-writer.d.ts +11 -0
- package/dist/bootstrap/requires-writer.js +260 -0
- package/dist/bootstrap/requires-writer.js.map +1 -0
- package/dist/bootstrap/resolve-js-file-path.d.ts +14 -0
- package/dist/bootstrap/resolve-js-file-path.js +58 -0
- package/dist/bootstrap/resolve-js-file-path.js.map +1 -0
- package/dist/bootstrap/resolve-module-exports.d.ts +20 -0
- package/dist/bootstrap/resolve-module-exports.js +188 -0
- package/dist/bootstrap/resolve-module-exports.js.map +1 -0
- package/dist/bootstrap/schema-hot-reloader.d.ts +3 -0
- package/dist/bootstrap/schema-hot-reloader.js +60 -0
- package/dist/bootstrap/schema-hot-reloader.js.map +1 -0
- package/dist/cache/cache-fs.d.ts +1 -0
- package/dist/cache/cache-fs.js +270 -0
- package/dist/cache/cache-fs.js.map +1 -0
- package/dist/cache/json-file-store.d.ts +8 -0
- package/dist/cache/json-file-store.js +144 -0
- package/dist/cache/json-file-store.js.map +1 -0
- package/dist/cache/wrap-callback.d.ts +0 -0
- package/dist/cache/wrap-callback.js +49 -0
- package/dist/cache/wrap-callback.js.map +1 -0
- package/dist/commands/build-html.d.ts +69 -0
- package/dist/commands/build-html.js +652 -0
- package/dist/commands/build-html.js.map +1 -0
- package/dist/commands/build-javascript.d.ts +4 -0
- package/dist/commands/build-javascript.js +18 -0
- package/dist/commands/build-javascript.js.map +1 -0
- package/dist/commands/build-utils.d.ts +8 -0
- package/dist/commands/build-utils.js +186 -0
- package/dist/commands/build-utils.js.map +1 -0
- package/dist/commands/build.d.ts +1 -0
- package/dist/commands/build.js +505 -0
- package/dist/commands/build.js.map +1 -0
- package/dist/commands/clean.d.ts +1 -0
- package/dist/commands/clean.js +29 -0
- package/dist/commands/clean.js.map +1 -0
- package/dist/commands/develop-process.d.ts +1 -0
- package/dist/commands/develop-process.js +120 -0
- package/dist/commands/develop-process.js.map +1 -0
- package/dist/commands/develop-static.d.ts +3 -0
- package/dist/commands/develop-static.js +22 -0
- package/dist/commands/develop-static.js.map +1 -0
- package/dist/commands/develop.d.ts +2 -0
- package/dist/commands/develop.js +273 -0
- package/dist/commands/develop.js.map +1 -0
- package/dist/commands/feedback.d.ts +1 -0
- package/dist/commands/feedback.js +17 -0
- package/dist/commands/feedback.js.map +1 -0
- package/dist/commands/repl.d.ts +1 -0
- package/dist/commands/repl.js +58 -0
- package/dist/commands/repl.js.map +1 -0
- package/dist/commands/serve.d.ts +1 -0
- package/dist/commands/serve.js +282 -0
- package/dist/commands/serve.js.map +1 -0
- package/dist/commands/types.d.ts +54 -0
- package/dist/commands/types.js +23 -0
- package/dist/commands/types.js.map +1 -0
- package/dist/constants.d.ts +1 -0
- package/dist/constants.js +7 -0
- package/dist/constants.js.map +1 -0
- package/dist/datastore/common/iterable.d.ts +51 -0
- package/dist/datastore/common/iterable.js +217 -0
- package/dist/datastore/common/iterable.js.map +1 -0
- package/dist/datastore/common/query.d.ts +69 -0
- package/dist/datastore/common/query.js +219 -0
- package/dist/datastore/common/query.js.map +1 -0
- package/dist/datastore/datastore.d.ts +2 -0
- package/dist/datastore/datastore.js +23 -0
- package/dist/datastore/datastore.js.map +1 -0
- package/dist/datastore/in-memory/in-memory-datastore.d.ts +2 -0
- package/dist/datastore/in-memory/in-memory-datastore.js +75 -0
- package/dist/datastore/in-memory/in-memory-datastore.js.map +1 -0
- package/dist/datastore/in-memory/indexing.d.ts +80 -0
- package/dist/datastore/in-memory/indexing.js +994 -0
- package/dist/datastore/in-memory/indexing.js.map +1 -0
- package/dist/datastore/in-memory/run-fast-filters.d.ts +27 -0
- package/dist/datastore/in-memory/run-fast-filters.js +276 -0
- package/dist/datastore/in-memory/run-fast-filters.js.map +1 -0
- package/dist/datastore/index.d.ts +20 -0
- package/dist/datastore/index.js +34 -0
- package/dist/datastore/index.js.map +1 -0
- package/dist/datastore/lmdb/lmdb-datastore.d.ts +14 -0
- package/dist/datastore/lmdb/lmdb-datastore.js +261 -0
- package/dist/datastore/lmdb/lmdb-datastore.js.map +1 -0
- package/dist/datastore/lmdb/query/common.d.ts +23 -0
- package/dist/datastore/lmdb/query/common.js +127 -0
- package/dist/datastore/lmdb/query/common.js.map +1 -0
- package/dist/datastore/lmdb/query/create-index.d.ts +25 -0
- package/dist/datastore/lmdb/query/create-index.js +239 -0
- package/dist/datastore/lmdb/query/create-index.js.map +1 -0
- package/dist/datastore/lmdb/query/filter-using-index.d.ts +43 -0
- package/dist/datastore/lmdb/query/filter-using-index.js +577 -0
- package/dist/datastore/lmdb/query/filter-using-index.js.map +1 -0
- package/dist/datastore/lmdb/query/run-query.d.ts +9 -0
- package/dist/datastore/lmdb/query/run-query.js +285 -0
- package/dist/datastore/lmdb/query/run-query.js.map +1 -0
- package/dist/datastore/lmdb/query/suggest-index.d.ts +15 -0
- package/dist/datastore/lmdb/query/suggest-index.js +93 -0
- package/dist/datastore/lmdb/query/suggest-index.js.map +1 -0
- package/dist/datastore/lmdb/updates/nodes-by-type.d.ts +3 -0
- package/dist/datastore/lmdb/updates/nodes-by-type.js +21 -0
- package/dist/datastore/lmdb/updates/nodes-by-type.js.map +1 -0
- package/dist/datastore/lmdb/updates/nodes.d.ts +5 -0
- package/dist/datastore/lmdb/updates/nodes.js +33 -0
- package/dist/datastore/lmdb/updates/nodes.js.map +1 -0
- package/dist/datastore/types.d.ts +47 -0
- package/dist/datastore/types.js +4 -0
- package/dist/datastore/types.js.map +1 -0
- package/dist/internal-plugins/bundle-optimisations/gatsby-node.js +42 -0
- package/dist/internal-plugins/bundle-optimisations/gatsby-node.js.map +1 -0
- package/dist/internal-plugins/bundle-optimisations/index.js +3 -0
- package/dist/internal-plugins/bundle-optimisations/index.js.map +1 -0
- package/dist/internal-plugins/bundle-optimisations/package.json +10 -0
- package/dist/internal-plugins/bundle-optimisations/polyfills/fetch.js +4 -0
- package/dist/internal-plugins/bundle-optimisations/polyfills/fetch.js.map +1 -0
- package/dist/internal-plugins/bundle-optimisations/polyfills/no-op.js +3 -0
- package/dist/internal-plugins/bundle-optimisations/polyfills/no-op.js.map +1 -0
- package/dist/internal-plugins/bundle-optimisations/polyfills/object-assign.js +4 -0
- package/dist/internal-plugins/bundle-optimisations/polyfills/object-assign.js.map +1 -0
- package/dist/internal-plugins/bundle-optimisations/polyfills/whatwg-fetch.js +6 -0
- package/dist/internal-plugins/bundle-optimisations/polyfills/whatwg-fetch.js.map +1 -0
- package/dist/internal-plugins/dev-404-page/gatsby-node.js +30 -0
- package/dist/internal-plugins/dev-404-page/gatsby-node.js.map +1 -0
- package/dist/internal-plugins/dev-404-page/index.js +3 -0
- package/dist/internal-plugins/dev-404-page/index.js.map +1 -0
- package/dist/internal-plugins/dev-404-page/package.json +11 -0
- package/dist/internal-plugins/dev-404-page/raw_dev-404-page.js +262 -0
- package/dist/internal-plugins/functions/api-function-webpack-loader.d.ts +3 -0
- package/dist/internal-plugins/functions/api-function-webpack-loader.js +74 -0
- package/dist/internal-plugins/functions/api-function-webpack-loader.js.map +1 -0
- package/dist/internal-plugins/functions/config.d.ts +20 -0
- package/dist/internal-plugins/functions/config.js +96 -0
- package/dist/internal-plugins/functions/config.js.map +1 -0
- package/dist/internal-plugins/functions/gatsby-node.d.ts +3 -0
- package/dist/internal-plugins/functions/gatsby-node.js +452 -0
- package/dist/internal-plugins/functions/gatsby-node.js.map +1 -0
- package/dist/internal-plugins/functions/index.js +3 -0
- package/dist/internal-plugins/functions/index.js.map +1 -0
- package/dist/internal-plugins/functions/middleware.d.ts +11 -0
- package/dist/internal-plugins/functions/middleware.js +160 -0
- package/dist/internal-plugins/functions/middleware.js.map +1 -0
- package/dist/internal-plugins/functions/package.json +11 -0
- package/dist/internal-plugins/internal-data-bridge/gatsby-node.js +191 -0
- package/dist/internal-plugins/internal-data-bridge/gatsby-node.js.map +1 -0
- package/dist/internal-plugins/internal-data-bridge/index.js +3 -0
- package/dist/internal-plugins/internal-data-bridge/index.js.map +1 -0
- package/dist/internal-plugins/internal-data-bridge/package.json +11 -0
- package/dist/internal-plugins/load-babel-config/gatsby-node.js +37 -0
- package/dist/internal-plugins/load-babel-config/gatsby-node.js.map +1 -0
- package/dist/internal-plugins/load-babel-config/index.js +3 -0
- package/dist/internal-plugins/load-babel-config/index.js.map +1 -0
- package/dist/internal-plugins/load-babel-config/package.json +11 -0
- package/dist/internal-plugins/partytown/gatsby-browser.js +23 -0
- package/dist/internal-plugins/partytown/gatsby-browser.js.map +1 -0
- package/dist/internal-plugins/partytown/gatsby-node.d.ts +2 -0
- package/dist/internal-plugins/partytown/gatsby-node.js +60 -0
- package/dist/internal-plugins/partytown/gatsby-node.js.map +1 -0
- package/dist/internal-plugins/partytown/gatsby-ssr.js +39 -0
- package/dist/internal-plugins/partytown/gatsby-ssr.js.map +1 -0
- package/dist/internal-plugins/partytown/index.js +3 -0
- package/dist/internal-plugins/partytown/index.js.map +1 -0
- package/dist/internal-plugins/partytown/package.json +12 -0
- package/dist/internal-plugins/partytown/proxy.d.ts +3 -0
- package/dist/internal-plugins/partytown/proxy.js +26 -0
- package/dist/internal-plugins/partytown/proxy.js.map +1 -0
- package/dist/internal-plugins/partytown/utils/get-forwards.d.ts +2 -0
- package/dist/internal-plugins/partytown/utils/get-forwards.js +8 -0
- package/dist/internal-plugins/partytown/utils/get-forwards.js.map +1 -0
- package/dist/internal-plugins/partytown/utils/inject-partytown-snippet.d.ts +2 -0
- package/dist/internal-plugins/partytown/utils/inject-partytown-snippet.js +28 -0
- package/dist/internal-plugins/partytown/utils/inject-partytown-snippet.js.map +1 -0
- package/dist/internal-plugins/prod-404-500/gatsby-node.js +50 -0
- package/dist/internal-plugins/prod-404-500/gatsby-node.js.map +1 -0
- package/dist/internal-plugins/prod-404-500/index.js +3 -0
- package/dist/internal-plugins/prod-404-500/index.js.map +1 -0
- package/dist/internal-plugins/prod-404-500/package.json +11 -0
- package/dist/internal-plugins/webpack-theme-component-shadowing/create-page.js +31 -0
- package/dist/internal-plugins/webpack-theme-component-shadowing/create-page.js.map +1 -0
- package/dist/internal-plugins/webpack-theme-component-shadowing/gatsby-node.js +31 -0
- package/dist/internal-plugins/webpack-theme-component-shadowing/gatsby-node.js.map +1 -0
- package/dist/internal-plugins/webpack-theme-component-shadowing/index.js +273 -0
- package/dist/internal-plugins/webpack-theme-component-shadowing/index.js.map +1 -0
- package/dist/internal-plugins/webpack-theme-component-shadowing/package.json +11 -0
- package/dist/internal.d.ts +5 -0
- package/dist/internal.js +34 -0
- package/dist/internal.js.map +1 -0
- package/dist/joi-schemas/joi.d.ts +5 -0
- package/dist/joi-schemas/joi.js +122 -0
- package/dist/joi-schemas/joi.js.map +1 -0
- package/dist/query/error-parser.d.ts +19 -0
- package/dist/query/error-parser.js +163 -0
- package/dist/query/error-parser.js.map +1 -0
- package/dist/query/file-parser.js +584 -0
- package/dist/query/file-parser.js.map +1 -0
- package/dist/query/graphql-errors-codeframe.d.ts +1 -0
- package/dist/query/graphql-errors-codeframe.js +20 -0
- package/dist/query/graphql-errors-codeframe.js.map +1 -0
- package/dist/query/graphql-errors.js +278 -0
- package/dist/query/graphql-errors.js.map +1 -0
- package/dist/query/graphql-runner.d.ts +39 -0
- package/dist/query/graphql-runner.js +221 -0
- package/dist/query/graphql-runner.js.map +1 -0
- package/dist/query/graphql-span-tracer.d.ts +19 -0
- package/dist/query/graphql-span-tracer.js +63 -0
- package/dist/query/graphql-span-tracer.js.map +1 -0
- package/dist/query/index.d.ts +32 -0
- package/dist/query/index.js +301 -0
- package/dist/query/index.js.map +1 -0
- package/dist/query/query-compiler.js +433 -0
- package/dist/query/query-compiler.js.map +1 -0
- package/dist/query/query-runner.d.ts +13 -0
- package/dist/query/query-runner.js +176 -0
- package/dist/query/query-runner.js.map +1 -0
- package/dist/query/query-watcher.d.ts +17 -0
- package/dist/query/query-watcher.js +250 -0
- package/dist/query/query-watcher.js.map +1 -0
- package/dist/query/transform-document.d.ts +6 -0
- package/dist/query/transform-document.js +131 -0
- package/dist/query/transform-document.js.map +1 -0
- package/dist/query/types.d.ts +35 -0
- package/dist/query/types.js +4 -0
- package/dist/query/types.js.map +1 -0
- package/dist/query/utils.d.ts +4 -0
- package/dist/query/utils.js +20 -0
- package/dist/query/utils.js.map +1 -0
- package/dist/redux/actions/add-page-dependency.d.ts +7 -0
- package/dist/redux/actions/add-page-dependency.js +52 -0
- package/dist/redux/actions/add-page-dependency.js.map +1 -0
- package/dist/redux/actions/index.d.ts +16 -0
- package/dist/redux/actions/index.js +21 -0
- package/dist/redux/actions/index.js.map +1 -0
- package/dist/redux/actions/internal.d.ts +124 -0
- package/dist/redux/actions/internal.js +394 -0
- package/dist/redux/actions/internal.js.map +1 -0
- package/dist/redux/actions/public.js +1354 -0
- package/dist/redux/actions/public.js.map +1 -0
- package/dist/redux/actions/restricted.d.ts +332 -0
- package/dist/redux/actions/restricted.js +521 -0
- package/dist/redux/actions/restricted.js.map +1 -0
- package/dist/redux/index.d.ts +20 -0
- package/dist/redux/index.js +125 -0
- package/dist/redux/index.js.map +1 -0
- package/dist/redux/persist.d.ts +5 -0
- package/dist/redux/persist.js +191 -0
- package/dist/redux/persist.js.map +1 -0
- package/dist/redux/plugin-runner.d.ts +1 -0
- package/dist/redux/plugin-runner.js +45 -0
- package/dist/redux/plugin-runner.js.map +1 -0
- package/dist/redux/reducers/adapter.d.ts +6 -0
- package/dist/redux/reducers/adapter.js +22 -0
- package/dist/redux/reducers/adapter.js.map +1 -0
- package/dist/redux/reducers/babelrc.d.ts +9 -0
- package/dist/redux/reducers/babelrc.js +104 -0
- package/dist/redux/reducers/babelrc.js.map +1 -0
- package/dist/redux/reducers/components-using-slices.d.ts +2 -0
- package/dist/redux/reducers/components-using-slices.js +15 -0
- package/dist/redux/reducers/components-using-slices.js.map +1 -0
- package/dist/redux/reducers/components.d.ts +2 -0
- package/dist/redux/reducers/components.js +104 -0
- package/dist/redux/reducers/components.js.map +1 -0
- package/dist/redux/reducers/config.d.ts +2 -0
- package/dist/redux/reducers/config.js +16 -0
- package/dist/redux/reducers/config.js.map +1 -0
- package/dist/redux/reducers/definitions.d.ts +2 -0
- package/dist/redux/reducers/definitions.js +14 -0
- package/dist/redux/reducers/definitions.js.map +1 -0
- package/dist/redux/reducers/flattened-plugins.d.ts +17 -0
- package/dist/redux/reducers/flattened-plugins.js +14 -0
- package/dist/redux/reducers/flattened-plugins.js.map +1 -0
- package/dist/redux/reducers/functions.d.ts +2 -0
- package/dist/redux/reducers/functions.js +14 -0
- package/dist/redux/reducers/functions.js.map +1 -0
- package/dist/redux/reducers/html.d.ts +25 -0
- package/dist/redux/reducers/html.js +384 -0
- package/dist/redux/reducers/html.js.map +1 -0
- package/dist/redux/reducers/index.d.ts +45 -0
- package/dist/redux/reducers/index.js +86 -0
- package/dist/redux/reducers/index.js.map +1 -0
- package/dist/redux/reducers/inference-metadata.d.ts +7 -0
- package/dist/redux/reducers/inference-metadata.js +174 -0
- package/dist/redux/reducers/inference-metadata.js.map +1 -0
- package/dist/redux/reducers/jobs.d.ts +5 -0
- package/dist/redux/reducers/jobs.js +65 -0
- package/dist/redux/reducers/jobs.js.map +1 -0
- package/dist/redux/reducers/jobsv2.d.ts +6 -0
- package/dist/redux/reducers/jobsv2.js +88 -0
- package/dist/redux/reducers/jobsv2.js.map +1 -0
- package/dist/redux/reducers/last-action.d.ts +2 -0
- package/dist/redux/reducers/last-action.js +7 -0
- package/dist/redux/reducers/last-action.js.map +1 -0
- package/dist/redux/reducers/node-manifest.d.ts +2 -0
- package/dist/redux/reducers/node-manifest.js +58 -0
- package/dist/redux/reducers/node-manifest.js.map +1 -0
- package/dist/redux/reducers/nodes-by-type.d.ts +2 -0
- package/dist/redux/reducers/nodes-by-type.js +53 -0
- package/dist/redux/reducers/nodes-by-type.js.map +1 -0
- package/dist/redux/reducers/nodes-touched.d.ts +3 -0
- package/dist/redux/reducers/nodes-touched.js +18 -0
- package/dist/redux/reducers/nodes-touched.js.map +1 -0
- package/dist/redux/reducers/nodes.d.ts +2 -0
- package/dist/redux/reducers/nodes.js +30 -0
- package/dist/redux/reducers/nodes.js.map +1 -0
- package/dist/redux/reducers/page-data-stats.d.ts +2 -0
- package/dist/redux/reducers/page-data-stats.js +15 -0
- package/dist/redux/reducers/page-data-stats.js.map +1 -0
- package/dist/redux/reducers/pages.d.ts +2 -0
- package/dist/redux/reducers/pages.js +43 -0
- package/dist/redux/reducers/pages.js.map +1 -0
- package/dist/redux/reducers/pending-page-data-writes.d.ts +5 -0
- package/dist/redux/reducers/pending-page-data-writes.js +66 -0
- package/dist/redux/reducers/pending-page-data-writes.js.map +1 -0
- package/dist/redux/reducers/program.d.ts +2 -0
- package/dist/redux/reducers/program.js +62 -0
- package/dist/redux/reducers/program.js.map +1 -0
- package/dist/redux/reducers/queries.d.ts +26 -0
- package/dist/redux/reducers/queries.js +403 -0
- package/dist/redux/reducers/queries.js.map +1 -0
- package/dist/redux/reducers/redirects.d.ts +2 -0
- package/dist/redux/reducers/redirects.js +39 -0
- package/dist/redux/reducers/redirects.js.map +1 -0
- package/dist/redux/reducers/remote-file-allowed-urls.d.ts +2 -0
- package/dist/redux/reducers/remote-file-allowed-urls.js +19 -0
- package/dist/redux/reducers/remote-file-allowed-urls.js.map +1 -0
- package/dist/redux/reducers/resolved-nodes.d.ts +2 -0
- package/dist/redux/reducers/resolved-nodes.js +45 -0
- package/dist/redux/reducers/resolved-nodes.js.map +1 -0
- package/dist/redux/reducers/schema-customization.d.ts +23 -0
- package/dist/redux/reducers/schema-customization.js +103 -0
- package/dist/redux/reducers/schema-customization.js.map +1 -0
- package/dist/redux/reducers/schema.d.ts +3 -0
- package/dist/redux/reducers/schema.js +17 -0
- package/dist/redux/reducers/schema.js.map +1 -0
- package/dist/redux/reducers/set-request-headers.d.ts +7 -0
- package/dist/redux/reducers/set-request-headers.js +24 -0
- package/dist/redux/reducers/set-request-headers.js.map +1 -0
- package/dist/redux/reducers/slices-by-template.d.ts +2 -0
- package/dist/redux/reducers/slices-by-template.js +16 -0
- package/dist/redux/reducers/slices-by-template.js.map +1 -0
- package/dist/redux/reducers/slices.d.ts +2 -0
- package/dist/redux/reducers/slices.js +22 -0
- package/dist/redux/reducers/slices.js.map +1 -0
- package/dist/redux/reducers/stateful-source-plugins.d.ts +5 -0
- package/dist/redux/reducers/stateful-source-plugins.js +20 -0
- package/dist/redux/reducers/stateful-source-plugins.js.map +1 -0
- package/dist/redux/reducers/static-queries-by-template.d.ts +2 -0
- package/dist/redux/reducers/static-queries-by-template.js +19 -0
- package/dist/redux/reducers/static-queries-by-template.js.map +1 -0
- package/dist/redux/reducers/static-query-components.d.ts +2 -0
- package/dist/redux/reducers/static-query-components.js +18 -0
- package/dist/redux/reducers/static-query-components.js.map +1 -0
- package/dist/redux/reducers/status.d.ts +7 -0
- package/dist/redux/reducers/status.js +57 -0
- package/dist/redux/reducers/status.js.map +1 -0
- package/dist/redux/reducers/telemetry.d.ts +2 -0
- package/dist/redux/reducers/telemetry.js +46 -0
- package/dist/redux/reducers/telemetry.js.map +1 -0
- package/dist/redux/reducers/type-owners.d.ts +5 -0
- package/dist/redux/reducers/type-owners.js +102 -0
- package/dist/redux/reducers/type-owners.js.map +1 -0
- package/dist/redux/reducers/visited-page.d.ts +2 -0
- package/dist/redux/reducers/visited-page.js +31 -0
- package/dist/redux/reducers/visited-page.js.map +1 -0
- package/dist/redux/reducers/webpack-compilation-hash.d.ts +2 -0
- package/dist/redux/reducers/webpack-compilation-hash.js +14 -0
- package/dist/redux/reducers/webpack-compilation-hash.js.map +1 -0
- package/dist/redux/reducers/webpack.d.ts +2 -0
- package/dist/redux/reducers/webpack.js +27 -0
- package/dist/redux/reducers/webpack.js.map +1 -0
- package/dist/redux/save-state.js +19 -0
- package/dist/redux/save-state.js.map +1 -0
- package/dist/redux/types.d.ts +1337 -0
- package/dist/redux/types.js +326 -0
- package/dist/redux/types.js.map +1 -0
- package/dist/schema/context.d.ts +14 -0
- package/dist/schema/context.js +38 -0
- package/dist/schema/context.js.map +1 -0
- package/dist/schema/extensions/index.js +205 -0
- package/dist/schema/extensions/index.js.map +1 -0
- package/dist/schema/graphql-engine/bootstrap.d.ts +2 -0
- package/dist/schema/graphql-engine/bootstrap.js +12 -0
- package/dist/schema/graphql-engine/bootstrap.js.map +1 -0
- package/dist/schema/graphql-engine/bundle-webpack.d.ts +5 -0
- package/dist/schema/graphql-engine/bundle-webpack.js +446 -0
- package/dist/schema/graphql-engine/bundle-webpack.js.map +1 -0
- package/dist/schema/graphql-engine/entry.d.ts +23 -0
- package/dist/schema/graphql-engine/entry.js +204 -0
- package/dist/schema/graphql-engine/entry.js.map +1 -0
- package/dist/schema/graphql-engine/lmdb-bundling-patch.d.ts +1 -0
- package/dist/schema/graphql-engine/lmdb-bundling-patch.js +72 -0
- package/dist/schema/graphql-engine/lmdb-bundling-patch.js.map +1 -0
- package/dist/schema/graphql-engine/platform-and-arch-check.d.ts +0 -0
- package/dist/schema/graphql-engine/platform-and-arch-check.js +6 -0
- package/dist/schema/graphql-engine/platform-and-arch-check.js.map +1 -0
- package/dist/schema/graphql-engine/print-plugins.d.ts +2 -0
- package/dist/schema/graphql-engine/print-plugins.js +145 -0
- package/dist/schema/graphql-engine/print-plugins.js.map +1 -0
- package/dist/schema/graphql-engine/sharp-bundling-patch.d.ts +1 -0
- package/dist/schema/graphql-engine/sharp-bundling-patch.js +8 -0
- package/dist/schema/graphql-engine/sharp-bundling-patch.js.map +1 -0
- package/dist/schema/graphql-engine/shims/gatsby-sharp.js +10 -0
- package/dist/schema/graphql-engine/shims/gatsby-sharp.js.map +1 -0
- package/dist/schema/graphql-engine/shims/no-op-module.js +3 -0
- package/dist/schema/graphql-engine/shims/no-op-module.js.map +1 -0
- package/dist/schema/graphql-engine/shims/ts-node.js +17 -0
- package/dist/schema/graphql-engine/shims/ts-node.js.map +1 -0
- package/dist/schema/graphql-engine/standalone-regenerate.d.ts +2 -0
- package/dist/schema/graphql-engine/standalone-regenerate.js +73 -0
- package/dist/schema/graphql-engine/standalone-regenerate.js.map +1 -0
- package/dist/schema/index.js +189 -0
- package/dist/schema/index.js.map +1 -0
- package/dist/schema/infer/add-inferred-fields.js +413 -0
- package/dist/schema/infer/add-inferred-fields.js.map +1 -0
- package/dist/schema/infer/build-example-data.d.ts +5 -0
- package/dist/schema/infer/build-example-data.js +199 -0
- package/dist/schema/infer/build-example-data.js.map +1 -0
- package/dist/schema/infer/index.js +121 -0
- package/dist/schema/infer/index.js.map +1 -0
- package/dist/schema/infer/inference-metadata.d.ts +72 -0
- package/dist/schema/infer/inference-metadata.js +280 -0
- package/dist/schema/infer/inference-metadata.js.map +1 -0
- package/dist/schema/infer/is-file.d.ts +1 -0
- package/dist/schema/infer/is-file.js +65 -0
- package/dist/schema/infer/is-file.js.map +1 -0
- package/dist/schema/infer/type-conflict-reporter.d.ts +28 -0
- package/dist/schema/infer/type-conflict-reporter.js +104 -0
- package/dist/schema/infer/type-conflict-reporter.js.map +1 -0
- package/dist/schema/node-model.js +784 -0
- package/dist/schema/node-model.js.map +1 -0
- package/dist/schema/print.d.ts +20 -0
- package/dist/schema/print.js +279 -0
- package/dist/schema/print.js.map +1 -0
- package/dist/schema/resolvers.d.ts +40 -0
- package/dist/schema/resolvers.js +569 -0
- package/dist/schema/resolvers.js.map +1 -0
- package/dist/schema/schema-composer.d.ts +3 -0
- package/dist/schema/schema-composer.js +31 -0
- package/dist/schema/schema-composer.js.map +1 -0
- package/dist/schema/schema.js +1295 -0
- package/dist/schema/schema.js.map +1 -0
- package/dist/schema/type-definitions.d.ts +47 -0
- package/dist/schema/type-definitions.js +4 -0
- package/dist/schema/type-definitions.js.map +1 -0
- package/dist/schema/types/built-in-types.d.ts +5 -0
- package/dist/schema/types/built-in-types.js +139 -0
- package/dist/schema/types/built-in-types.js.map +1 -0
- package/dist/schema/types/date.d.ts +37 -0
- package/dist/schema/types/date.js +225 -0
- package/dist/schema/types/date.js.map +1 -0
- package/dist/schema/types/derived-types.d.ts +45 -0
- package/dist/schema/types/derived-types.js +108 -0
- package/dist/schema/types/derived-types.js.map +1 -0
- package/dist/schema/types/filter.d.ts +12 -0
- package/dist/schema/types/filter.js +105 -0
- package/dist/schema/types/filter.js.map +1 -0
- package/dist/schema/types/media.d.ts +2 -0
- package/dist/schema/types/media.js +10 -0
- package/dist/schema/types/media.js.map +1 -0
- package/dist/schema/types/node-interface.d.ts +14 -0
- package/dist/schema/types/node-interface.js +103 -0
- package/dist/schema/types/node-interface.js.map +1 -0
- package/dist/schema/types/pagination.d.ts +16 -0
- package/dist/schema/types/pagination.js +198 -0
- package/dist/schema/types/pagination.js.map +1 -0
- package/dist/schema/types/remote-file-interface.d.ts +3 -0
- package/dist/schema/types/remote-file-interface.js +34 -0
- package/dist/schema/types/remote-file-interface.js.map +1 -0
- package/dist/schema/types/sort.d.ts +24 -0
- package/dist/schema/types/sort.js +178 -0
- package/dist/schema/types/sort.js.map +1 -0
- package/dist/schema/types/type-builders.d.ts +36 -0
- package/dist/schema/types/type-builders.js +61 -0
- package/dist/schema/types/type-builders.js.map +1 -0
- package/dist/schema/types/type-defs.js +86 -0
- package/dist/schema/types/type-defs.js.map +1 -0
- package/dist/schema/types/utils.d.ts +33 -0
- package/dist/schema/types/utils.js +153 -0
- package/dist/schema/types/utils.js.map +1 -0
- package/dist/schema/utils.d.ts +28 -0
- package/dist/schema/utils.js +149 -0
- package/dist/schema/utils.js.map +1 -0
- package/dist/services/build-schema.d.ts +2 -0
- package/dist/services/build-schema.js +24 -0
- package/dist/services/build-schema.js.map +1 -0
- package/dist/services/calculate-dirty-queries.d.ts +5 -0
- package/dist/services/calculate-dirty-queries.js +44 -0
- package/dist/services/calculate-dirty-queries.js.map +1 -0
- package/dist/services/create-pages.d.ts +5 -0
- package/dist/services/create-pages.js +108 -0
- package/dist/services/create-pages.js.map +1 -0
- package/dist/services/customize-schema.d.ts +2 -0
- package/dist/services/customize-schema.js +26 -0
- package/dist/services/customize-schema.js.map +1 -0
- package/dist/services/extract-queries.d.ts +2 -0
- package/dist/services/extract-queries.js +24 -0
- package/dist/services/extract-queries.js.map +1 -0
- package/dist/services/graphql-typegen.d.ts +2 -0
- package/dist/services/graphql-typegen.js +46 -0
- package/dist/services/graphql-typegen.js.map +1 -0
- package/dist/services/index.d.ts +19 -0
- package/dist/services/index.js +68 -0
- package/dist/services/index.js.map +1 -0
- package/dist/services/initialize.d.ts +14 -0
- package/dist/services/initialize.js +519 -0
- package/dist/services/initialize.js.map +1 -0
- package/dist/services/listen-for-mutations.d.ts +2 -0
- package/dist/services/listen-for-mutations.js +59 -0
- package/dist/services/listen-for-mutations.js.map +1 -0
- package/dist/services/listen-to-webpack.d.ts +3 -0
- package/dist/services/listen-to-webpack.js +17 -0
- package/dist/services/listen-to-webpack.js.map +1 -0
- package/dist/services/post-bootstrap.d.ts +2 -0
- package/dist/services/post-bootstrap.js +29 -0
- package/dist/services/post-bootstrap.js.map +1 -0
- package/dist/services/recompile.d.ts +3 -0
- package/dist/services/recompile.js +67 -0
- package/dist/services/recompile.js.map +1 -0
- package/dist/services/run-mutation-batch.d.ts +2 -0
- package/dist/services/run-mutation-batch.js +12 -0
- package/dist/services/run-mutation-batch.js.map +1 -0
- package/dist/services/run-page-queries.d.ts +2 -0
- package/dist/services/run-page-queries.js +38 -0
- package/dist/services/run-page-queries.js.map +1 -0
- package/dist/services/run-slice-queries.d.ts +2 -0
- package/dist/services/run-slice-queries.js +40 -0
- package/dist/services/run-slice-queries.js.map +1 -0
- package/dist/services/run-static-queries.d.ts +2 -0
- package/dist/services/run-static-queries.js +38 -0
- package/dist/services/run-static-queries.js.map +1 -0
- package/dist/services/source-nodes.d.ts +5 -0
- package/dist/services/source-nodes.js +47 -0
- package/dist/services/source-nodes.js.map +1 -0
- package/dist/services/start-webpack-server.d.ts +9 -0
- package/dist/services/start-webpack-server.js +103 -0
- package/dist/services/start-webpack-server.js.map +1 -0
- package/dist/services/types.d.ts +53 -0
- package/dist/services/types.js +4 -0
- package/dist/services/types.js.map +1 -0
- package/dist/services/write-out-redirects.d.ts +2 -0
- package/dist/services/write-out-redirects.js +20 -0
- package/dist/services/write-out-redirects.js.map +1 -0
- package/dist/services/write-out-requires.d.ts +2 -0
- package/dist/services/write-out-requires.js +27 -0
- package/dist/services/write-out-requires.js.map +1 -0
- package/dist/state-machines/data-layer/actions.d.ts +11 -0
- package/dist/state-machines/data-layer/actions.js +38 -0
- package/dist/state-machines/data-layer/actions.js.map +1 -0
- package/dist/state-machines/data-layer/index.d.ts +24 -0
- package/dist/state-machines/data-layer/index.js +152 -0
- package/dist/state-machines/data-layer/index.js.map +1 -0
- package/dist/state-machines/data-layer/services.d.ts +3 -0
- package/dist/state-machines/data-layer/services.js +14 -0
- package/dist/state-machines/data-layer/services.js.map +1 -0
- package/dist/state-machines/data-layer/types.d.ts +27 -0
- package/dist/state-machines/data-layer/types.js +4 -0
- package/dist/state-machines/data-layer/types.js.map +1 -0
- package/dist/state-machines/develop/actions.d.ts +68 -0
- package/dist/state-machines/develop/actions.js +259 -0
- package/dist/state-machines/develop/actions.js.map +1 -0
- package/dist/state-machines/develop/index.d.ts +5 -0
- package/dist/state-machines/develop/index.js +372 -0
- package/dist/state-machines/develop/index.js.map +1 -0
- package/dist/state-machines/develop/services.d.ts +3 -0
- package/dist/state-machines/develop/services.js +22 -0
- package/dist/state-machines/develop/services.js.map +1 -0
- package/dist/state-machines/index.d.ts +7 -0
- package/dist/state-machines/index.js +21 -0
- package/dist/state-machines/index.js.map +1 -0
- package/dist/state-machines/query-running/actions.d.ts +9 -0
- package/dist/state-machines/query-running/actions.js +55 -0
- package/dist/state-machines/query-running/actions.js.map +1 -0
- package/dist/state-machines/query-running/index.d.ts +7 -0
- package/dist/state-machines/query-running/index.js +142 -0
- package/dist/state-machines/query-running/index.js.map +1 -0
- package/dist/state-machines/query-running/services.d.ts +3 -0
- package/dist/state-machines/query-running/services.js +17 -0
- package/dist/state-machines/query-running/services.js.map +1 -0
- package/dist/state-machines/query-running/types.d.ts +26 -0
- package/dist/state-machines/query-running/types.js +4 -0
- package/dist/state-machines/query-running/types.js.map +1 -0
- package/dist/state-machines/waiting/actions.d.ts +11 -0
- package/dist/state-machines/waiting/actions.js +36 -0
- package/dist/state-machines/waiting/actions.js.map +1 -0
- package/dist/state-machines/waiting/index.d.ts +12 -0
- package/dist/state-machines/waiting/index.js +145 -0
- package/dist/state-machines/waiting/index.js.map +1 -0
- package/dist/state-machines/waiting/services.d.ts +3 -0
- package/dist/state-machines/waiting/services.js +10 -0
- package/dist/state-machines/waiting/services.js.map +1 -0
- package/dist/state-machines/waiting/types.d.ts +12 -0
- package/dist/state-machines/waiting/types.js +4 -0
- package/dist/state-machines/waiting/types.js.map +1 -0
- package/dist/types.d.ts +9 -0
- package/dist/types.js +4 -0
- package/dist/types.js.map +1 -0
- package/dist/utils/adapter/constants.d.ts +5 -0
- package/dist/utils/adapter/constants.js +31 -0
- package/dist/utils/adapter/constants.js.map +1 -0
- package/dist/utils/adapter/create-headers.d.ts +10 -0
- package/dist/utils/adapter/create-headers.js +94 -0
- package/dist/utils/adapter/create-headers.js.map +1 -0
- package/dist/utils/adapter/get-route-path.d.ts +3 -0
- package/dist/utils/adapter/get-route-path.js +22 -0
- package/dist/utils/adapter/get-route-path.js.map +1 -0
- package/dist/utils/adapter/init.d.ts +3 -0
- package/dist/utils/adapter/init.js +183 -0
- package/dist/utils/adapter/init.js.map +1 -0
- package/dist/utils/adapter/manager.d.ts +9 -0
- package/dist/utils/adapter/manager.js +554 -0
- package/dist/utils/adapter/manager.js.map +1 -0
- package/dist/utils/adapter/no-op-manager.d.ts +2 -0
- package/dist/utils/adapter/no-op-manager.js +18 -0
- package/dist/utils/adapter/no-op-manager.js.map +1 -0
- package/dist/utils/adapter/types.d.ts +282 -0
- package/dist/utils/adapter/types.js +4 -0
- package/dist/utils/adapter/types.js.map +1 -0
- package/dist/utils/api-browser-docs.d.ts +272 -0
- package/dist/utils/api-browser-docs.js +318 -0
- package/dist/utils/api-browser-docs.js.map +1 -0
- package/dist/utils/api-node-docs.d.ts +470 -0
- package/dist/utils/api-node-docs.js +519 -0
- package/dist/utils/api-node-docs.js.map +1 -0
- package/dist/utils/api-node-helpers-docs.js +322 -0
- package/dist/utils/api-node-helpers-docs.js.map +1 -0
- package/dist/utils/api-runner-error-parser.d.ts +5 -0
- package/dist/utils/api-runner-error-parser.js +63 -0
- package/dist/utils/api-runner-error-parser.js.map +1 -0
- package/dist/utils/api-runner-node.js +663 -0
- package/dist/utils/api-runner-node.js.map +1 -0
- package/dist/utils/app-data.d.ts +2 -0
- package/dist/utils/app-data.js +15 -0
- package/dist/utils/app-data.js.map +1 -0
- package/dist/utils/assert-store.d.ts +2 -0
- package/dist/utils/assert-store.js +12 -0
- package/dist/utils/assert-store.js.map +1 -0
- package/dist/utils/babel/babel-module-exports-helpers.d.ts +22 -0
- package/dist/utils/babel/babel-module-exports-helpers.js +48 -0
- package/dist/utils/babel/babel-module-exports-helpers.js.map +1 -0
- package/dist/utils/babel/babel-plugin-add-slice-placeholder-location.d.ts +10 -0
- package/dist/utils/babel/babel-plugin-add-slice-placeholder-location.js +48 -0
- package/dist/utils/babel/babel-plugin-add-slice-placeholder-location.js.map +1 -0
- package/dist/utils/babel/babel-plugin-remove-api.d.ts +5 -0
- package/dist/utils/babel/babel-plugin-remove-api.js +148 -0
- package/dist/utils/babel/babel-plugin-remove-api.js.map +1 -0
- package/dist/utils/babel/find-slices.d.ts +8 -0
- package/dist/utils/babel/find-slices.js +68 -0
- package/dist/utils/babel/find-slices.js.map +1 -0
- package/dist/utils/babel-loader-helpers.d.ts +19 -0
- package/dist/utils/babel-loader-helpers.js +158 -0
- package/dist/utils/babel-loader-helpers.js.map +1 -0
- package/dist/utils/babel-loader.d.ts +8 -0
- package/dist/utils/babel-loader.js +158 -0
- package/dist/utils/babel-loader.js.map +1 -0
- package/dist/utils/babel-parse-to-ast.d.ts +4 -0
- package/dist/utils/babel-parse-to-ast.js +34 -0
- package/dist/utils/babel-parse-to-ast.js.map +1 -0
- package/dist/utils/batcher.d.ts +15 -0
- package/dist/utils/batcher.js +46 -0
- package/dist/utils/batcher.js.map +1 -0
- package/dist/utils/browserslist.d.ts +2 -0
- package/dist/utils/browserslist.js +38 -0
- package/dist/utils/browserslist.js.map +1 -0
- package/dist/utils/cache-lmdb.d.ts +19 -0
- package/dist/utils/cache-lmdb.js +88 -0
- package/dist/utils/cache-lmdb.js.map +1 -0
- package/dist/utils/cache.d.ts +17 -0
- package/dist/utils/cache.js +77 -0
- package/dist/utils/cache.js.map +1 -0
- package/dist/utils/call-deferred-api.d.ts +8 -0
- package/dist/utils/call-deferred-api.js +35 -0
- package/dist/utils/call-deferred-api.js.map +1 -0
- package/dist/utils/changed-pages.d.ts +6 -0
- package/dist/utils/changed-pages.js +45 -0
- package/dist/utils/changed-pages.js.map +1 -0
- package/dist/utils/clear-require-cache.d.ts +1 -0
- package/dist/utils/clear-require-cache.js +24 -0
- package/dist/utils/clear-require-cache.js.map +1 -0
- package/dist/utils/client-assets-for-template.d.ts +9 -0
- package/dist/utils/client-assets-for-template.js +141 -0
- package/dist/utils/client-assets-for-template.js.map +1 -0
- package/dist/utils/create-node-id.d.ts +24 -0
- package/dist/utils/create-node-id.js +67 -0
- package/dist/utils/create-node-id.js.map +1 -0
- package/dist/utils/create-schema-customization.d.ts +6 -0
- package/dist/utils/create-schema-customization.js +25 -0
- package/dist/utils/create-schema-customization.js.map +1 -0
- package/dist/utils/detect-node-mutations.d.ts +4 -0
- package/dist/utils/detect-node-mutations.js +134 -0
- package/dist/utils/detect-node-mutations.js.map +1 -0
- package/dist/utils/detect-port-in-use-and-prompt.d.ts +1 -0
- package/dist/utils/detect-port-in-use-and-prompt.js +31 -0
- package/dist/utils/detect-port-in-use-and-prompt.js.map +1 -0
- package/dist/utils/dev-ssr/parse-error.d.ts +22 -0
- package/dist/utils/dev-ssr/parse-error.js +119 -0
- package/dist/utils/dev-ssr/parse-error.js.map +1 -0
- package/dist/utils/dev-ssr/render-dev-html-child.d.ts +13 -0
- package/dist/utils/dev-ssr/render-dev-html-child.js +47 -0
- package/dist/utils/dev-ssr/render-dev-html-child.js.map +1 -0
- package/dist/utils/dev-ssr/render-dev-html.d.ts +23 -0
- package/dist/utils/dev-ssr/render-dev-html.js +227 -0
- package/dist/utils/dev-ssr/render-dev-html.js.map +1 -0
- package/dist/utils/develop-preload-headers.d.ts +7 -0
- package/dist/utils/develop-preload-headers.js +64 -0
- package/dist/utils/develop-preload-headers.js.map +1 -0
- package/dist/utils/did-you-mean.d.ts +3 -0
- package/dist/utils/did-you-mean.js +21 -0
- package/dist/utils/did-you-mean.js.map +1 -0
- package/dist/utils/engine-context.d.ts +5 -0
- package/dist/utils/engine-context.js +19 -0
- package/dist/utils/engine-context.js.map +1 -0
- package/dist/utils/engines-fs-provider.d.ts +9 -0
- package/dist/utils/engines-fs-provider.js +24 -0
- package/dist/utils/engines-fs-provider.js.map +1 -0
- package/dist/utils/engines-helpers.d.ts +10 -0
- package/dist/utils/engines-helpers.js +48 -0
- package/dist/utils/engines-helpers.js.map +1 -0
- package/dist/utils/ensure-file-content.d.ts +1 -0
- package/dist/utils/ensure-file-content.js +19 -0
- package/dist/utils/ensure-file-content.js.map +1 -0
- package/dist/utils/eslint/required.js +10 -0
- package/dist/utils/eslint/required.js.map +1 -0
- package/dist/utils/eslint-config.d.ts +3 -0
- package/dist/utils/eslint-config.js +136 -0
- package/dist/utils/eslint-config.js.map +1 -0
- package/dist/utils/eslint-rules/limited-exports-page-templates.d.ts +1 -0
- package/dist/utils/eslint-rules/limited-exports-page-templates.js +183 -0
- package/dist/utils/eslint-rules/limited-exports-page-templates.js.map +1 -0
- package/dist/utils/eslint-rules/no-anonymous-exports-page-templates.d.ts +1 -0
- package/dist/utils/eslint-rules/no-anonymous-exports-page-templates.js +75 -0
- package/dist/utils/eslint-rules/no-anonymous-exports-page-templates.js.map +1 -0
- package/dist/utils/eslint-rules-helpers.d.ts +4 -0
- package/dist/utils/eslint-rules-helpers.js +22 -0
- package/dist/utils/eslint-rules-helpers.js.map +1 -0
- package/dist/utils/express-middlewares.d.ts +4 -0
- package/dist/utils/express-middlewares.js +57 -0
- package/dist/utils/express-middlewares.js.map +1 -0
- package/dist/utils/extract-undefined-global.d.ts +4 -0
- package/dist/utils/extract-undefined-global.js +15 -0
- package/dist/utils/extract-undefined-global.js.map +1 -0
- package/dist/utils/fast-refresh-module.d.ts +22 -0
- package/dist/utils/fast-refresh-module.js +53 -0
- package/dist/utils/fast-refresh-module.js.map +1 -0
- package/dist/utils/feedback.d.ts +5 -0
- package/dist/utils/feedback.js +159 -0
- package/dist/utils/feedback.js.map +1 -0
- package/dist/utils/find-page-by-path.d.ts +2 -0
- package/dist/utils/find-page-by-path.js +96 -0
- package/dist/utils/find-page-by-path.js.map +1 -0
- package/dist/utils/flags.d.ts +41 -0
- package/dist/utils/flags.js +92 -0
- package/dist/utils/flags.js.map +1 -0
- package/dist/utils/gatsby-cloud-config.d.ts +4 -0
- package/dist/utils/gatsby-cloud-config.js +15 -0
- package/dist/utils/gatsby-cloud-config.js.map +1 -0
- package/dist/utils/gatsby-dependents.d.ts +8 -0
- package/dist/utils/gatsby-dependents.js +51 -0
- package/dist/utils/gatsby-dependents.js.map +1 -0
- package/dist/utils/gatsby-webpack-stats-extractor.d.ts +7 -0
- package/dist/utils/gatsby-webpack-stats-extractor.js +136 -0
- package/dist/utils/gatsby-webpack-stats-extractor.js.map +1 -0
- package/dist/utils/gatsby-webpack-virtual-modules.d.ts +6 -0
- package/dist/utils/gatsby-webpack-virtual-modules.js +45 -0
- package/dist/utils/gatsby-webpack-virtual-modules.js.map +1 -0
- package/dist/utils/get-cache.d.ts +2 -0
- package/dist/utils/get-cache.js +18 -0
- package/dist/utils/get-cache.js.map +1 -0
- package/dist/utils/get-latest-gatsby-files.d.ts +8 -0
- package/dist/utils/get-latest-gatsby-files.js +93 -0
- package/dist/utils/get-latest-gatsby-files.js.map +1 -0
- package/dist/utils/get-page-data.d.ts +3 -0
- package/dist/utils/get-page-data.js +88 -0
- package/dist/utils/get-page-data.js.map +1 -0
- package/dist/utils/get-public-path.d.ts +5 -0
- package/dist/utils/get-public-path.js +19 -0
- package/dist/utils/get-public-path.js.map +1 -0
- package/dist/utils/get-server-data.d.ts +19 -0
- package/dist/utils/get-server-data.js +29 -0
- package/dist/utils/get-server-data.js.map +1 -0
- package/dist/utils/get-ssl-cert.d.ts +9 -0
- package/dist/utils/get-ssl-cert.js +95 -0
- package/dist/utils/get-ssl-cert.js.map +1 -0
- package/dist/utils/get-static-dir.d.ts +12 -0
- package/dist/utils/get-static-dir.js +60 -0
- package/dist/utils/get-static-dir.js.map +1 -0
- package/dist/utils/get-value-at.d.ts +1 -0
- package/dist/utils/get-value-at.js +22 -0
- package/dist/utils/get-value-at.js.map +1 -0
- package/dist/utils/graphql-typegen/file-writes.d.ts +5 -0
- package/dist/utils/graphql-typegen/file-writes.js +63 -0
- package/dist/utils/graphql-typegen/file-writes.js.map +1 -0
- package/dist/utils/graphql-typegen/ts-codegen.d.ts +5 -0
- package/dist/utils/graphql-typegen/ts-codegen.js +136 -0
- package/dist/utils/graphql-typegen/ts-codegen.js.map +1 -0
- package/dist/utils/graphql-typegen/utils.d.ts +11 -0
- package/dist/utils/graphql-typegen/utils.js +70 -0
- package/dist/utils/graphql-typegen/utils.js.map +1 -0
- package/dist/utils/handle-flags.d.ts +8 -0
- package/dist/utils/handle-flags.js +212 -0
- package/dist/utils/handle-flags.js.map +1 -0
- package/dist/utils/import-gatsby-plugin.d.ts +11 -0
- package/dist/utils/import-gatsby-plugin.js +40 -0
- package/dist/utils/import-gatsby-plugin.js.map +1 -0
- package/dist/utils/is-32-bit-integer.d.ts +1 -0
- package/dist/utils/is-32-bit-integer.js +8 -0
- package/dist/utils/is-32-bit-integer.js.map +1 -0
- package/dist/utils/is-near-match.d.ts +1 -0
- package/dist/utils/is-near-match.js +10 -0
- package/dist/utils/is-near-match.js.map +1 -0
- package/dist/utils/jobs/manager.d.ts +34 -0
- package/dist/utils/jobs/manager.js +313 -0
- package/dist/utils/jobs/manager.js.map +1 -0
- package/dist/utils/jobs/types.d.ts +63 -0
- package/dist/utils/jobs/types.js +32 -0
- package/dist/utils/jobs/types.js.map +1 -0
- package/dist/utils/jobs/worker-messaging.d.ts +10 -0
- package/dist/utils/jobs/worker-messaging.js +114 -0
- package/dist/utils/jobs/worker-messaging.js.map +1 -0
- package/dist/utils/js-chunk-names.d.ts +1 -0
- package/dist/utils/js-chunk-names.js +72 -0
- package/dist/utils/js-chunk-names.js.map +1 -0
- package/dist/utils/loading-indicator.d.ts +3 -0
- package/dist/utils/loading-indicator.js +44 -0
- package/dist/utils/loading-indicator.js.map +1 -0
- package/dist/utils/local-eslint-config-finder.d.ts +1 -0
- package/dist/utils/local-eslint-config-finder.js +31 -0
- package/dist/utils/local-eslint-config-finder.js.map +1 -0
- package/dist/utils/merge-gatsby-config.d.ts +28 -0
- package/dist/utils/merge-gatsby-config.js +43 -0
- package/dist/utils/merge-gatsby-config.js.map +1 -0
- package/dist/utils/mett.d.ts +10 -0
- package/dist/utils/mett.js +42 -0
- package/dist/utils/mett.js.map +1 -0
- package/dist/utils/module-resolver.d.ts +2 -0
- package/dist/utils/module-resolver.js +24 -0
- package/dist/utils/module-resolver.js.map +1 -0
- package/dist/utils/node-manifest.d.ts +46 -0
- package/dist/utils/node-manifest.js +367 -0
- package/dist/utils/node-manifest.js.map +1 -0
- package/dist/utils/nodes.d.ts +13 -0
- package/dist/utils/nodes.js +62 -0
- package/dist/utils/nodes.js.map +1 -0
- package/dist/utils/normalize-path.d.ts +2 -0
- package/dist/utils/normalize-path.js +11 -0
- package/dist/utils/normalize-path.js.map +1 -0
- package/dist/utils/page-data-helpers.d.ts +23 -0
- package/dist/utils/page-data-helpers.js +76 -0
- package/dist/utils/page-data-helpers.js.map +1 -0
- package/dist/utils/page-data.d.ts +39 -0
- package/dist/utils/page-data.js +366 -0
- package/dist/utils/page-data.js.map +1 -0
- package/dist/utils/page-mode.d.ts +18 -0
- package/dist/utils/page-mode.js +124 -0
- package/dist/utils/page-mode.js.map +1 -0
- package/dist/utils/page-ssr-module/bundle-webpack.d.ts +18 -0
- package/dist/utils/page-ssr-module/bundle-webpack.js +209 -0
- package/dist/utils/page-ssr-module/bundle-webpack.js.map +1 -0
- package/dist/utils/page-ssr-module/entry.d.ts +61 -0
- package/dist/utils/page-ssr-module/entry.js +344 -0
- package/dist/utils/page-ssr-module/entry.js.map +1 -0
- package/dist/utils/page-ssr-module/lambda.d.ts +3 -0
- package/dist/utils/page-ssr-module/lambda.js +401 -0
- package/dist/utils/page-ssr-module/lambda.js.map +1 -0
- package/dist/utils/parcel/compile-gatsby-files.d.ts +26 -0
- package/dist/utils/parcel/compile-gatsby-files.js +271 -0
- package/dist/utils/parcel/compile-gatsby-files.js.map +1 -0
- package/dist/utils/path.d.ts +5 -0
- package/dist/utils/path.js +55 -0
- package/dist/utils/path.js.map +1 -0
- package/dist/utils/prepare-regex.d.ts +1 -0
- package/dist/utils/prepare-regex.js +13 -0
- package/dist/utils/prepare-regex.js.map +1 -0
- package/dist/utils/prepare-urls.d.ts +7 -0
- package/dist/utils/prepare-urls.js +58 -0
- package/dist/utils/prepare-urls.js.map +1 -0
- package/dist/utils/print-instructions.d.ts +2 -0
- package/dist/utils/print-instructions.js +42 -0
- package/dist/utils/print-instructions.js.map +1 -0
- package/dist/utils/rank-route.d.ts +1 -0
- package/dist/utils/rank-route.js +26 -0
- package/dist/utils/rank-route.js.map +1 -0
- package/dist/utils/reach-router-add-basecontext-export-loader.d.ts +1 -0
- package/dist/utils/reach-router-add-basecontext-export-loader.js +23 -0
- package/dist/utils/reach-router-add-basecontext-export-loader.js.map +1 -0
- package/dist/utils/report-once.d.ts +1 -0
- package/dist/utils/report-once.js +17 -0
- package/dist/utils/report-once.js.map +1 -0
- package/dist/utils/sanitize-node.d.ts +12 -0
- package/dist/utils/sanitize-node.js +87 -0
- package/dist/utils/sanitize-node.js.map +1 -0
- package/dist/utils/show-experiment-notice.d.ts +6 -0
- package/dist/utils/show-experiment-notice.js +51 -0
- package/dist/utils/show-experiment-notice.js.map +1 -0
- package/dist/utils/slices/stitching.d.ts +4 -0
- package/dist/utils/slices/stitching.js +92 -0
- package/dist/utils/slices/stitching.js.map +1 -0
- package/dist/utils/slices.d.ts +2 -0
- package/dist/utils/slices.js +9 -0
- package/dist/utils/slices.js.map +1 -0
- package/dist/utils/source-nodes-api-runner.d.ts +8 -0
- package/dist/utils/source-nodes-api-runner.js +23 -0
- package/dist/utils/source-nodes-api-runner.js.map +1 -0
- package/dist/utils/source-nodes.d.ts +11 -0
- package/dist/utils/source-nodes.js +150 -0
- package/dist/utils/source-nodes.js.map +1 -0
- package/dist/utils/stack-trace-utils.d.ts +24 -0
- package/dist/utils/stack-trace-utils.js +113 -0
- package/dist/utils/stack-trace-utils.js.map +1 -0
- package/dist/utils/start-server.d.ts +22 -0
- package/dist/utils/start-server.js +722 -0
- package/dist/utils/start-server.js.map +1 -0
- package/dist/utils/state-machine-logging.d.ts +4 -0
- package/dist/utils/state-machine-logging.js +47 -0
- package/dist/utils/state-machine-logging.js.map +1 -0
- package/dist/utils/static-query-utils.d.ts +13 -0
- package/dist/utils/static-query-utils.js +57 -0
- package/dist/utils/static-query-utils.js.map +1 -0
- package/dist/utils/test-import-error.d.ts +1 -0
- package/dist/utils/test-import-error.js +18 -0
- package/dist/utils/test-import-error.js.map +1 -0
- package/dist/utils/tracer/index.d.ts +12 -0
- package/dist/utils/tracer/index.js +42 -0
- package/dist/utils/tracer/index.js.map +1 -0
- package/dist/utils/tracer/jaeger-local.d.ts +4 -0
- package/dist/utils/tracer/jaeger-local.js +32 -0
- package/dist/utils/tracer/jaeger-local.js.map +1 -0
- package/dist/utils/tracer/zipkin-local.d.ts +11 -0
- package/dist/utils/tracer/zipkin-local.js +87 -0
- package/dist/utils/tracer/zipkin-local.js.map +1 -0
- package/dist/utils/tracer/zipkin-types.d.js +14 -0
- package/dist/utils/tracer/zipkin-types.d.js.map +1 -0
- package/dist/utils/validate-component.d.ts +23 -0
- package/dist/utils/validate-component.js +99 -0
- package/dist/utils/validate-component.js.map +1 -0
- package/dist/utils/validate-engines/child.d.ts +1 -0
- package/dist/utils/validate-engines/child.js +74 -0
- package/dist/utils/validate-engines/child.js.map +1 -0
- package/dist/utils/validate-engines/index.d.ts +2 -0
- package/dist/utils/validate-engines/index.js +48 -0
- package/dist/utils/validate-engines/index.js.map +1 -0
- package/dist/utils/wait-until-jobs-complete.d.ts +2 -0
- package/dist/utils/wait-until-jobs-complete.js +30 -0
- package/dist/utils/wait-until-jobs-complete.js.map +1 -0
- package/dist/utils/webpack/bundle.d.ts +9 -0
- package/dist/utils/webpack/bundle.js +41 -0
- package/dist/utils/webpack/bundle.js.map +1 -0
- package/dist/utils/webpack/get-ssr-chunk-hashes.d.ts +9 -0
- package/dist/utils/webpack/get-ssr-chunk-hashes.js +55 -0
- package/dist/utils/webpack/get-ssr-chunk-hashes.js.map +1 -0
- package/dist/utils/webpack/loaders/client-components-requires-writer-loader.d.ts +1 -0
- package/dist/utils/webpack/loaders/client-components-requires-writer-loader.js +22 -0
- package/dist/utils/webpack/loaders/client-components-requires-writer-loader.js.map +1 -0
- package/dist/utils/webpack/loaders/partial-hydration-reference-loader.d.ts +1 -0
- package/dist/utils/webpack/loaders/partial-hydration-reference-loader.js +127 -0
- package/dist/utils/webpack/loaders/partial-hydration-reference-loader.js.map +1 -0
- package/dist/utils/webpack/loaders/webpack-remove-exports-loader.d.ts +1 -0
- package/dist/utils/webpack/loaders/webpack-remove-exports-loader.js +40 -0
- package/dist/utils/webpack/loaders/webpack-remove-exports-loader.js.map +1 -0
- package/dist/utils/webpack/plugins/cache-folder-resolver.d.ts +25 -0
- package/dist/utils/webpack/plugins/cache-folder-resolver.js +111 -0
- package/dist/utils/webpack/plugins/cache-folder-resolver.js.map +1 -0
- package/dist/utils/webpack/plugins/corejs-resolver.d.ts +12 -0
- package/dist/utils/webpack/plugins/corejs-resolver.js +66 -0
- package/dist/utils/webpack/plugins/corejs-resolver.js.map +1 -0
- package/dist/utils/webpack/plugins/force-css-hmr-for-edge-cases.d.ts +22 -0
- package/dist/utils/webpack/plugins/force-css-hmr-for-edge-cases.js +88 -0
- package/dist/utils/webpack/plugins/force-css-hmr-for-edge-cases.js.map +1 -0
- package/dist/utils/webpack/plugins/partial-hydration.d.ts +26 -0
- package/dist/utils/webpack/plugins/partial-hydration.js +362 -0
- package/dist/utils/webpack/plugins/partial-hydration.js.map +1 -0
- package/dist/utils/webpack/plugins/static-query-mapper.d.ts +13 -0
- package/dist/utils/webpack/plugins/static-query-mapper.js +235 -0
- package/dist/utils/webpack/plugins/static-query-mapper.js.map +1 -0
- package/dist/utils/webpack/plugins/webpack-logging.d.ts +12 -0
- package/dist/utils/webpack/plugins/webpack-logging.js +51 -0
- package/dist/utils/webpack/plugins/webpack-logging.js.map +1 -0
- package/dist/utils/webpack/utils/create-normalized-module-key.d.ts +12 -0
- package/dist/utils/webpack/utils/create-normalized-module-key.js +25 -0
- package/dist/utils/webpack/utils/create-normalized-module-key.js.map +1 -0
- package/dist/utils/webpack/utils/is-file-inside-compilations.d.ts +7 -0
- package/dist/utils/webpack/utils/is-file-inside-compilations.js +37 -0
- package/dist/utils/webpack/utils/is-file-inside-compilations.js.map +1 -0
- package/dist/utils/webpack-error-utils.d.ts +24 -0
- package/dist/utils/webpack-error-utils.js +112 -0
- package/dist/utils/webpack-error-utils.js.map +1 -0
- package/dist/utils/webpack-plugins.d.ts +46 -0
- package/dist/utils/webpack-plugins.js +61 -0
- package/dist/utils/webpack-plugins.js.map +1 -0
- package/dist/utils/webpack-status.d.ts +3 -0
- package/dist/utils/webpack-status.js +21 -0
- package/dist/utils/webpack-status.js.map +1 -0
- package/dist/utils/webpack-utils.d.ts +121 -0
- package/dist/utils/webpack-utils.js +574 -0
- package/dist/utils/webpack-utils.js.map +1 -0
- package/dist/utils/webpack.config.js +804 -0
- package/dist/utils/webpack.config.js.map +1 -0
- package/dist/utils/websocket-manager.d.ts +39 -0
- package/dist/utils/websocket-manager.js +183 -0
- package/dist/utils/websocket-manager.js.map +1 -0
- package/dist/utils/worker/child/index.d.ts +5 -0
- package/dist/utils/worker/child/index.js +35 -0
- package/dist/utils/worker/child/index.js.map +1 -0
- package/dist/utils/worker/child/load-config-and-plugins.d.ts +2 -0
- package/dist/utils/worker/child/load-config-and-plugins.js +28 -0
- package/dist/utils/worker/child/load-config-and-plugins.js.map +1 -0
- package/dist/utils/worker/child/queries.d.ts +7 -0
- package/dist/utils/worker/child/queries.js +84 -0
- package/dist/utils/worker/child/queries.js.map +1 -0
- package/dist/utils/worker/child/render-html.d.ts +49 -0
- package/dist/utils/worker/child/render-html.js +562 -0
- package/dist/utils/worker/child/render-html.js.map +1 -0
- package/dist/utils/worker/child/schema.d.ts +2 -0
- package/dist/utils/worker/child/schema.js +41 -0
- package/dist/utils/worker/child/schema.js.map +1 -0
- package/dist/utils/worker/child/state.d.ts +2 -0
- package/dist/utils/worker/child/state.js +13 -0
- package/dist/utils/worker/child/state.js.map +1 -0
- package/dist/utils/worker/messaging.d.ts +16 -0
- package/dist/utils/worker/messaging.js +9 -0
- package/dist/utils/worker/messaging.js.map +1 -0
- package/dist/utils/worker/pool.d.ts +10 -0
- package/dist/utils/worker/pool.js +122 -0
- package/dist/utils/worker/pool.js.map +1 -0
- package/dist/utils/worker/reporter.d.ts +3 -0
- package/dist/utils/worker/reporter.js +26 -0
- package/dist/utils/worker/reporter.js.map +1 -0
- package/dist/utils/worker/types.d.ts +3 -0
- package/dist/utils/worker/types.js +4 -0
- package/dist/utils/worker/types.js.map +1 -0
- package/graphql.d.ts +2 -0
- package/graphql.js +6 -0
- package/index.d.ts +1906 -0
- package/internal.d.ts +4 -0
- package/internal.js +5 -0
- package/ipc.json +3 -0
- package/package.json +744 -0
- package/reporter.d.ts +4 -0
- package/reporter.js +3 -0
- package/scripts/postinstall.js +7 -0
- package/utils.js +1 -0
- package/webpack.d.ts +3 -0
- package/webpack.js +3 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _core = require("@babel/core");
|
|
4
|
+
/* eslint-disable @babel/no-invalid-this */
|
|
5
|
+
|
|
6
|
+
const webpackRemoveExportsLoader = function webpackRemoveExportsLoader(source, sourceMap) {
|
|
7
|
+
var _options$remove;
|
|
8
|
+
const callback = this.async();
|
|
9
|
+
const options = this.getOptions();
|
|
10
|
+
(0, _core.transform)(source, {
|
|
11
|
+
babelrc: false,
|
|
12
|
+
configFile: false,
|
|
13
|
+
// @ts-ignore inputSourceMap expect object or falsy, but webpack types suggest sourceMap can be a string,
|
|
14
|
+
// which is not compatibile with babel's transform options
|
|
15
|
+
inputSourceMap: this.sourceMap ? sourceMap || undefined : undefined,
|
|
16
|
+
sourceFileName: this.resourcePath,
|
|
17
|
+
sourceMaps: this.sourceMap,
|
|
18
|
+
filename: this.resourcePath,
|
|
19
|
+
presets: options !== null && options !== void 0 && options.jsx ? [[require.resolve(`babel-preset-gatsby/babel-preset-react`), {
|
|
20
|
+
useBuiltIns: true,
|
|
21
|
+
pragma: `React.createElement`,
|
|
22
|
+
// jsx is used only in develop, so for now this is fine
|
|
23
|
+
development: true
|
|
24
|
+
}]] : undefined,
|
|
25
|
+
plugins: [[require.resolve(`../../babel/babel-plugin-remove-api`), {
|
|
26
|
+
apis: (_options$remove = options === null || options === void 0 ? void 0 : options.remove) !== null && _options$remove !== void 0 ? _options$remove : []
|
|
27
|
+
}]]
|
|
28
|
+
}, (err, result) => {
|
|
29
|
+
if (err) {
|
|
30
|
+
callback(err);
|
|
31
|
+
} else if (result && result.code) {
|
|
32
|
+
var _result$map;
|
|
33
|
+
callback(null, result === null || result === void 0 ? void 0 : result.code, (_result$map = result === null || result === void 0 ? void 0 : result.map) !== null && _result$map !== void 0 ? _result$map : undefined);
|
|
34
|
+
} else {
|
|
35
|
+
callback(null, source, sourceMap);
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
};
|
|
39
|
+
module.exports = webpackRemoveExportsLoader;
|
|
40
|
+
//# sourceMappingURL=webpack-remove-exports-loader.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"webpack-remove-exports-loader.js","names":["webpackRemoveExportsLoader","source","sourceMap","callback","async","options","getOptions","transform","babelrc","configFile","inputSourceMap","undefined","sourceFileName","resourcePath","sourceMaps","filename","presets","jsx","require","resolve","useBuiltIns","pragma","development","plugins","apis","remove","err","result","code","map","module","exports"],"sources":["../../../../src/utils/webpack/loaders/webpack-remove-exports-loader.ts"],"sourcesContent":["/* eslint-disable @babel/no-invalid-this */\n\nimport { LoaderDefinitionFunction } from \"webpack\"\nimport { transform } from \"@babel/core\"\n\ninterface IOptions {\n jsx?: boolean\n remove?: Array<string>\n}\n\nconst webpackRemoveExportsLoader: LoaderDefinitionFunction<IOptions> =\n function webpackRemoveExportsLoader(source, sourceMap): void {\n const callback = this.async()\n const options = this.getOptions()\n\n transform(\n source,\n {\n babelrc: false,\n configFile: false,\n // @ts-ignore inputSourceMap expect object or falsy, but webpack types suggest sourceMap can be a string,\n // which is not compatibile with babel's transform options\n inputSourceMap: this.sourceMap ? sourceMap || undefined : undefined,\n sourceFileName: this.resourcePath,\n sourceMaps: this.sourceMap,\n filename: this.resourcePath,\n presets: options?.jsx\n ? [\n [\n require.resolve(`babel-preset-gatsby/babel-preset-react`),\n {\n useBuiltIns: true,\n pragma: `React.createElement`,\n // jsx is used only in develop, so for now this is fine\n development: true,\n },\n ],\n ]\n : undefined,\n plugins: [\n [\n require.resolve(`../../babel/babel-plugin-remove-api`),\n {\n apis: options?.remove ?? [],\n },\n ],\n ],\n },\n (err, result) => {\n if (err) {\n callback(err)\n } else if (result && result.code) {\n callback(null, result?.code, result?.map ?? undefined)\n } else {\n callback(null, source, sourceMap)\n }\n }\n )\n }\n\nmodule.exports = webpackRemoveExportsLoader\n"],"mappings":";;AAGA;AAHA;;AAUA,MAAMA,0BAA8D,GAClE,SAASA,0BAA0B,CAACC,MAAM,EAAEC,SAAS,EAAQ;EAAA;EAC3D,MAAMC,QAAQ,GAAG,IAAI,CAACC,KAAK,EAAE;EAC7B,MAAMC,OAAO,GAAG,IAAI,CAACC,UAAU,EAAE;EAEjC,IAAAC,eAAS,EACPN,MAAM,EACN;IACEO,OAAO,EAAE,KAAK;IACdC,UAAU,EAAE,KAAK;IACjB;IACA;IACAC,cAAc,EAAE,IAAI,CAACR,SAAS,GAAGA,SAAS,IAAIS,SAAS,GAAGA,SAAS;IACnEC,cAAc,EAAE,IAAI,CAACC,YAAY;IACjCC,UAAU,EAAE,IAAI,CAACZ,SAAS;IAC1Ba,QAAQ,EAAE,IAAI,CAACF,YAAY;IAC3BG,OAAO,EAAEX,OAAO,aAAPA,OAAO,eAAPA,OAAO,CAAEY,GAAG,GACjB,CACE,CACEC,OAAO,CAACC,OAAO,CAAE,wCAAuC,CAAC,EACzD;MACEC,WAAW,EAAE,IAAI;MACjBC,MAAM,EAAG,qBAAoB;MAC7B;MACAC,WAAW,EAAE;IACf,CAAC,CACF,CACF,GACDX,SAAS;IACbY,OAAO,EAAE,CACP,CACEL,OAAO,CAACC,OAAO,CAAE,qCAAoC,CAAC,EACtD;MACEK,IAAI,qBAAEnB,OAAO,aAAPA,OAAO,uBAAPA,OAAO,CAAEoB,MAAM,6DAAI;IAC3B,CAAC,CACF;EAEL,CAAC,EACD,CAACC,GAAG,EAAEC,MAAM,KAAK;IACf,IAAID,GAAG,EAAE;MACPvB,QAAQ,CAACuB,GAAG,CAAC;IACf,CAAC,MAAM,IAAIC,MAAM,IAAIA,MAAM,CAACC,IAAI,EAAE;MAAA;MAChCzB,QAAQ,CAAC,IAAI,EAAEwB,MAAM,aAANA,MAAM,uBAANA,MAAM,CAAEC,IAAI,iBAAED,MAAM,aAANA,MAAM,uBAANA,MAAM,CAAEE,GAAG,qDAAIlB,SAAS,CAAC;IACxD,CAAC,MAAM;MACLR,QAAQ,CAAC,IAAI,EAAEF,MAAM,EAAEC,SAAS,CAAC;IACnC;EACF,CAAC,CACF;AACH,CAAC;AAEH4B,MAAM,CAACC,OAAO,GAAG/B,0BAA0B"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import Resolver from "enhanced-resolve/lib/Resolver";
|
|
2
|
+
/**
|
|
3
|
+
* To support Yarn PNP and pnpm we have to make sure dependencies resolved from
|
|
4
|
+
* the .cache folder should be resolved from the gatsby package directory
|
|
5
|
+
* If you see error like
|
|
6
|
+
*
|
|
7
|
+
* ModuleNotFoundError: Module not found: Error: Can't resolve 'prop-types'
|
|
8
|
+
* in 'site-directory/.cache'
|
|
9
|
+
*
|
|
10
|
+
* it probably means this plugin is not enabled when it should be and there
|
|
11
|
+
* might be need to adjust conditions for setting `this.isEnabled` in the
|
|
12
|
+
* constructor.
|
|
13
|
+
*
|
|
14
|
+
* It's not enabled always because of legacy behavior and to limit potential
|
|
15
|
+
* regressions. Might be good idea to enable it always in the future
|
|
16
|
+
* OR remove the need for the plugin completely by not copying `cache-dir`
|
|
17
|
+
* contents to `.cache` folder and instead adjust setup to use those browser/node
|
|
18
|
+
* html renderer runtime files directly from gatsby package
|
|
19
|
+
*/
|
|
20
|
+
export declare class CacheFolderResolver {
|
|
21
|
+
private requestsFolder;
|
|
22
|
+
private isEnabled;
|
|
23
|
+
constructor(requestsFolder: string);
|
|
24
|
+
apply(resolver: Resolver): void;
|
|
25
|
+
}
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
exports.__esModule = true;
|
|
5
|
+
exports.CacheFolderResolver = void 0;
|
|
6
|
+
var _module = _interopRequireDefault(require("module"));
|
|
7
|
+
/**
|
|
8
|
+
* To support Yarn PNP and pnpm we have to make sure dependencies resolved from
|
|
9
|
+
* the .cache folder should be resolved from the gatsby package directory
|
|
10
|
+
* If you see error like
|
|
11
|
+
*
|
|
12
|
+
* ModuleNotFoundError: Module not found: Error: Can't resolve 'prop-types'
|
|
13
|
+
* in 'site-directory/.cache'
|
|
14
|
+
*
|
|
15
|
+
* it probably means this plugin is not enabled when it should be and there
|
|
16
|
+
* might be need to adjust conditions for setting `this.isEnabled` in the
|
|
17
|
+
* constructor.
|
|
18
|
+
*
|
|
19
|
+
* It's not enabled always because of legacy behavior and to limit potential
|
|
20
|
+
* regressions. Might be good idea to enable it always in the future
|
|
21
|
+
* OR remove the need for the plugin completely by not copying `cache-dir`
|
|
22
|
+
* contents to `.cache` folder and instead adjust setup to use those browser/node
|
|
23
|
+
* html renderer runtime files directly from gatsby package
|
|
24
|
+
*/
|
|
25
|
+
class CacheFolderResolver {
|
|
26
|
+
isEnabled = false;
|
|
27
|
+
constructor(requestsFolder) {
|
|
28
|
+
var _process$env$NODE_PAT;
|
|
29
|
+
this.requestsFolder = requestsFolder;
|
|
30
|
+
if (process.versions.pnp) {
|
|
31
|
+
// Yarn PnP
|
|
32
|
+
this.isEnabled = true;
|
|
33
|
+
} else if (/node_modules[/\\]\.pnpm/.test((_process$env$NODE_PAT = process.env.NODE_PATH) !== null && _process$env$NODE_PAT !== void 0 ? _process$env$NODE_PAT : ``)) {
|
|
34
|
+
// pnpm when executing through `pnpm` CLI
|
|
35
|
+
this.isEnabled = true;
|
|
36
|
+
} else {
|
|
37
|
+
// pnpm when executing through regular `gatsby` CLI / `./node_modules/.bin/gatsby`
|
|
38
|
+
// would not set NODE_PATH, but node_modules structure would not allow to resolve
|
|
39
|
+
// gatsby deps from the cache folder (unless user would install same deps too)
|
|
40
|
+
// so we are checking if we can resolve deps from the cache folder
|
|
41
|
+
// this check is not limited to pnpm and other package managers could hit this path too
|
|
42
|
+
|
|
43
|
+
// Hardcoded list of gatsby deps used in gatsby browser and ssr runtimes
|
|
44
|
+
// instead of checking if we use Yarn PnP (via `process.versions.pnp`),
|
|
45
|
+
// we check if we can resolve the external deps from the cache-dir folder
|
|
46
|
+
// to know if we need to enable this plugin so we also cover pnpm
|
|
47
|
+
// It might be good idea to always enable it overall, but to limit potential
|
|
48
|
+
// regressions we only enable it if we are sure we need it.
|
|
49
|
+
const modulesToCheck = [`prop-types`, `lodash/isEqual`, `mitt`, `shallow-compare`, `@gatsbyjs/reach-router`, `gatsby-react-router-scroll`, `react-server-dom-webpack`, `gatsby-link`];
|
|
50
|
+
|
|
51
|
+
// test if we can resolve deps from the cache folder
|
|
52
|
+
let isEverythingResolvableFromCacheDir = true;
|
|
53
|
+
const cacheDirReq = _module.default.createRequire(requestsFolder);
|
|
54
|
+
for (const cacheDirDep of modulesToCheck) {
|
|
55
|
+
try {
|
|
56
|
+
cacheDirReq.resolve(cacheDirDep);
|
|
57
|
+
} catch {
|
|
58
|
+
// something is not resolvable from the cache folder, so we should not enable this plugin
|
|
59
|
+
isEverythingResolvableFromCacheDir = false;
|
|
60
|
+
break;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
// test if we can resolve deps from the gatsby package
|
|
65
|
+
let isEverythingResolvableFromGatsbyPackage = true;
|
|
66
|
+
for (const cacheDirDep of modulesToCheck) {
|
|
67
|
+
try {
|
|
68
|
+
require.resolve(cacheDirDep);
|
|
69
|
+
} catch {
|
|
70
|
+
// something is not resolvable from the gatsby package
|
|
71
|
+
isEverythingResolvableFromGatsbyPackage = false;
|
|
72
|
+
break;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
// we only enable this plugin if we are unable to resolve cache-dir deps from .cache folder
|
|
77
|
+
// and we can resolve them from gatsby package
|
|
78
|
+
if (!isEverythingResolvableFromCacheDir && isEverythingResolvableFromGatsbyPackage) {
|
|
79
|
+
this.isEnabled = true;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
apply(resolver) {
|
|
84
|
+
if (!this.isEnabled) {
|
|
85
|
+
return;
|
|
86
|
+
}
|
|
87
|
+
const target = resolver.ensureHook(`raw-module`);
|
|
88
|
+
resolver.getHook(`raw-module`).tapAsync(`CacheFolderResolver`, (request, resolveContext, callback) => {
|
|
89
|
+
const req = request.request;
|
|
90
|
+
if (!req) {
|
|
91
|
+
return callback();
|
|
92
|
+
}
|
|
93
|
+
if (!request.path.startsWith(this.requestsFolder)) {
|
|
94
|
+
return callback();
|
|
95
|
+
}
|
|
96
|
+
const packageMatch = /^(@[^/]+\/)?[^/]+/.exec(req);
|
|
97
|
+
if (!packageMatch) {
|
|
98
|
+
return callback();
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
// We change the issuer but keep everything as is and re-run resolve
|
|
102
|
+
const obj = {
|
|
103
|
+
...request,
|
|
104
|
+
path: __dirname
|
|
105
|
+
};
|
|
106
|
+
return resolver.doResolve(target, obj, `change issuer to gatsby package by cache-folder-resolver to fix pnp`, resolveContext, callback);
|
|
107
|
+
});
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
exports.CacheFolderResolver = CacheFolderResolver;
|
|
111
|
+
//# sourceMappingURL=cache-folder-resolver.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cache-folder-resolver.js","names":["CacheFolderResolver","isEnabled","constructor","requestsFolder","process","versions","pnp","test","env","NODE_PATH","modulesToCheck","isEverythingResolvableFromCacheDir","cacheDirReq","mod","createRequire","cacheDirDep","resolve","isEverythingResolvableFromGatsbyPackage","require","apply","resolver","target","ensureHook","getHook","tapAsync","request","resolveContext","callback","req","path","startsWith","packageMatch","exec","obj","__dirname","doResolve"],"sources":["../../../../src/utils/webpack/plugins/cache-folder-resolver.ts"],"sourcesContent":["import Resolver from \"enhanced-resolve/lib/Resolver\"\nimport mod from \"module\"\n\ninterface IRequest {\n request?: string\n path: string\n}\n\ntype ProcessWithPNP = NodeJS.ProcessVersions & { pnp?: string }\n\n/**\n * To support Yarn PNP and pnpm we have to make sure dependencies resolved from\n * the .cache folder should be resolved from the gatsby package directory\n * If you see error like\n *\n * ModuleNotFoundError: Module not found: Error: Can't resolve 'prop-types'\n * in 'site-directory/.cache'\n *\n * it probably means this plugin is not enabled when it should be and there\n * might be need to adjust conditions for setting `this.isEnabled` in the\n * constructor.\n *\n * It's not enabled always because of legacy behavior and to limit potential\n * regressions. Might be good idea to enable it always in the future\n * OR remove the need for the plugin completely by not copying `cache-dir`\n * contents to `.cache` folder and instead adjust setup to use those browser/node\n * html renderer runtime files directly from gatsby package\n */\nexport class CacheFolderResolver {\n private requestsFolder: string\n private isEnabled = false\n\n constructor(requestsFolder: string) {\n this.requestsFolder = requestsFolder\n\n if ((process.versions as ProcessWithPNP).pnp) {\n // Yarn PnP\n this.isEnabled = true\n } else if (/node_modules[/\\\\]\\.pnpm/.test(process.env.NODE_PATH ?? ``)) {\n // pnpm when executing through `pnpm` CLI\n this.isEnabled = true\n } else {\n // pnpm when executing through regular `gatsby` CLI / `./node_modules/.bin/gatsby`\n // would not set NODE_PATH, but node_modules structure would not allow to resolve\n // gatsby deps from the cache folder (unless user would install same deps too)\n // so we are checking if we can resolve deps from the cache folder\n // this check is not limited to pnpm and other package managers could hit this path too\n\n // Hardcoded list of gatsby deps used in gatsby browser and ssr runtimes\n // instead of checking if we use Yarn PnP (via `process.versions.pnp`),\n // we check if we can resolve the external deps from the cache-dir folder\n // to know if we need to enable this plugin so we also cover pnpm\n // It might be good idea to always enable it overall, but to limit potential\n // regressions we only enable it if we are sure we need it.\n const modulesToCheck = [\n `prop-types`,\n `lodash/isEqual`,\n `mitt`,\n `shallow-compare`,\n `@gatsbyjs/reach-router`,\n `gatsby-react-router-scroll`,\n `react-server-dom-webpack`,\n `gatsby-link`,\n ]\n\n // test if we can resolve deps from the cache folder\n let isEverythingResolvableFromCacheDir = true\n const cacheDirReq = mod.createRequire(requestsFolder)\n for (const cacheDirDep of modulesToCheck) {\n try {\n cacheDirReq.resolve(cacheDirDep)\n } catch {\n // something is not resolvable from the cache folder, so we should not enable this plugin\n isEverythingResolvableFromCacheDir = false\n break\n }\n }\n\n // test if we can resolve deps from the gatsby package\n let isEverythingResolvableFromGatsbyPackage = true\n for (const cacheDirDep of modulesToCheck) {\n try {\n require.resolve(cacheDirDep)\n } catch {\n // something is not resolvable from the gatsby package\n isEverythingResolvableFromGatsbyPackage = false\n break\n }\n }\n\n // we only enable this plugin if we are unable to resolve cache-dir deps from .cache folder\n // and we can resolve them from gatsby package\n if (\n !isEverythingResolvableFromCacheDir &&\n isEverythingResolvableFromGatsbyPackage\n ) {\n this.isEnabled = true\n }\n }\n }\n\n apply(resolver: Resolver): void {\n if (!this.isEnabled) {\n return\n }\n\n const target = resolver.ensureHook(`raw-module`)\n resolver\n .getHook(`raw-module`)\n .tapAsync(\n `CacheFolderResolver`,\n (\n request: IRequest,\n resolveContext: unknown,\n callback: (err?: Error | null, result?: unknown) => void\n ) => {\n const req = request.request\n if (!req) {\n return callback()\n }\n\n if (!request.path.startsWith(this.requestsFolder)) {\n return callback()\n }\n\n const packageMatch = /^(@[^/]+\\/)?[^/]+/.exec(req)\n if (!packageMatch) {\n return callback()\n }\n\n // We change the issuer but keep everything as is and re-run resolve\n const obj = {\n ...request,\n path: __dirname,\n }\n\n return resolver.doResolve(\n target,\n obj,\n `change issuer to gatsby package by cache-folder-resolver to fix pnp`,\n resolveContext,\n callback\n )\n }\n )\n }\n}\n"],"mappings":";;;;;AACA;AASA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,MAAMA,mBAAmB,CAAC;EAEvBC,SAAS,GAAG,KAAK;EAEzBC,WAAW,CAACC,cAAsB,EAAE;IAAA;IAClC,IAAI,CAACA,cAAc,GAAGA,cAAc;IAEpC,IAAKC,OAAO,CAACC,QAAQ,CAAoBC,GAAG,EAAE;MAC5C;MACA,IAAI,CAACL,SAAS,GAAG,IAAI;IACvB,CAAC,MAAM,IAAI,yBAAyB,CAACM,IAAI,0BAACH,OAAO,CAACI,GAAG,CAACC,SAAS,yEAAK,EAAC,CAAC,EAAE;MACtE;MACA,IAAI,CAACR,SAAS,GAAG,IAAI;IACvB,CAAC,MAAM;MACL;MACA;MACA;MACA;MACA;;MAEA;MACA;MACA;MACA;MACA;MACA;MACA,MAAMS,cAAc,GAAG,CACpB,YAAW,EACX,gBAAe,EACf,MAAK,EACL,iBAAgB,EAChB,wBAAuB,EACvB,4BAA2B,EAC3B,0BAAyB,EACzB,aAAY,CACd;;MAED;MACA,IAAIC,kCAAkC,GAAG,IAAI;MAC7C,MAAMC,WAAW,GAAGC,eAAG,CAACC,aAAa,CAACX,cAAc,CAAC;MACrD,KAAK,MAAMY,WAAW,IAAIL,cAAc,EAAE;QACxC,IAAI;UACFE,WAAW,CAACI,OAAO,CAACD,WAAW,CAAC;QAClC,CAAC,CAAC,MAAM;UACN;UACAJ,kCAAkC,GAAG,KAAK;UAC1C;QACF;MACF;;MAEA;MACA,IAAIM,uCAAuC,GAAG,IAAI;MAClD,KAAK,MAAMF,WAAW,IAAIL,cAAc,EAAE;QACxC,IAAI;UACFQ,OAAO,CAACF,OAAO,CAACD,WAAW,CAAC;QAC9B,CAAC,CAAC,MAAM;UACN;UACAE,uCAAuC,GAAG,KAAK;UAC/C;QACF;MACF;;MAEA;MACA;MACA,IACE,CAACN,kCAAkC,IACnCM,uCAAuC,EACvC;QACA,IAAI,CAAChB,SAAS,GAAG,IAAI;MACvB;IACF;EACF;EAEAkB,KAAK,CAACC,QAAkB,EAAQ;IAC9B,IAAI,CAAC,IAAI,CAACnB,SAAS,EAAE;MACnB;IACF;IAEA,MAAMoB,MAAM,GAAGD,QAAQ,CAACE,UAAU,CAAE,YAAW,CAAC;IAChDF,QAAQ,CACLG,OAAO,CAAE,YAAW,CAAC,CACrBC,QAAQ,CACN,qBAAoB,EACrB,CACEC,OAAiB,EACjBC,cAAuB,EACvBC,QAAwD,KACrD;MACH,MAAMC,GAAG,GAAGH,OAAO,CAACA,OAAO;MAC3B,IAAI,CAACG,GAAG,EAAE;QACR,OAAOD,QAAQ,EAAE;MACnB;MAEA,IAAI,CAACF,OAAO,CAACI,IAAI,CAACC,UAAU,CAAC,IAAI,CAAC3B,cAAc,CAAC,EAAE;QACjD,OAAOwB,QAAQ,EAAE;MACnB;MAEA,MAAMI,YAAY,GAAG,mBAAmB,CAACC,IAAI,CAACJ,GAAG,CAAC;MAClD,IAAI,CAACG,YAAY,EAAE;QACjB,OAAOJ,QAAQ,EAAE;MACnB;;MAEA;MACA,MAAMM,GAAG,GAAG;QACV,GAAGR,OAAO;QACVI,IAAI,EAAEK;MACR,CAAC;MAED,OAAOd,QAAQ,CAACe,SAAS,CACvBd,MAAM,EACNY,GAAG,EACF,qEAAoE,EACrEP,cAAc,EACdC,QAAQ,CACT;IACH,CAAC,CACF;EACL;AACF;AAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import Resolver from "enhanced-resolve/lib/Resolver";
|
|
2
|
+
/**
|
|
3
|
+
* Babel-preset is set to corejs@3 which will add automatic polyfills. If a project has core-js@2 installed in their root or a package got compiled with core-js@2
|
|
4
|
+
* we need to convert it to corejs@3 because core-js@2 isn't available or we might add multiple polyfills for the same problem.
|
|
5
|
+
*
|
|
6
|
+
* The resolver converts core-js@2 imports to core-js@3 imports to make our bundle as small as possible.
|
|
7
|
+
*/
|
|
8
|
+
export declare class CoreJSResolver {
|
|
9
|
+
_coreJSNodeModulesPath: string;
|
|
10
|
+
constructor();
|
|
11
|
+
apply(resolver: Resolver): void;
|
|
12
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
exports.__esModule = true;
|
|
5
|
+
exports.CoreJSResolver = void 0;
|
|
6
|
+
var _path = _interopRequireDefault(require("path"));
|
|
7
|
+
// Core-js uses es6, es7 & web prefixes, which we'll convert to core-js 3
|
|
8
|
+
const coreJs2FileRegex = /\/modules\/(es6|es7|web)\.|\/es6\/|\/es7\//;
|
|
9
|
+
|
|
10
|
+
// Try to replace core-js2 files to core-js@3 to reduce file size
|
|
11
|
+
const replaceMap = [[`/es6.`, `/es.`], [`/es7.`, `/es.`], [`/es6/`, `/es/`], [`/es7/`, `/es/`], [`/es7/`, `/es/`], [`web.dom.iterable`, `web.dom-collections.iterator.js`], [`typed.data-view`, `data-view`], [`regexp.match`, `string.match`], [`regexp.replace`, `string.replace`], [`regexp.search`, `string.search`], [`regexp.split`, `string.split`]];
|
|
12
|
+
/**
|
|
13
|
+
* Babel-preset is set to corejs@3 which will add automatic polyfills. If a project has core-js@2 installed in their root or a package got compiled with core-js@2
|
|
14
|
+
* we need to convert it to corejs@3 because core-js@2 isn't available or we might add multiple polyfills for the same problem.
|
|
15
|
+
*
|
|
16
|
+
* The resolver converts core-js@2 imports to core-js@3 imports to make our bundle as small as possible.
|
|
17
|
+
*/
|
|
18
|
+
class CoreJSResolver {
|
|
19
|
+
constructor() {
|
|
20
|
+
// Get the nodemodules directory where core-js of gatsby lives
|
|
21
|
+
// it might be inside gatsby/node_modules when multiple core-js versions are loaded
|
|
22
|
+
this._coreJSNodeModulesPath = _path.default.dirname(_path.default.dirname(require.resolve(`core-js`)));
|
|
23
|
+
}
|
|
24
|
+
apply(resolver) {
|
|
25
|
+
const target = resolver.ensureHook(`resolve`);
|
|
26
|
+
const coreJsModulePath = this._coreJSNodeModulesPath;
|
|
27
|
+
function resolve(request, resolveContext, callback) {
|
|
28
|
+
const innerRequest = request.request || request.path;
|
|
29
|
+
|
|
30
|
+
// we only care about core-js
|
|
31
|
+
if (!innerRequest || !innerRequest.startsWith(`core-js/`)) {
|
|
32
|
+
return void callback();
|
|
33
|
+
}
|
|
34
|
+
let coreJsRequest = innerRequest;
|
|
35
|
+
let resolveMessage = `alias core-js@3 to gatsby's core-js package`;
|
|
36
|
+
|
|
37
|
+
// preset-env adds packages from modules/ so we rewrite them to our gatsby package
|
|
38
|
+
if (coreJs2FileRegex.test(coreJsRequest)) {
|
|
39
|
+
replaceMap.forEach(([search, replace]) => {
|
|
40
|
+
coreJsRequest = coreJsRequest.replace(search, replace);
|
|
41
|
+
});
|
|
42
|
+
resolveMessage = `map core-js@2(${innerRequest}) to corejs@3(${coreJsRequest})`;
|
|
43
|
+
}
|
|
44
|
+
return void resolver.doResolve(target, {
|
|
45
|
+
...request,
|
|
46
|
+
request: _path.default.resolve(coreJsModulePath, coreJsRequest)
|
|
47
|
+
}, resolveMessage, resolveContext, (err, result) => {
|
|
48
|
+
if (err) {
|
|
49
|
+
return callback(err);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
// if a rename fails we try to load the original file
|
|
53
|
+
// this could error when our mapping isn't complete. I've tested this on a couple of sites
|
|
54
|
+
// and couldn't find anything but you never know.
|
|
55
|
+
if (result === undefined) {
|
|
56
|
+
return callback();
|
|
57
|
+
}
|
|
58
|
+
return callback(null, result);
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
resolver.getHook(`described-resolve`).tapAsync(`CoreJSResolver`, resolve);
|
|
62
|
+
resolver.getHook(`file`).tapAsync(`CoreJSResolver`, resolve);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
exports.CoreJSResolver = CoreJSResolver;
|
|
66
|
+
//# sourceMappingURL=corejs-resolver.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"corejs-resolver.js","names":["coreJs2FileRegex","replaceMap","CoreJSResolver","constructor","_coreJSNodeModulesPath","path","dirname","require","resolve","apply","resolver","target","ensureHook","coreJsModulePath","request","resolveContext","callback","innerRequest","startsWith","coreJsRequest","resolveMessage","test","forEach","search","replace","doResolve","err","result","undefined","getHook","tapAsync"],"sources":["../../../../src/utils/webpack/plugins/corejs-resolver.ts"],"sourcesContent":["import Resolver from \"enhanced-resolve/lib/Resolver\"\nimport path from \"path\"\n\n// Core-js uses es6, es7 & web prefixes, which we'll convert to core-js 3\nconst coreJs2FileRegex = /\\/modules\\/(es6|es7|web)\\.|\\/es6\\/|\\/es7\\//\n\n// Try to replace core-js2 files to core-js@3 to reduce file size\nconst replaceMap = [\n [`/es6.`, `/es.`],\n [`/es7.`, `/es.`],\n [`/es6/`, `/es/`],\n [`/es7/`, `/es/`],\n [`/es7/`, `/es/`],\n [`web.dom.iterable`, `web.dom-collections.iterator.js`],\n [`typed.data-view`, `data-view`],\n [`regexp.match`, `string.match`],\n [`regexp.replace`, `string.replace`],\n [`regexp.search`, `string.search`],\n [`regexp.split`, `string.split`],\n]\n\ninterface IRequest {\n request?: string\n path: string\n}\n\n/**\n * Babel-preset is set to corejs@3 which will add automatic polyfills. If a project has core-js@2 installed in their root or a package got compiled with core-js@2\n * we need to convert it to corejs@3 because core-js@2 isn't available or we might add multiple polyfills for the same problem.\n *\n * The resolver converts core-js@2 imports to core-js@3 imports to make our bundle as small as possible.\n */\nexport class CoreJSResolver {\n _coreJSNodeModulesPath: string\n\n constructor() {\n // Get the nodemodules directory where core-js of gatsby lives\n // it might be inside gatsby/node_modules when multiple core-js versions are loaded\n this._coreJSNodeModulesPath = path.dirname(\n path.dirname(require.resolve(`core-js`))\n )\n }\n\n apply(resolver: Resolver): void {\n const target = resolver.ensureHook(`resolve`)\n const coreJsModulePath = this._coreJSNodeModulesPath\n\n function resolve(\n request: IRequest,\n resolveContext: unknown,\n callback: (err?: Error | null, result?: unknown) => void\n ): void {\n const innerRequest = request.request || request.path\n\n // we only care about core-js\n if (!innerRequest || !innerRequest.startsWith(`core-js/`)) {\n return void callback()\n }\n\n let coreJsRequest = innerRequest\n let resolveMessage = `alias core-js@3 to gatsby's core-js package`\n\n // preset-env adds packages from modules/ so we rewrite them to our gatsby package\n if (coreJs2FileRegex.test(coreJsRequest)) {\n replaceMap.forEach(([search, replace]) => {\n coreJsRequest = coreJsRequest.replace(search, replace)\n })\n\n resolveMessage = `map core-js@2(${innerRequest}) to corejs@3(${coreJsRequest})`\n }\n\n return void resolver.doResolve(\n target,\n {\n ...request,\n request: path.resolve(coreJsModulePath, coreJsRequest),\n },\n resolveMessage,\n resolveContext,\n (err, result) => {\n if (err) {\n return callback(err)\n }\n\n // if a rename fails we try to load the original file\n // this could error when our mapping isn't complete. I've tested this on a couple of sites\n // and couldn't find anything but you never know.\n if (result === undefined) {\n return callback()\n }\n\n return callback(null, result)\n }\n )\n }\n\n resolver.getHook(`described-resolve`).tapAsync(`CoreJSResolver`, resolve)\n resolver.getHook(`file`).tapAsync(`CoreJSResolver`, resolve)\n }\n}\n"],"mappings":";;;;;AACA;AAEA;AACA,MAAMA,gBAAgB,GAAG,4CAA4C;;AAErE;AACA,MAAMC,UAAU,GAAG,CACjB,CAAE,OAAM,EAAG,MAAK,CAAC,EACjB,CAAE,OAAM,EAAG,MAAK,CAAC,EACjB,CAAE,OAAM,EAAG,MAAK,CAAC,EACjB,CAAE,OAAM,EAAG,MAAK,CAAC,EACjB,CAAE,OAAM,EAAG,MAAK,CAAC,EACjB,CAAE,kBAAiB,EAAG,iCAAgC,CAAC,EACvD,CAAE,iBAAgB,EAAG,WAAU,CAAC,EAChC,CAAE,cAAa,EAAG,cAAa,CAAC,EAChC,CAAE,gBAAe,EAAG,gBAAe,CAAC,EACpC,CAAE,eAAc,EAAG,eAAc,CAAC,EAClC,CAAE,cAAa,EAAG,cAAa,CAAC,CACjC;AAOD;AACA;AACA;AACA;AACA;AACA;AACO,MAAMC,cAAc,CAAC;EAG1BC,WAAW,GAAG;IACZ;IACA;IACA,IAAI,CAACC,sBAAsB,GAAGC,aAAI,CAACC,OAAO,CACxCD,aAAI,CAACC,OAAO,CAACC,OAAO,CAACC,OAAO,CAAE,SAAQ,CAAC,CAAC,CACzC;EACH;EAEAC,KAAK,CAACC,QAAkB,EAAQ;IAC9B,MAAMC,MAAM,GAAGD,QAAQ,CAACE,UAAU,CAAE,SAAQ,CAAC;IAC7C,MAAMC,gBAAgB,GAAG,IAAI,CAACT,sBAAsB;IAEpD,SAASI,OAAO,CACdM,OAAiB,EACjBC,cAAuB,EACvBC,QAAwD,EAClD;MACN,MAAMC,YAAY,GAAGH,OAAO,CAACA,OAAO,IAAIA,OAAO,CAACT,IAAI;;MAEpD;MACA,IAAI,CAACY,YAAY,IAAI,CAACA,YAAY,CAACC,UAAU,CAAE,UAAS,CAAC,EAAE;QACzD,OAAO,KAAKF,QAAQ,EAAE;MACxB;MAEA,IAAIG,aAAa,GAAGF,YAAY;MAChC,IAAIG,cAAc,GAAI,6CAA4C;;MAElE;MACA,IAAIpB,gBAAgB,CAACqB,IAAI,CAACF,aAAa,CAAC,EAAE;QACxClB,UAAU,CAACqB,OAAO,CAAC,CAAC,CAACC,MAAM,EAAEC,OAAO,CAAC,KAAK;UACxCL,aAAa,GAAGA,aAAa,CAACK,OAAO,CAACD,MAAM,EAAEC,OAAO,CAAC;QACxD,CAAC,CAAC;QAEFJ,cAAc,GAAI,iBAAgBH,YAAa,iBAAgBE,aAAc,GAAE;MACjF;MAEA,OAAO,KAAKT,QAAQ,CAACe,SAAS,CAC5Bd,MAAM,EACN;QACE,GAAGG,OAAO;QACVA,OAAO,EAAET,aAAI,CAACG,OAAO,CAACK,gBAAgB,EAAEM,aAAa;MACvD,CAAC,EACDC,cAAc,EACdL,cAAc,EACd,CAACW,GAAG,EAAEC,MAAM,KAAK;QACf,IAAID,GAAG,EAAE;UACP,OAAOV,QAAQ,CAACU,GAAG,CAAC;QACtB;;QAEA;QACA;QACA;QACA,IAAIC,MAAM,KAAKC,SAAS,EAAE;UACxB,OAAOZ,QAAQ,EAAE;QACnB;QAEA,OAAOA,QAAQ,CAAC,IAAI,EAAEW,MAAM,CAAC;MAC/B,CAAC,CACF;IACH;IAEAjB,QAAQ,CAACmB,OAAO,CAAE,mBAAkB,CAAC,CAACC,QAAQ,CAAE,gBAAe,EAAEtB,OAAO,CAAC;IACzEE,QAAQ,CAACmB,OAAO,CAAE,MAAK,CAAC,CAACC,QAAQ,CAAE,gBAAe,EAAEtB,OAAO,CAAC;EAC9D;AACF;AAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Compiler } from "webpack";
|
|
2
|
+
/**
|
|
3
|
+
* This is total hack that is meant to handle:
|
|
4
|
+
* - https://github.com/webpack-contrib/mini-css-extract-plugin/issues/706
|
|
5
|
+
* - https://github.com/webpack-contrib/mini-css-extract-plugin/issues/708
|
|
6
|
+
* The way it works it is looking up what HotModuleReplacementPlugin checks internally
|
|
7
|
+
* and tricks it by checking up if any modules that uses mini-css-extract-plugin
|
|
8
|
+
* changed or was newly added and then modifying blank.css hash.
|
|
9
|
+
* blank.css is css module that is used by all pages and is there from the start
|
|
10
|
+
* so changing hash of that _should_ ensure that:
|
|
11
|
+
* - when new css is imported it will reload css
|
|
12
|
+
* - when css imported by not loaded (by runtime) page template changes it will reload css
|
|
13
|
+
*/
|
|
14
|
+
export declare class ForceCssHMRForEdgeCases {
|
|
15
|
+
private name;
|
|
16
|
+
private originalBlankCssHash;
|
|
17
|
+
private blankCssKey;
|
|
18
|
+
private hackCounter;
|
|
19
|
+
private previouslySeenCss;
|
|
20
|
+
constructor();
|
|
21
|
+
apply(compiler: Compiler): void;
|
|
22
|
+
}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
exports.__esModule = true;
|
|
4
|
+
exports.ForceCssHMRForEdgeCases = void 0;
|
|
5
|
+
/**
|
|
6
|
+
* This is total hack that is meant to handle:
|
|
7
|
+
* - https://github.com/webpack-contrib/mini-css-extract-plugin/issues/706
|
|
8
|
+
* - https://github.com/webpack-contrib/mini-css-extract-plugin/issues/708
|
|
9
|
+
* The way it works it is looking up what HotModuleReplacementPlugin checks internally
|
|
10
|
+
* and tricks it by checking up if any modules that uses mini-css-extract-plugin
|
|
11
|
+
* changed or was newly added and then modifying blank.css hash.
|
|
12
|
+
* blank.css is css module that is used by all pages and is there from the start
|
|
13
|
+
* so changing hash of that _should_ ensure that:
|
|
14
|
+
* - when new css is imported it will reload css
|
|
15
|
+
* - when css imported by not loaded (by runtime) page template changes it will reload css
|
|
16
|
+
*/
|
|
17
|
+
class ForceCssHMRForEdgeCases {
|
|
18
|
+
hackCounter = 0;
|
|
19
|
+
previouslySeenCss = new Set();
|
|
20
|
+
constructor() {
|
|
21
|
+
this.name = `ForceCssHMRForEdgeCases`;
|
|
22
|
+
}
|
|
23
|
+
apply(compiler) {
|
|
24
|
+
compiler.hooks.thisCompilation.tap(this.name, compilation => {
|
|
25
|
+
compilation.hooks.fullHash.tap(this.name, () => {
|
|
26
|
+
const chunkGraph = compilation.chunkGraph;
|
|
27
|
+
const records = compilation.records;
|
|
28
|
+
if (!records.chunkModuleHashes) {
|
|
29
|
+
return;
|
|
30
|
+
}
|
|
31
|
+
const seenCssInThisCompilation = new Set();
|
|
32
|
+
/**
|
|
33
|
+
* We will get list of css modules that are removed in this compilation
|
|
34
|
+
* by starting with list of css used in last compilation and removing
|
|
35
|
+
* all modules that are used in this one.
|
|
36
|
+
*/
|
|
37
|
+
const cssRemovedInThisCompilation = this.previouslySeenCss;
|
|
38
|
+
let newOrUpdatedCss = false;
|
|
39
|
+
for (const chunk of compilation.chunks) {
|
|
40
|
+
const getModuleHash = module => {
|
|
41
|
+
if (compilation.codeGenerationResults.has(module, chunk.runtime)) {
|
|
42
|
+
return compilation.codeGenerationResults.getHash(module, chunk.runtime);
|
|
43
|
+
} else {
|
|
44
|
+
return chunkGraph.getModuleHash(module, chunk.runtime);
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
const modules = chunkGraph.getChunkModulesIterable(chunk);
|
|
48
|
+
if (modules !== undefined) {
|
|
49
|
+
for (const module of modules) {
|
|
50
|
+
var _module$loaders;
|
|
51
|
+
const key = `${chunk.id}|${module.identifier()}`;
|
|
52
|
+
if (!this.originalBlankCssHash &&
|
|
53
|
+
// @ts-ignore - exists on NormalModule but not Module
|
|
54
|
+
module.rawRequest === `./blank.css`) {
|
|
55
|
+
this.blankCssKey = key;
|
|
56
|
+
this.originalBlankCssHash = records.chunkModuleHashes[this.blankCssKey];
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
// @ts-ignore - exists on NormalModule but not Module
|
|
60
|
+
const isUsingMiniCssExtract = (_module$loaders = module.loaders) === null || _module$loaders === void 0 ? void 0 : _module$loaders.find(loader => {
|
|
61
|
+
var _loader$loader;
|
|
62
|
+
return loader === null || loader === void 0 ? void 0 : (_loader$loader = loader.loader) === null || _loader$loader === void 0 ? void 0 : _loader$loader.includes(`mini-css-extract-plugin`);
|
|
63
|
+
});
|
|
64
|
+
if (isUsingMiniCssExtract) {
|
|
65
|
+
seenCssInThisCompilation.add(key);
|
|
66
|
+
cssRemovedInThisCompilation.delete(key);
|
|
67
|
+
const hash = getModuleHash(module);
|
|
68
|
+
if (records.chunkModuleHashes[key] !== hash) {
|
|
69
|
+
newOrUpdatedCss = true;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
// If css file was edited or new css import was added (`newOrUpdatedCss`)
|
|
77
|
+
// or if css import was removed (`cssRemovedInThisCompilation.size > 0`)
|
|
78
|
+
// trick Webpack's HMR into thinking `blank.css` file changed.
|
|
79
|
+
if ((newOrUpdatedCss || cssRemovedInThisCompilation.size > 0) && this.originalBlankCssHash && this.blankCssKey) {
|
|
80
|
+
records.chunkModuleHashes[this.blankCssKey] = this.originalBlankCssHash + String(this.hackCounter++);
|
|
81
|
+
}
|
|
82
|
+
this.previouslySeenCss = seenCssInThisCompilation;
|
|
83
|
+
});
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
exports.ForceCssHMRForEdgeCases = ForceCssHMRForEdgeCases;
|
|
88
|
+
//# sourceMappingURL=force-css-hmr-for-edge-cases.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"force-css-hmr-for-edge-cases.js","names":["ForceCssHMRForEdgeCases","hackCounter","previouslySeenCss","Set","constructor","name","apply","compiler","hooks","thisCompilation","tap","compilation","fullHash","chunkGraph","records","chunkModuleHashes","seenCssInThisCompilation","cssRemovedInThisCompilation","newOrUpdatedCss","chunk","chunks","getModuleHash","module","codeGenerationResults","has","runtime","getHash","modules","getChunkModulesIterable","undefined","key","id","identifier","originalBlankCssHash","rawRequest","blankCssKey","isUsingMiniCssExtract","loaders","find","loader","includes","add","delete","hash","size","String"],"sources":["../../../../src/utils/webpack/plugins/force-css-hmr-for-edge-cases.ts"],"sourcesContent":["import { Compiler, Module } from \"webpack\"\n\n/**\n * This is total hack that is meant to handle:\n * - https://github.com/webpack-contrib/mini-css-extract-plugin/issues/706\n * - https://github.com/webpack-contrib/mini-css-extract-plugin/issues/708\n * The way it works it is looking up what HotModuleReplacementPlugin checks internally\n * and tricks it by checking up if any modules that uses mini-css-extract-plugin\n * changed or was newly added and then modifying blank.css hash.\n * blank.css is css module that is used by all pages and is there from the start\n * so changing hash of that _should_ ensure that:\n * - when new css is imported it will reload css\n * - when css imported by not loaded (by runtime) page template changes it will reload css\n */\nexport class ForceCssHMRForEdgeCases {\n private name: string\n private originalBlankCssHash: string | undefined\n private blankCssKey: string | undefined\n private hackCounter = 0\n private previouslySeenCss: Set<string> = new Set<string>()\n\n constructor() {\n this.name = `ForceCssHMRForEdgeCases`\n }\n\n apply(compiler: Compiler): void {\n compiler.hooks.thisCompilation.tap(this.name, compilation => {\n compilation.hooks.fullHash.tap(this.name, () => {\n const chunkGraph = compilation.chunkGraph\n const records = compilation.records\n\n if (!records.chunkModuleHashes) {\n return\n }\n\n const seenCssInThisCompilation = new Set<string>()\n /**\n * We will get list of css modules that are removed in this compilation\n * by starting with list of css used in last compilation and removing\n * all modules that are used in this one.\n */\n const cssRemovedInThisCompilation = this.previouslySeenCss\n\n let newOrUpdatedCss = false\n\n for (const chunk of compilation.chunks) {\n const getModuleHash = (module: Module): string => {\n if (compilation.codeGenerationResults.has(module, chunk.runtime)) {\n return compilation.codeGenerationResults.getHash(\n module,\n chunk.runtime\n )\n } else {\n return chunkGraph.getModuleHash(module, chunk.runtime)\n }\n }\n\n const modules = chunkGraph.getChunkModulesIterable(chunk)\n\n if (modules !== undefined) {\n for (const module of modules) {\n const key = `${chunk.id}|${module.identifier()}`\n\n if (\n !this.originalBlankCssHash &&\n // @ts-ignore - exists on NormalModule but not Module\n module.rawRequest === `./blank.css`\n ) {\n this.blankCssKey = key\n this.originalBlankCssHash =\n records.chunkModuleHashes[this.blankCssKey]\n }\n\n // @ts-ignore - exists on NormalModule but not Module\n const isUsingMiniCssExtract = module.loaders?.find(loader =>\n loader?.loader?.includes(`mini-css-extract-plugin`)\n )\n\n if (isUsingMiniCssExtract) {\n seenCssInThisCompilation.add(key)\n cssRemovedInThisCompilation.delete(key)\n\n const hash = getModuleHash(module)\n if (records.chunkModuleHashes[key] !== hash) {\n newOrUpdatedCss = true\n }\n }\n }\n }\n }\n\n // If css file was edited or new css import was added (`newOrUpdatedCss`)\n // or if css import was removed (`cssRemovedInThisCompilation.size > 0`)\n // trick Webpack's HMR into thinking `blank.css` file changed.\n if (\n (newOrUpdatedCss || cssRemovedInThisCompilation.size > 0) &&\n this.originalBlankCssHash &&\n this.blankCssKey\n ) {\n records.chunkModuleHashes[this.blankCssKey] =\n this.originalBlankCssHash + String(this.hackCounter++)\n }\n\n this.previouslySeenCss = seenCssInThisCompilation\n })\n })\n }\n}\n"],"mappings":";;;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,MAAMA,uBAAuB,CAAC;EAI3BC,WAAW,GAAG,CAAC;EACfC,iBAAiB,GAAgB,IAAIC,GAAG,EAAU;EAE1DC,WAAW,GAAG;IACZ,IAAI,CAACC,IAAI,GAAI,yBAAwB;EACvC;EAEAC,KAAK,CAACC,QAAkB,EAAQ;IAC9BA,QAAQ,CAACC,KAAK,CAACC,eAAe,CAACC,GAAG,CAAC,IAAI,CAACL,IAAI,EAAEM,WAAW,IAAI;MAC3DA,WAAW,CAACH,KAAK,CAACI,QAAQ,CAACF,GAAG,CAAC,IAAI,CAACL,IAAI,EAAE,MAAM;QAC9C,MAAMQ,UAAU,GAAGF,WAAW,CAACE,UAAU;QACzC,MAAMC,OAAO,GAAGH,WAAW,CAACG,OAAO;QAEnC,IAAI,CAACA,OAAO,CAACC,iBAAiB,EAAE;UAC9B;QACF;QAEA,MAAMC,wBAAwB,GAAG,IAAIb,GAAG,EAAU;QAClD;AACR;AACA;AACA;AACA;QACQ,MAAMc,2BAA2B,GAAG,IAAI,CAACf,iBAAiB;QAE1D,IAAIgB,eAAe,GAAG,KAAK;QAE3B,KAAK,MAAMC,KAAK,IAAIR,WAAW,CAACS,MAAM,EAAE;UACtC,MAAMC,aAAa,GAAIC,MAAc,IAAa;YAChD,IAAIX,WAAW,CAACY,qBAAqB,CAACC,GAAG,CAACF,MAAM,EAAEH,KAAK,CAACM,OAAO,CAAC,EAAE;cAChE,OAAOd,WAAW,CAACY,qBAAqB,CAACG,OAAO,CAC9CJ,MAAM,EACNH,KAAK,CAACM,OAAO,CACd;YACH,CAAC,MAAM;cACL,OAAOZ,UAAU,CAACQ,aAAa,CAACC,MAAM,EAAEH,KAAK,CAACM,OAAO,CAAC;YACxD;UACF,CAAC;UAED,MAAME,OAAO,GAAGd,UAAU,CAACe,uBAAuB,CAACT,KAAK,CAAC;UAEzD,IAAIQ,OAAO,KAAKE,SAAS,EAAE;YACzB,KAAK,MAAMP,MAAM,IAAIK,OAAO,EAAE;cAAA;cAC5B,MAAMG,GAAG,GAAI,GAAEX,KAAK,CAACY,EAAG,IAAGT,MAAM,CAACU,UAAU,EAAG,EAAC;cAEhD,IACE,CAAC,IAAI,CAACC,oBAAoB;cAC1B;cACAX,MAAM,CAACY,UAAU,KAAM,aAAY,EACnC;gBACA,IAAI,CAACC,WAAW,GAAGL,GAAG;gBACtB,IAAI,CAACG,oBAAoB,GACvBnB,OAAO,CAACC,iBAAiB,CAAC,IAAI,CAACoB,WAAW,CAAC;cAC/C;;cAEA;cACA,MAAMC,qBAAqB,sBAAGd,MAAM,CAACe,OAAO,oDAAd,gBAAgBC,IAAI,CAACC,MAAM;gBAAA;gBAAA,OACvDA,MAAM,aAANA,MAAM,yCAANA,MAAM,CAAEA,MAAM,mDAAd,eAAgBC,QAAQ,CAAE,yBAAwB,CAAC;cAAA,EACpD;cAED,IAAIJ,qBAAqB,EAAE;gBACzBpB,wBAAwB,CAACyB,GAAG,CAACX,GAAG,CAAC;gBACjCb,2BAA2B,CAACyB,MAAM,CAACZ,GAAG,CAAC;gBAEvC,MAAMa,IAAI,GAAGtB,aAAa,CAACC,MAAM,CAAC;gBAClC,IAAIR,OAAO,CAACC,iBAAiB,CAACe,GAAG,CAAC,KAAKa,IAAI,EAAE;kBAC3CzB,eAAe,GAAG,IAAI;gBACxB;cACF;YACF;UACF;QACF;;QAEA;QACA;QACA;QACA,IACE,CAACA,eAAe,IAAID,2BAA2B,CAAC2B,IAAI,GAAG,CAAC,KACxD,IAAI,CAACX,oBAAoB,IACzB,IAAI,CAACE,WAAW,EAChB;UACArB,OAAO,CAACC,iBAAiB,CAAC,IAAI,CAACoB,WAAW,CAAC,GACzC,IAAI,CAACF,oBAAoB,GAAGY,MAAM,CAAC,IAAI,CAAC5C,WAAW,EAAE,CAAC;QAC1D;QAEA,IAAI,CAACC,iBAAiB,GAAGc,wBAAwB;MACnD,CAAC,CAAC;IACJ,CAAC,CAAC;EACJ;AACF;AAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import webpack, { Compilation, Compiler } from "webpack";
|
|
2
|
+
import type Reporter from "gatsby-cli/lib/reporter";
|
|
3
|
+
interface IModuleExport {
|
|
4
|
+
id: string;
|
|
5
|
+
chunks: Array<string>;
|
|
6
|
+
name: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const PARTIAL_HYDRATION_CHUNK_REASON = "PartialHydration client module";
|
|
9
|
+
/**
|
|
10
|
+
* inspiration and code mostly comes from https://github.com/facebook/react/blob/3f70e68cea8d2ed0f53d35420105ae20e22ce428/packages/react-server-dom-webpack/src/ReactFlightWebpackPlugin.js
|
|
11
|
+
*/
|
|
12
|
+
export declare class PartialHydrationPlugin {
|
|
13
|
+
name: string;
|
|
14
|
+
_manifestPath: string;
|
|
15
|
+
_reporter: typeof Reporter;
|
|
16
|
+
_collectedCssModules: Set<webpack.Module>;
|
|
17
|
+
_previousManifest: {};
|
|
18
|
+
constructor(manifestPath: string, reporter: typeof Reporter);
|
|
19
|
+
_generateManifest(compilation: Compilation, rootContext: string): Record<string, Record<string, IModuleExport>>;
|
|
20
|
+
addClientModuleEntries(compiler: Compiler, compilation: Compilation): Promise<void>;
|
|
21
|
+
addEntry(compilation: Compilation, context: string, entry: any, options: {
|
|
22
|
+
name: string;
|
|
23
|
+
}): Promise<any>;
|
|
24
|
+
apply(compiler: webpack.Compiler): void;
|
|
25
|
+
}
|
|
26
|
+
export {};
|