@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,81 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
exports.__esModule = true;
|
|
5
|
+
exports.processPlugin = processPlugin;
|
|
6
|
+
var _merge2 = _interopRequireDefault(require("lodash/merge"));
|
|
7
|
+
var _set2 = _interopRequireDefault(require("lodash/set"));
|
|
8
|
+
var _isEmpty2 = _interopRequireDefault(require("lodash/isEmpty"));
|
|
9
|
+
var _isString2 = _interopRequireDefault(require("lodash/isString"));
|
|
10
|
+
var _createId = require("./utils/create-id");
|
|
11
|
+
var _resolvePlugin = require("./resolve-plugin");
|
|
12
|
+
function processPlugin(plugin, rootDir) {
|
|
13
|
+
// Respect the directory that the plugin was sourced from initially
|
|
14
|
+
rootDir = !(0, _isString2.default)(plugin) && plugin.parentDir || rootDir;
|
|
15
|
+
if ((0, _isString2.default)(plugin)) {
|
|
16
|
+
const info = (0, _resolvePlugin.resolvePlugin)(plugin, rootDir);
|
|
17
|
+
return {
|
|
18
|
+
...info,
|
|
19
|
+
pluginOptions: {
|
|
20
|
+
plugins: []
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
plugin.options = plugin.options || {};
|
|
25
|
+
|
|
26
|
+
// Throw an error if there is an "option" key.
|
|
27
|
+
if ((0, _isEmpty2.default)(plugin.options) && !(0, _isEmpty2.default)(plugin.option)) {
|
|
28
|
+
throw new Error(`Plugin "${plugin.resolve}" has an "option" key in the configuration. Did you mean "options"?`);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
// Plugins can have plugins.
|
|
32
|
+
if (plugin.subPluginPaths) {
|
|
33
|
+
for (const subPluginPath of plugin.subPluginPaths) {
|
|
34
|
+
const segments = subPluginPath.split(`.`);
|
|
35
|
+
let roots = [plugin.options];
|
|
36
|
+
let pathToSwap = segments;
|
|
37
|
+
for (const segment of segments) {
|
|
38
|
+
if (segment === `[]`) {
|
|
39
|
+
pathToSwap = pathToSwap.slice(0, pathToSwap.length - 1);
|
|
40
|
+
roots = roots.flat();
|
|
41
|
+
} else {
|
|
42
|
+
roots = roots.map(root => root[segment]);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
roots = roots.flat();
|
|
46
|
+
const processed = [];
|
|
47
|
+
for (const root of roots) {
|
|
48
|
+
const result = processPlugin(root, rootDir);
|
|
49
|
+
processed.push(result);
|
|
50
|
+
}
|
|
51
|
+
(0, _set2.default)(plugin.options, pathToSwap, processed);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
// Add some default values for tests as we don't actually
|
|
56
|
+
// want to try to load anything during tests.
|
|
57
|
+
if (plugin.resolve === `___TEST___`) {
|
|
58
|
+
const name = `TEST`;
|
|
59
|
+
return {
|
|
60
|
+
id: (0, _createId.createPluginId)(name, plugin),
|
|
61
|
+
name,
|
|
62
|
+
version: `0.0.0-test`,
|
|
63
|
+
pluginOptions: {
|
|
64
|
+
plugins: []
|
|
65
|
+
},
|
|
66
|
+
resolve: `__TEST__`
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
const info = (0, _resolvePlugin.resolvePlugin)(plugin, rootDir);
|
|
70
|
+
return {
|
|
71
|
+
...info,
|
|
72
|
+
modulePath: plugin.modulePath,
|
|
73
|
+
module: plugin.module,
|
|
74
|
+
subPluginPaths: plugin.subPluginPaths ? Array.from(plugin.subPluginPaths) : undefined,
|
|
75
|
+
id: (0, _createId.createPluginId)(info.name, plugin),
|
|
76
|
+
pluginOptions: (0, _merge2.default)({
|
|
77
|
+
plugins: []
|
|
78
|
+
}, plugin.options)
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
//# sourceMappingURL=process-plugin.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"process-plugin.js","names":["processPlugin","plugin","rootDir","parentDir","info","resolvePlugin","pluginOptions","plugins","options","option","Error","resolve","subPluginPaths","subPluginPath","segments","split","roots","pathToSwap","segment","slice","length","flat","map","root","processed","result","push","name","id","createPluginId","version","modulePath","module","Array","from","undefined"],"sources":["../../../src/bootstrap/load-plugins/process-plugin.ts"],"sourcesContent":["import { IPluginInfo, PluginRef } from \"./types\"\nimport { createPluginId } from \"./utils/create-id\"\nimport { resolvePlugin } from \"./resolve-plugin\"\nimport { isString, isEmpty, set, merge } from \"lodash\"\n\nexport function processPlugin(plugin: PluginRef, rootDir: string): IPluginInfo {\n // Respect the directory that the plugin was sourced from initially\n rootDir = (!isString(plugin) && plugin.parentDir) || rootDir\n\n if (isString(plugin)) {\n const info = resolvePlugin(plugin, rootDir)\n\n return {\n ...info,\n pluginOptions: {\n plugins: [],\n },\n }\n }\n\n plugin.options = plugin.options || {}\n\n // Throw an error if there is an \"option\" key.\n if (\n isEmpty(plugin.options) &&\n !isEmpty((plugin as { option?: unknown }).option)\n ) {\n throw new Error(\n `Plugin \"${plugin.resolve}\" has an \"option\" key in the configuration. Did you mean \"options\"?`\n )\n }\n\n // Plugins can have plugins.\n if (plugin.subPluginPaths) {\n for (const subPluginPath of plugin.subPluginPaths) {\n const segments = subPluginPath.split(`.`)\n let roots: Array<any> = [plugin.options]\n\n let pathToSwap = segments\n\n for (const segment of segments) {\n if (segment === `[]`) {\n pathToSwap = pathToSwap.slice(0, pathToSwap.length - 1)\n roots = roots.flat()\n } else {\n roots = roots.map(root => root[segment])\n }\n }\n roots = roots.flat()\n\n const processed: Array<IPluginInfo> = []\n\n for (const root of roots) {\n const result = processPlugin(root, rootDir)\n processed.push(result)\n }\n\n set(plugin.options, pathToSwap, processed)\n }\n }\n\n // Add some default values for tests as we don't actually\n // want to try to load anything during tests.\n if (plugin.resolve === `___TEST___`) {\n const name = `TEST`\n\n return {\n id: createPluginId(name, plugin),\n name,\n version: `0.0.0-test`,\n pluginOptions: {\n plugins: [],\n },\n resolve: `__TEST__`,\n }\n }\n\n const info = resolvePlugin(plugin, rootDir)\n\n return {\n ...info,\n modulePath: plugin.modulePath,\n module: plugin.module,\n subPluginPaths: plugin.subPluginPaths\n ? Array.from(plugin.subPluginPaths)\n : undefined,\n id: createPluginId(info.name, plugin),\n pluginOptions: merge({ plugins: [] }, plugin.options),\n }\n}\n"],"mappings":";;;;;;;;;AACA;AACA;AAGO,SAASA,aAAa,CAACC,MAAiB,EAAEC,OAAe,EAAe;EAC7E;EACAA,OAAO,GAAI,CAAC,wBAASD,MAAM,CAAC,IAAIA,MAAM,CAACE,SAAS,IAAKD,OAAO;EAE5D,IAAI,wBAASD,MAAM,CAAC,EAAE;IACpB,MAAMG,IAAI,GAAG,IAAAC,4BAAa,EAACJ,MAAM,EAAEC,OAAO,CAAC;IAE3C,OAAO;MACL,GAAGE,IAAI;MACPE,aAAa,EAAE;QACbC,OAAO,EAAE;MACX;IACF,CAAC;EACH;EAEAN,MAAM,CAACO,OAAO,GAAGP,MAAM,CAACO,OAAO,IAAI,CAAC,CAAC;;EAErC;EACA,IACE,uBAAQP,MAAM,CAACO,OAAO,CAAC,IACvB,CAAC,uBAASP,MAAM,CAA0BQ,MAAM,CAAC,EACjD;IACA,MAAM,IAAIC,KAAK,CACZ,WAAUT,MAAM,CAACU,OAAQ,qEAAoE,CAC/F;EACH;;EAEA;EACA,IAAIV,MAAM,CAACW,cAAc,EAAE;IACzB,KAAK,MAAMC,aAAa,IAAIZ,MAAM,CAACW,cAAc,EAAE;MACjD,MAAME,QAAQ,GAAGD,aAAa,CAACE,KAAK,CAAE,GAAE,CAAC;MACzC,IAAIC,KAAiB,GAAG,CAACf,MAAM,CAACO,OAAO,CAAC;MAExC,IAAIS,UAAU,GAAGH,QAAQ;MAEzB,KAAK,MAAMI,OAAO,IAAIJ,QAAQ,EAAE;QAC9B,IAAII,OAAO,KAAM,IAAG,EAAE;UACpBD,UAAU,GAAGA,UAAU,CAACE,KAAK,CAAC,CAAC,EAAEF,UAAU,CAACG,MAAM,GAAG,CAAC,CAAC;UACvDJ,KAAK,GAAGA,KAAK,CAACK,IAAI,EAAE;QACtB,CAAC,MAAM;UACLL,KAAK,GAAGA,KAAK,CAACM,GAAG,CAACC,IAAI,IAAIA,IAAI,CAACL,OAAO,CAAC,CAAC;QAC1C;MACF;MACAF,KAAK,GAAGA,KAAK,CAACK,IAAI,EAAE;MAEpB,MAAMG,SAA6B,GAAG,EAAE;MAExC,KAAK,MAAMD,IAAI,IAAIP,KAAK,EAAE;QACxB,MAAMS,MAAM,GAAGzB,aAAa,CAACuB,IAAI,EAAErB,OAAO,CAAC;QAC3CsB,SAAS,CAACE,IAAI,CAACD,MAAM,CAAC;MACxB;MAEA,mBAAIxB,MAAM,CAACO,OAAO,EAAES,UAAU,EAAEO,SAAS,CAAC;IAC5C;EACF;;EAEA;EACA;EACA,IAAIvB,MAAM,CAACU,OAAO,KAAM,YAAW,EAAE;IACnC,MAAMgB,IAAI,GAAI,MAAK;IAEnB,OAAO;MACLC,EAAE,EAAE,IAAAC,wBAAc,EAACF,IAAI,EAAE1B,MAAM,CAAC;MAChC0B,IAAI;MACJG,OAAO,EAAG,YAAW;MACrBxB,aAAa,EAAE;QACbC,OAAO,EAAE;MACX,CAAC;MACDI,OAAO,EAAG;IACZ,CAAC;EACH;EAEA,MAAMP,IAAI,GAAG,IAAAC,4BAAa,EAACJ,MAAM,EAAEC,OAAO,CAAC;EAE3C,OAAO;IACL,GAAGE,IAAI;IACP2B,UAAU,EAAE9B,MAAM,CAAC8B,UAAU;IAC7BC,MAAM,EAAE/B,MAAM,CAAC+B,MAAM;IACrBpB,cAAc,EAAEX,MAAM,CAACW,cAAc,GACjCqB,KAAK,CAACC,IAAI,CAACjC,MAAM,CAACW,cAAc,CAAC,GACjCuB,SAAS;IACbP,EAAE,EAAE,IAAAC,wBAAc,EAACzB,IAAI,CAACuB,IAAI,EAAE1B,MAAM,CAAC;IACrCK,aAAa,EAAE,qBAAM;MAAEC,OAAO,EAAE;IAAG,CAAC,EAAEN,MAAM,CAACO,OAAO;EACtD,CAAC;AACH"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { IPluginInfo, PluginRef } from "./types";
|
|
2
|
+
/**
|
|
3
|
+
* @param plugin
|
|
4
|
+
* This should be a plugin spec object where possible but can also be the
|
|
5
|
+
* name of a plugin.
|
|
6
|
+
*
|
|
7
|
+
* When it is a name, it can be a name of a local plugin, the name of a plugin
|
|
8
|
+
* located in node_modules, or a Gatsby internal plugin. In the last case the
|
|
9
|
+
* plugin will be an absolute path.
|
|
10
|
+
* @param rootDir
|
|
11
|
+
* This is the project location, from which are found the plugins
|
|
12
|
+
*/
|
|
13
|
+
export declare function resolvePlugin(plugin: PluginRef, rootDir: string): IPluginInfo;
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
exports.__esModule = true;
|
|
5
|
+
exports.resolvePlugin = resolvePlugin;
|
|
6
|
+
var _isString2 = _interopRequireDefault(require("lodash/isString"));
|
|
7
|
+
var _path = _interopRequireDefault(require("path"));
|
|
8
|
+
var _fs = _interopRequireDefault(require("fs"));
|
|
9
|
+
var _gatsbyCoreUtils = require("gatsby-core-utils");
|
|
10
|
+
var _validate = require("./validate");
|
|
11
|
+
var _createId = require("./utils/create-id");
|
|
12
|
+
var _createHash = require("./utils/create-hash");
|
|
13
|
+
var _reporter = _interopRequireDefault(require("gatsby-cli/lib/reporter"));
|
|
14
|
+
var _checkLocalPlugin = require("./utils/check-local-plugin");
|
|
15
|
+
var _compileGatsbyFiles = require("../../utils/parcel/compile-gatsby-files");
|
|
16
|
+
/**
|
|
17
|
+
* @param plugin
|
|
18
|
+
* This should be a plugin spec object where possible but can also be the
|
|
19
|
+
* name of a plugin.
|
|
20
|
+
*
|
|
21
|
+
* When it is a name, it can be a name of a local plugin, the name of a plugin
|
|
22
|
+
* located in node_modules, or a Gatsby internal plugin. In the last case the
|
|
23
|
+
* plugin will be an absolute path.
|
|
24
|
+
* @param rootDir
|
|
25
|
+
* This is the project location, from which are found the plugins
|
|
26
|
+
*/
|
|
27
|
+
function resolvePlugin(plugin, rootDir) {
|
|
28
|
+
const pluginName = (0, _isString2.default)(plugin) ? plugin : plugin.resolve;
|
|
29
|
+
|
|
30
|
+
// Handle local plugins
|
|
31
|
+
const {
|
|
32
|
+
validLocalPlugin,
|
|
33
|
+
localPluginPath = ``
|
|
34
|
+
} = (0, _checkLocalPlugin.checkLocalPlugin)(plugin, rootDir);
|
|
35
|
+
if (validLocalPlugin && localPluginPath) {
|
|
36
|
+
const packageJSON = JSON.parse(_fs.default.readFileSync(`${localPluginPath}/package.json`, `utf-8`));
|
|
37
|
+
const name = packageJSON.name || pluginName;
|
|
38
|
+
(0, _validate.warnOnIncompatiblePeerDependency)(name, packageJSON);
|
|
39
|
+
return {
|
|
40
|
+
resolve: localPluginPath,
|
|
41
|
+
name,
|
|
42
|
+
id: (0, _createId.createPluginId)(name),
|
|
43
|
+
version: (packageJSON === null || packageJSON === void 0 ? void 0 : packageJSON.version) || (0, _createHash.createFileContentHash)(localPluginPath, `**`),
|
|
44
|
+
...(0, _compileGatsbyFiles.getResolvedFieldsForPlugin)(rootDir, name)
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Here we have an absolute path to an internal plugin, or a name of a module
|
|
50
|
+
* which should be located in node_modules.
|
|
51
|
+
*/
|
|
52
|
+
try {
|
|
53
|
+
const requireSource = rootDir !== null ? (0, _gatsbyCoreUtils.createRequireFromPath)(`${rootDir}/:internal:`) : require;
|
|
54
|
+
|
|
55
|
+
// If the path is absolute, resolve the directory of the internal plugin,
|
|
56
|
+
// otherwise resolve the directory containing the package.json
|
|
57
|
+
const resolvedPath = (0, _gatsbyCoreUtils.slash)(_path.default.dirname(requireSource.resolve(_path.default.isAbsolute(pluginName) ? pluginName : `${pluginName}/package.json`)));
|
|
58
|
+
const packageJSON = JSON.parse(_fs.default.readFileSync(`${resolvedPath}/package.json`, `utf-8`));
|
|
59
|
+
(0, _validate.warnOnIncompatiblePeerDependency)(packageJSON.name, packageJSON);
|
|
60
|
+
return {
|
|
61
|
+
resolve: resolvedPath,
|
|
62
|
+
id: (0, _createId.createPluginId)(packageJSON.name),
|
|
63
|
+
name: packageJSON.name,
|
|
64
|
+
version: packageJSON.version
|
|
65
|
+
};
|
|
66
|
+
} catch (err) {
|
|
67
|
+
if (process.env.gatsby_log_level === `verbose`) {
|
|
68
|
+
_reporter.default.panicOnBuild(`plugin "${pluginName} threw the following error:\n`, err);
|
|
69
|
+
} else {
|
|
70
|
+
_reporter.default.panicOnBuild(`There was a problem loading plugin "${pluginName}". Perhaps you need to install its package?\nUse --verbose to see actual error.`);
|
|
71
|
+
}
|
|
72
|
+
throw new Error(`unreachable`);
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
//# sourceMappingURL=resolve-plugin.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resolve-plugin.js","names":["resolvePlugin","plugin","rootDir","pluginName","resolve","validLocalPlugin","localPluginPath","checkLocalPlugin","packageJSON","JSON","parse","fs","readFileSync","name","warnOnIncompatiblePeerDependency","id","createPluginId","version","createFileContentHash","getResolvedFieldsForPlugin","requireSource","createRequireFromPath","require","resolvedPath","slash","path","dirname","isAbsolute","err","process","env","gatsby_log_level","reporter","panicOnBuild","Error"],"sources":["../../../src/bootstrap/load-plugins/resolve-plugin.ts"],"sourcesContent":["import path from \"path\"\nimport fs from \"fs\"\nimport { slash, createRequireFromPath } from \"gatsby-core-utils\"\nimport { warnOnIncompatiblePeerDependency } from \"./validate\"\nimport { PackageJson } from \"../../..\"\nimport { IPluginInfo, PluginRef } from \"./types\"\nimport { createPluginId } from \"./utils/create-id\"\nimport { createFileContentHash } from \"./utils/create-hash\"\nimport reporter from \"gatsby-cli/lib/reporter\"\nimport { isString } from \"lodash\"\nimport { checkLocalPlugin } from \"./utils/check-local-plugin\"\nimport { getResolvedFieldsForPlugin } from \"../../utils/parcel/compile-gatsby-files\"\n\n/**\n * @param plugin\n * This should be a plugin spec object where possible but can also be the\n * name of a plugin.\n *\n * When it is a name, it can be a name of a local plugin, the name of a plugin\n * located in node_modules, or a Gatsby internal plugin. In the last case the\n * plugin will be an absolute path.\n * @param rootDir\n * This is the project location, from which are found the plugins\n */\nexport function resolvePlugin(plugin: PluginRef, rootDir: string): IPluginInfo {\n const pluginName = isString(plugin) ? plugin : plugin.resolve\n\n // Handle local plugins\n const { validLocalPlugin, localPluginPath = `` } = checkLocalPlugin(\n plugin,\n rootDir\n )\n\n if (validLocalPlugin && localPluginPath) {\n const packageJSON = JSON.parse(\n fs.readFileSync(`${localPluginPath}/package.json`, `utf-8`)\n ) as PackageJson\n const name = packageJSON.name || pluginName\n warnOnIncompatiblePeerDependency(name, packageJSON)\n\n return {\n resolve: localPluginPath,\n name,\n id: createPluginId(name),\n version:\n packageJSON?.version || createFileContentHash(localPluginPath, `**`),\n ...getResolvedFieldsForPlugin(rootDir, name),\n }\n }\n\n /**\n * Here we have an absolute path to an internal plugin, or a name of a module\n * which should be located in node_modules.\n */\n try {\n const requireSource =\n rootDir !== null\n ? createRequireFromPath(`${rootDir}/:internal:`)\n : require\n\n // If the path is absolute, resolve the directory of the internal plugin,\n // otherwise resolve the directory containing the package.json\n const resolvedPath = slash(\n path.dirname(\n requireSource.resolve(\n path.isAbsolute(pluginName)\n ? pluginName\n : `${pluginName}/package.json`\n )\n )\n )\n\n const packageJSON = JSON.parse(\n fs.readFileSync(`${resolvedPath}/package.json`, `utf-8`)\n )\n warnOnIncompatiblePeerDependency(packageJSON.name, packageJSON)\n\n return {\n resolve: resolvedPath,\n id: createPluginId(packageJSON.name),\n name: packageJSON.name,\n version: packageJSON.version,\n }\n } catch (err) {\n if (process.env.gatsby_log_level === `verbose`) {\n reporter.panicOnBuild(\n `plugin \"${pluginName} threw the following error:\\n`,\n err\n )\n } else {\n reporter.panicOnBuild(\n `There was a problem loading plugin \"${pluginName}\". Perhaps you need to install its package?\\nUse --verbose to see actual error.`\n )\n }\n throw new Error(`unreachable`)\n }\n}\n"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AAGA;AACA;AACA;AAEA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAASA,aAAa,CAACC,MAAiB,EAAEC,OAAe,EAAe;EAC7E,MAAMC,UAAU,GAAG,wBAASF,MAAM,CAAC,GAAGA,MAAM,GAAGA,MAAM,CAACG,OAAO;;EAE7D;EACA,MAAM;IAAEC,gBAAgB;IAAEC,eAAe,GAAI;EAAE,CAAC,GAAG,IAAAC,kCAAgB,EACjEN,MAAM,EACNC,OAAO,CACR;EAED,IAAIG,gBAAgB,IAAIC,eAAe,EAAE;IACvC,MAAME,WAAW,GAAGC,IAAI,CAACC,KAAK,CAC5BC,WAAE,CAACC,YAAY,CAAE,GAAEN,eAAgB,eAAc,EAAG,OAAM,CAAC,CAC7C;IAChB,MAAMO,IAAI,GAAGL,WAAW,CAACK,IAAI,IAAIV,UAAU;IAC3C,IAAAW,0CAAgC,EAACD,IAAI,EAAEL,WAAW,CAAC;IAEnD,OAAO;MACLJ,OAAO,EAAEE,eAAe;MACxBO,IAAI;MACJE,EAAE,EAAE,IAAAC,wBAAc,EAACH,IAAI,CAAC;MACxBI,OAAO,EACL,CAAAT,WAAW,aAAXA,WAAW,uBAAXA,WAAW,CAAES,OAAO,KAAI,IAAAC,iCAAqB,EAACZ,eAAe,EAAG,IAAG,CAAC;MACtE,GAAG,IAAAa,8CAA0B,EAACjB,OAAO,EAAEW,IAAI;IAC7C,CAAC;EACH;;EAEA;AACF;AACA;AACA;EACE,IAAI;IACF,MAAMO,aAAa,GACjBlB,OAAO,KAAK,IAAI,GACZ,IAAAmB,sCAAqB,EAAE,GAAEnB,OAAQ,aAAY,CAAC,GAC9CoB,OAAO;;IAEb;IACA;IACA,MAAMC,YAAY,GAAG,IAAAC,sBAAK,EACxBC,aAAI,CAACC,OAAO,CACVN,aAAa,CAAChB,OAAO,CACnBqB,aAAI,CAACE,UAAU,CAACxB,UAAU,CAAC,GACvBA,UAAU,GACT,GAAEA,UAAW,eAAc,CACjC,CACF,CACF;IAED,MAAMK,WAAW,GAAGC,IAAI,CAACC,KAAK,CAC5BC,WAAE,CAACC,YAAY,CAAE,GAAEW,YAAa,eAAc,EAAG,OAAM,CAAC,CACzD;IACD,IAAAT,0CAAgC,EAACN,WAAW,CAACK,IAAI,EAAEL,WAAW,CAAC;IAE/D,OAAO;MACLJ,OAAO,EAAEmB,YAAY;MACrBR,EAAE,EAAE,IAAAC,wBAAc,EAACR,WAAW,CAACK,IAAI,CAAC;MACpCA,IAAI,EAAEL,WAAW,CAACK,IAAI;MACtBI,OAAO,EAAET,WAAW,CAACS;IACvB,CAAC;EACH,CAAC,CAAC,OAAOW,GAAG,EAAE;IACZ,IAAIC,OAAO,CAACC,GAAG,CAACC,gBAAgB,KAAM,SAAQ,EAAE;MAC9CC,iBAAQ,CAACC,YAAY,CAClB,WAAU9B,UAAW,+BAA8B,EACpDyB,GAAG,CACJ;IACH,CAAC,MAAM;MACLI,iBAAQ,CAACC,YAAY,CAClB,uCAAsC9B,UAAW,iFAAgF,CACnI;IACH;IACA,MAAM,IAAI+B,KAAK,CAAE,aAAY,CAAC;EAChC;AACF"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
export interface IRawSiteConfig {
|
|
2
|
+
plugins?: Array<PluginRef>;
|
|
3
|
+
}
|
|
4
|
+
export interface ISiteConfig extends IRawSiteConfig {
|
|
5
|
+
plugins?: Array<IPluginRefObject>;
|
|
6
|
+
}
|
|
7
|
+
export interface IPluginInfo {
|
|
8
|
+
/** Unique ID describing a plugin */
|
|
9
|
+
id: string;
|
|
10
|
+
/** The absolute path to the plugin */
|
|
11
|
+
resolve: string;
|
|
12
|
+
/** The absolute path to the compiled plugin's gatsby-node module, if there is one */
|
|
13
|
+
resolvedCompiledGatsbyNode?: string;
|
|
14
|
+
/** The plugin name */
|
|
15
|
+
name: string;
|
|
16
|
+
/** The plugin version (can be content hash) */
|
|
17
|
+
version: string;
|
|
18
|
+
/** Options passed to the plugin */
|
|
19
|
+
pluginOptions?: IPluginInfoOptions;
|
|
20
|
+
subPluginPaths?: Array<string>;
|
|
21
|
+
module?: any;
|
|
22
|
+
modulePath?: string;
|
|
23
|
+
}
|
|
24
|
+
export interface IPluginInfoOptions {
|
|
25
|
+
plugins?: Array<IPluginInfo>;
|
|
26
|
+
path?: string;
|
|
27
|
+
[option: string]: unknown;
|
|
28
|
+
}
|
|
29
|
+
export interface IFlattenedPlugin extends IPluginInfo {
|
|
30
|
+
skipSSR?: boolean;
|
|
31
|
+
ssrAPIs: Array<string>;
|
|
32
|
+
nodeAPIs: Array<string>;
|
|
33
|
+
browserAPIs: Array<string>;
|
|
34
|
+
}
|
|
35
|
+
export interface IPluginRefObject {
|
|
36
|
+
resolve: string;
|
|
37
|
+
options?: IPluginRefOptions;
|
|
38
|
+
parentDir?: string;
|
|
39
|
+
subPluginPaths?: Array<string>;
|
|
40
|
+
module?: any;
|
|
41
|
+
modulePath?: string;
|
|
42
|
+
}
|
|
43
|
+
export type PluginRef = string | IPluginRefObject;
|
|
44
|
+
export interface IPluginRefOptions {
|
|
45
|
+
plugins?: Array<PluginRef>;
|
|
46
|
+
path?: string;
|
|
47
|
+
[option: string]: unknown;
|
|
48
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","names":[],"sources":["../../../src/bootstrap/load-plugins/types.ts"],"sourcesContent":["export interface IRawSiteConfig {\n plugins?: Array<PluginRef>\n}\n\nexport interface ISiteConfig extends IRawSiteConfig {\n plugins?: Array<IPluginRefObject>\n}\n\n// There are two top-level \"Plugin\" concepts:\n// 1. IPluginInfo, for processed plugins, and\n// 2. PluginRef, for plugin configs\n\nexport interface IPluginInfo {\n /** Unique ID describing a plugin */\n id: string\n\n /** The absolute path to the plugin */\n resolve: string\n\n /** The absolute path to the compiled plugin's gatsby-node module, if there is one */\n resolvedCompiledGatsbyNode?: string\n\n /** The plugin name */\n name: string\n\n /** The plugin version (can be content hash) */\n version: string\n\n /** Options passed to the plugin */\n pluginOptions?: IPluginInfoOptions\n\n subPluginPaths?: Array<string>\n module?: any\n modulePath?: string\n}\n\nexport interface IPluginInfoOptions {\n plugins?: Array<IPluginInfo>\n path?: string\n [option: string]: unknown\n}\n\nexport interface IFlattenedPlugin extends IPluginInfo {\n skipSSR?: boolean\n ssrAPIs: Array<string>\n nodeAPIs: Array<string>\n browserAPIs: Array<string>\n}\n\nexport interface IPluginRefObject {\n resolve: string\n options?: IPluginRefOptions\n parentDir?: string\n subPluginPaths?: Array<string>\n module?: any\n modulePath?: string\n}\n\nexport type PluginRef = string | IPluginRefObject\n\nexport interface IPluginRefOptions {\n plugins?: Array<PluginRef>\n path?: string\n [option: string]: unknown\n}\n"],"mappings":""}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { PluginRef } from "../types";
|
|
2
|
+
/**
|
|
3
|
+
* Checks if a plugin is a valid local plugin and returns the resolved path if it is.
|
|
4
|
+
*/
|
|
5
|
+
export declare function checkLocalPlugin(plugin: PluginRef, rootDir: string): {
|
|
6
|
+
validLocalPlugin: boolean;
|
|
7
|
+
localPluginPath?: string;
|
|
8
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
exports.__esModule = true;
|
|
5
|
+
exports.checkLocalPlugin = checkLocalPlugin;
|
|
6
|
+
var _fsExistsCached = require("fs-exists-cached");
|
|
7
|
+
var _gatsbyCoreUtils = require("gatsby-core-utils");
|
|
8
|
+
var _path = _interopRequireDefault(require("path"));
|
|
9
|
+
/**
|
|
10
|
+
* Checks if a plugin is a valid local plugin and returns the resolved path if it is.
|
|
11
|
+
*/
|
|
12
|
+
function checkLocalPlugin(plugin, rootDir) {
|
|
13
|
+
const pluginName = typeof plugin === `string` ? plugin : plugin.resolve;
|
|
14
|
+
|
|
15
|
+
// Make sure the plugin exists relatively
|
|
16
|
+
if ((0, _fsExistsCached.sync)(pluginName) || !rootDir) {
|
|
17
|
+
return {
|
|
18
|
+
validLocalPlugin: false
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
const resolvedPath = (0, _gatsbyCoreUtils.slash)(_path.default.join(rootDir, `plugins/${pluginName}`));
|
|
22
|
+
if (!(0, _fsExistsCached.sync)(resolvedPath)) {
|
|
23
|
+
return {
|
|
24
|
+
validLocalPlugin: false
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
const resolvedPackageJson = (0, _fsExistsCached.sync)(`${resolvedPath}/package.json`);
|
|
28
|
+
|
|
29
|
+
// package.json is a requirement for local plugins
|
|
30
|
+
if (!resolvedPackageJson) {
|
|
31
|
+
throw new Error(`Local plugin ${pluginName} requires a package.json file`);
|
|
32
|
+
}
|
|
33
|
+
return {
|
|
34
|
+
validLocalPlugin: true,
|
|
35
|
+
localPluginPath: resolvedPath
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
//# sourceMappingURL=check-local-plugin.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"check-local-plugin.js","names":["checkLocalPlugin","plugin","rootDir","pluginName","resolve","existsSync","validLocalPlugin","resolvedPath","slash","path","join","resolvedPackageJson","Error","localPluginPath"],"sources":["../../../../src/bootstrap/load-plugins/utils/check-local-plugin.ts"],"sourcesContent":["import { PluginRef } from \"../types\"\nimport { sync as existsSync } from \"fs-exists-cached\"\nimport { slash } from \"gatsby-core-utils\"\nimport path from \"path\"\n\n/**\n * Checks if a plugin is a valid local plugin and returns the resolved path if it is.\n */\nexport function checkLocalPlugin(\n plugin: PluginRef,\n rootDir: string\n): { validLocalPlugin: boolean; localPluginPath?: string } {\n const pluginName = typeof plugin === `string` ? plugin : plugin.resolve\n\n // Make sure the plugin exists relatively\n if (existsSync(pluginName) || !rootDir) {\n return {\n validLocalPlugin: false,\n }\n }\n\n const resolvedPath = slash(path.join(rootDir, `plugins/${pluginName}`))\n\n if (!existsSync(resolvedPath)) {\n return {\n validLocalPlugin: false,\n }\n }\n\n const resolvedPackageJson = existsSync(`${resolvedPath}/package.json`)\n\n // package.json is a requirement for local plugins\n if (!resolvedPackageJson) {\n throw new Error(`Local plugin ${pluginName} requires a package.json file`)\n }\n\n return {\n validLocalPlugin: true,\n localPluginPath: resolvedPath,\n }\n}\n"],"mappings":";;;;;AACA;AACA;AACA;AAEA;AACA;AACA;AACO,SAASA,gBAAgB,CAC9BC,MAAiB,EACjBC,OAAe,EAC0C;EACzD,MAAMC,UAAU,GAAG,OAAOF,MAAM,KAAM,QAAO,GAAGA,MAAM,GAAGA,MAAM,CAACG,OAAO;;EAEvE;EACA,IAAI,IAAAC,oBAAU,EAACF,UAAU,CAAC,IAAI,CAACD,OAAO,EAAE;IACtC,OAAO;MACLI,gBAAgB,EAAE;IACpB,CAAC;EACH;EAEA,MAAMC,YAAY,GAAG,IAAAC,sBAAK,EAACC,aAAI,CAACC,IAAI,CAACR,OAAO,EAAG,WAAUC,UAAW,EAAC,CAAC,CAAC;EAEvE,IAAI,CAAC,IAAAE,oBAAU,EAACE,YAAY,CAAC,EAAE;IAC7B,OAAO;MACLD,gBAAgB,EAAE;IACpB,CAAC;EACH;EAEA,MAAMK,mBAAmB,GAAG,IAAAN,oBAAU,EAAE,GAAEE,YAAa,eAAc,CAAC;;EAEtE;EACA,IAAI,CAACI,mBAAmB,EAAE;IACxB,MAAM,IAAIC,KAAK,CAAE,gBAAeT,UAAW,+BAA8B,CAAC;EAC5E;EAEA,OAAO;IACLG,gBAAgB,EAAE,IAAI;IACtBO,eAAe,EAAEN;EACnB,CAAC;AACH"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function createFileContentHash(root: string, globPattern: string): string;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
exports.__esModule = true;
|
|
5
|
+
exports.createFileContentHash = createFileContentHash;
|
|
6
|
+
var _fs = _interopRequireDefault(require("fs"));
|
|
7
|
+
var _crypto = _interopRequireDefault(require("crypto"));
|
|
8
|
+
var _glob = _interopRequireDefault(require("glob"));
|
|
9
|
+
function createFileContentHash(root, globPattern) {
|
|
10
|
+
// TODO: Use hash-wasm
|
|
11
|
+
const hash = _crypto.default.createHash(`md5`);
|
|
12
|
+
const files = _glob.default.sync(`${root}/${globPattern}`, {
|
|
13
|
+
nodir: true
|
|
14
|
+
});
|
|
15
|
+
files.forEach(filepath => {
|
|
16
|
+
hash.update(_fs.default.readFileSync(filepath));
|
|
17
|
+
});
|
|
18
|
+
return hash.digest(`hex`);
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=create-hash.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-hash.js","names":["createFileContentHash","root","globPattern","hash","crypto","createHash","files","glob","sync","nodir","forEach","filepath","update","fs","readFileSync","digest"],"sources":["../../../../src/bootstrap/load-plugins/utils/create-hash.ts"],"sourcesContent":["import fs from \"fs\"\nimport crypto from \"crypto\"\nimport glob from \"glob\"\n\nexport function createFileContentHash(\n root: string,\n globPattern: string\n): string {\n // TODO: Use hash-wasm\n const hash = crypto.createHash(`md5`)\n const files = glob.sync(`${root}/${globPattern}`, { nodir: true })\n\n files.forEach(filepath => {\n hash.update(fs.readFileSync(filepath))\n })\n\n return hash.digest(`hex`)\n}\n"],"mappings":";;;;;AAAA;AACA;AACA;AAEO,SAASA,qBAAqB,CACnCC,IAAY,EACZC,WAAmB,EACX;EACR;EACA,MAAMC,IAAI,GAAGC,eAAM,CAACC,UAAU,CAAE,KAAI,CAAC;EACrC,MAAMC,KAAK,GAAGC,aAAI,CAACC,IAAI,CAAE,GAAEP,IAAK,IAAGC,WAAY,EAAC,EAAE;IAAEO,KAAK,EAAE;EAAK,CAAC,CAAC;EAElEH,KAAK,CAACI,OAAO,CAACC,QAAQ,IAAI;IACxBR,IAAI,CAACS,MAAM,CAACC,WAAE,CAACC,YAAY,CAACH,QAAQ,CAAC,CAAC;EACxC,CAAC,CAAC;EAEF,OAAOR,IAAI,CAACY,MAAM,CAAE,KAAI,CAAC;AAC3B"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { IPluginRefObject } from "../types";
|
|
2
|
+
/**
|
|
3
|
+
* Make sure key is unique to plugin options. E.g. there could
|
|
4
|
+
* be multiple source-filesystem plugins, with different names
|
|
5
|
+
* (docs, blogs).
|
|
6
|
+
*
|
|
7
|
+
* @param name Name of the plugin
|
|
8
|
+
* @param pluginObject Object of the plugin
|
|
9
|
+
*/
|
|
10
|
+
export declare const createPluginId: (name: string, pluginObject?: IPluginRefObject | null) => string;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
exports.__esModule = true;
|
|
4
|
+
exports.createPluginId = void 0;
|
|
5
|
+
var _createNodeId = require("../../../utils/create-node-id");
|
|
6
|
+
/**
|
|
7
|
+
* Make sure key is unique to plugin options. E.g. there could
|
|
8
|
+
* be multiple source-filesystem plugins, with different names
|
|
9
|
+
* (docs, blogs).
|
|
10
|
+
*
|
|
11
|
+
* @param name Name of the plugin
|
|
12
|
+
* @param pluginObject Object of the plugin
|
|
13
|
+
*/
|
|
14
|
+
const createPluginId = (name, pluginObject = null) => (0, _createNodeId.createNodeId)(name + (pluginObject ? JSON.stringify(pluginObject.options) : ``), `Plugin`);
|
|
15
|
+
exports.createPluginId = createPluginId;
|
|
16
|
+
//# sourceMappingURL=create-id.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-id.js","names":["createPluginId","name","pluginObject","createNodeId","JSON","stringify","options"],"sources":["../../../../src/bootstrap/load-plugins/utils/create-id.ts"],"sourcesContent":["import { createNodeId } from \"../../../utils/create-node-id\"\nimport { IPluginRefObject } from \"../types\"\n\n/**\n * Make sure key is unique to plugin options. E.g. there could\n * be multiple source-filesystem plugins, with different names\n * (docs, blogs).\n *\n * @param name Name of the plugin\n * @param pluginObject Object of the plugin\n */\nexport const createPluginId = (\n name: string,\n pluginObject: IPluginRefObject | null = null\n): string =>\n createNodeId(\n name + (pluginObject ? JSON.stringify(pluginObject.options) : ``),\n `Plugin`\n )\n"],"mappings":";;;;AAAA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,MAAMA,cAAc,GAAG,CAC5BC,IAAY,EACZC,YAAqC,GAAG,IAAI,KAE5C,IAAAC,0BAAY,EACVF,IAAI,IAAIC,YAAY,GAAGE,IAAI,CAACC,SAAS,CAACH,YAAY,CAACI,OAAO,CAAC,GAAI,EAAC,CAAC,EAChE,QAAO,CACT;AAAA"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
exports.__esModule = true;
|
|
4
|
+
exports.flattenPlugins = void 0;
|
|
5
|
+
// Create a "flattened" array of plugins with all subplugins
|
|
6
|
+
// brought to the top-level. This simplifies running gatsby-* files
|
|
7
|
+
// for subplugins.
|
|
8
|
+
const flattenPlugins = plugins => {
|
|
9
|
+
const flattened = [];
|
|
10
|
+
const extractPlugins = plugin => {
|
|
11
|
+
if (plugin.subPluginPaths) {
|
|
12
|
+
for (const subPluginPath of plugin.subPluginPaths) {
|
|
13
|
+
// @pieh:
|
|
14
|
+
// subPluginPath can look like someOption.randomFieldThatIsMarkedAsSubplugins
|
|
15
|
+
// Reason for doing stringified path with . separator was that it was just easier to prevent duplicates
|
|
16
|
+
// in subPluginPaths array (as each subplugin in the gatsby-config would add subplugin path).
|
|
17
|
+
const segments = subPluginPath.split(`.`);
|
|
18
|
+
let roots = [plugin.pluginOptions];
|
|
19
|
+
for (const segment of segments) {
|
|
20
|
+
if (segment === `[]`) {
|
|
21
|
+
roots = roots.flat();
|
|
22
|
+
} else {
|
|
23
|
+
roots = roots.map(root => root[segment]);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
roots = roots.flat();
|
|
27
|
+
roots.forEach(subPlugin => {
|
|
28
|
+
flattened.push(subPlugin);
|
|
29
|
+
extractPlugins(subPlugin);
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
plugins.forEach(plugin => {
|
|
35
|
+
flattened.push(plugin);
|
|
36
|
+
extractPlugins(plugin);
|
|
37
|
+
});
|
|
38
|
+
return flattened;
|
|
39
|
+
};
|
|
40
|
+
exports.flattenPlugins = flattenPlugins;
|
|
41
|
+
//# sourceMappingURL=flatten-plugins.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"flatten-plugins.js","names":["flattenPlugins","plugins","flattened","extractPlugins","plugin","subPluginPaths","subPluginPath","segments","split","roots","pluginOptions","segment","flat","map","root","forEach","subPlugin","push"],"sources":["../../../../src/bootstrap/load-plugins/utils/flatten-plugins.ts"],"sourcesContent":["import { IPluginInfo } from \"../types\"\n\n// Create a \"flattened\" array of plugins with all subplugins\n// brought to the top-level. This simplifies running gatsby-* files\n// for subplugins.\nexport const flattenPlugins = (\n plugins: Array<IPluginInfo>\n): Array<IPluginInfo> => {\n const flattened: Array<IPluginInfo> = []\n const extractPlugins = (plugin: IPluginInfo): void => {\n if (plugin.subPluginPaths) {\n for (const subPluginPath of plugin.subPluginPaths) {\n // @pieh:\n // subPluginPath can look like someOption.randomFieldThatIsMarkedAsSubplugins\n // Reason for doing stringified path with . separator was that it was just easier to prevent duplicates\n // in subPluginPaths array (as each subplugin in the gatsby-config would add subplugin path).\n const segments = subPluginPath.split(`.`)\n let roots: Array<any> = [plugin.pluginOptions]\n for (const segment of segments) {\n if (segment === `[]`) {\n roots = roots.flat()\n } else {\n roots = roots.map(root => root[segment])\n }\n }\n roots = roots.flat()\n\n roots.forEach(subPlugin => {\n flattened.push(subPlugin)\n extractPlugins(subPlugin)\n })\n }\n }\n }\n\n plugins.forEach(plugin => {\n flattened.push(plugin)\n extractPlugins(plugin)\n })\n\n return flattened\n}\n"],"mappings":";;;;AAEA;AACA;AACA;AACO,MAAMA,cAAc,GACzBC,OAA2B,IACJ;EACvB,MAAMC,SAA6B,GAAG,EAAE;EACxC,MAAMC,cAAc,GAAIC,MAAmB,IAAW;IACpD,IAAIA,MAAM,CAACC,cAAc,EAAE;MACzB,KAAK,MAAMC,aAAa,IAAIF,MAAM,CAACC,cAAc,EAAE;QACjD;QACA;QACA;QACA;QACA,MAAME,QAAQ,GAAGD,aAAa,CAACE,KAAK,CAAE,GAAE,CAAC;QACzC,IAAIC,KAAiB,GAAG,CAACL,MAAM,CAACM,aAAa,CAAC;QAC9C,KAAK,MAAMC,OAAO,IAAIJ,QAAQ,EAAE;UAC9B,IAAII,OAAO,KAAM,IAAG,EAAE;YACpBF,KAAK,GAAGA,KAAK,CAACG,IAAI,EAAE;UACtB,CAAC,MAAM;YACLH,KAAK,GAAGA,KAAK,CAACI,GAAG,CAACC,IAAI,IAAIA,IAAI,CAACH,OAAO,CAAC,CAAC;UAC1C;QACF;QACAF,KAAK,GAAGA,KAAK,CAACG,IAAI,EAAE;QAEpBH,KAAK,CAACM,OAAO,CAACC,SAAS,IAAI;UACzBd,SAAS,CAACe,IAAI,CAACD,SAAS,CAAC;UACzBb,cAAc,CAACa,SAAS,CAAC;QAC3B,CAAC,CAAC;MACJ;IACF;EACF,CAAC;EAEDf,OAAO,CAACc,OAAO,CAACX,MAAM,IAAI;IACxBF,SAAS,CAACe,IAAI,CAACb,MAAM,CAAC;IACtBD,cAAc,CAACC,MAAM,CAAC;EACxB,CAAC,CAAC;EAEF,OAAOF,SAAS;AAClB,CAAC;AAAA"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
exports.__esModule = true;
|
|
5
|
+
exports.getAPI = void 0;
|
|
6
|
+
var _keys2 = _interopRequireDefault(require("lodash/keys"));
|
|
7
|
+
const getAPI = api => (0, _keys2.default)(api).reduce((merged, key) => {
|
|
8
|
+
merged[key] = (0, _keys2.default)(api[key]);
|
|
9
|
+
return merged;
|
|
10
|
+
}, {});
|
|
11
|
+
exports.getAPI = getAPI;
|
|
12
|
+
//# sourceMappingURL=get-api.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-api.js","names":["getAPI","api","reduce","merged","key"],"sources":["../../../../src/bootstrap/load-plugins/utils/get-api.ts"],"sourcesContent":["import { ExportType, ICurrentAPIs } from \"../validate\"\nimport { keys } from \"lodash\"\n\nexport const getAPI = (api: {\n [exportType in ExportType]: { [api: string]: boolean }\n}): ICurrentAPIs =>\n keys(api).reduce<Partial<ICurrentAPIs>>((merged, key) => {\n merged[key] = keys(api[key])\n return merged\n }, {}) as ICurrentAPIs\n"],"mappings":";;;;;;AAGO,MAAMA,MAAM,GAAIC,GAEtB,IACC,oBAAKA,GAAG,CAAC,CAACC,MAAM,CAAwB,CAACC,MAAM,EAAEC,GAAG,KAAK;EACvDD,MAAM,CAACC,GAAG,CAAC,GAAG,oBAAKH,GAAG,CAACG,GAAG,CAAC,CAAC;EAC5B,OAAOD,MAAM;AACf,CAAC,EAAE,CAAC,CAAC,CAAiB;AAAA"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ISiteConfig, IRawSiteConfig } from "../types";
|
|
2
|
+
import { IPluginRefObject, PluginRef } from "gatsby-plugin-utils/dist/types";
|
|
3
|
+
export declare function normalizePlugin(plugin: IPluginRefObject | string): IPluginRefObject;
|
|
4
|
+
export declare function normalizePlugins(plugins?: Array<PluginRef>): Array<IPluginRefObject>;
|
|
5
|
+
export declare const normalizeConfig: (config?: IRawSiteConfig) => ISiteConfig;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
exports.__esModule = true;
|
|
4
|
+
exports.normalizeConfig = void 0;
|
|
5
|
+
exports.normalizePlugin = normalizePlugin;
|
|
6
|
+
exports.normalizePlugins = normalizePlugins;
|
|
7
|
+
function normalizePlugin(plugin) {
|
|
8
|
+
var _plugin$options;
|
|
9
|
+
if (typeof plugin === `string`) {
|
|
10
|
+
return {
|
|
11
|
+
resolve: plugin,
|
|
12
|
+
options: {}
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
if ((_plugin$options = plugin.options) !== null && _plugin$options !== void 0 && _plugin$options.plugins) {
|
|
16
|
+
plugin.options = {
|
|
17
|
+
...plugin.options,
|
|
18
|
+
plugins: normalizePlugins(plugin.options.plugins)
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
return plugin;
|
|
22
|
+
}
|
|
23
|
+
function normalizePlugins(plugins) {
|
|
24
|
+
return (plugins || []).map(normalizePlugin);
|
|
25
|
+
}
|
|
26
|
+
const normalizeConfig = (config = {}) => {
|
|
27
|
+
return {
|
|
28
|
+
...config,
|
|
29
|
+
plugins: (config.plugins || []).map(normalizePlugin)
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
exports.normalizeConfig = normalizeConfig;
|
|
33
|
+
//# sourceMappingURL=normalize.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"normalize.js","names":["normalizePlugin","plugin","resolve","options","plugins","normalizePlugins","map","normalizeConfig","config"],"sources":["../../../../src/bootstrap/load-plugins/utils/normalize.ts"],"sourcesContent":["import { ISiteConfig, IRawSiteConfig } from \"../types\"\nimport { IPluginRefObject, PluginRef } from \"gatsby-plugin-utils/dist/types\"\n\nexport function normalizePlugin(\n plugin: IPluginRefObject | string\n): IPluginRefObject {\n if (typeof plugin === `string`) {\n return {\n resolve: plugin,\n options: {},\n }\n }\n\n if (plugin.options?.plugins) {\n plugin.options = {\n ...plugin.options,\n plugins: normalizePlugins(plugin.options.plugins),\n }\n }\n\n return plugin\n}\n\nexport function normalizePlugins(\n plugins?: Array<PluginRef>\n): Array<IPluginRefObject> {\n return (plugins || []).map(normalizePlugin)\n}\n\nexport const normalizeConfig = (config: IRawSiteConfig = {}): ISiteConfig => {\n return {\n ...config,\n plugins: (config.plugins || []).map(normalizePlugin),\n }\n}\n"],"mappings":";;;;;;AAGO,SAASA,eAAe,CAC7BC,MAAiC,EACf;EAAA;EAClB,IAAI,OAAOA,MAAM,KAAM,QAAO,EAAE;IAC9B,OAAO;MACLC,OAAO,EAAED,MAAM;MACfE,OAAO,EAAE,CAAC;IACZ,CAAC;EACH;EAEA,uBAAIF,MAAM,CAACE,OAAO,4CAAd,gBAAgBC,OAAO,EAAE;IAC3BH,MAAM,CAACE,OAAO,GAAG;MACf,GAAGF,MAAM,CAACE,OAAO;MACjBC,OAAO,EAAEC,gBAAgB,CAACJ,MAAM,CAACE,OAAO,CAACC,OAAO;IAClD,CAAC;EACH;EAEA,OAAOH,MAAM;AACf;AAEO,SAASI,gBAAgB,CAC9BD,OAA0B,EACD;EACzB,OAAO,CAACA,OAAO,IAAI,EAAE,EAAEE,GAAG,CAACN,eAAe,CAAC;AAC7C;AAEO,MAAMO,eAAe,GAAG,CAACC,MAAsB,GAAG,CAAC,CAAC,KAAkB;EAC3E,OAAO;IACL,GAAGA,MAAM;IACTJ,OAAO,EAAE,CAACI,MAAM,CAACJ,OAAO,IAAI,EAAE,EAAEE,GAAG,CAACN,eAAe;EACrD,CAAC;AACH,CAAC;AAAA"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { PackageJson } from "../../../";
|
|
2
|
+
import { IPluginInfo, IFlattenedPlugin, ISiteConfig } from "./types";
|
|
3
|
+
interface IApi {
|
|
4
|
+
version?: string;
|
|
5
|
+
}
|
|
6
|
+
export interface IEntry {
|
|
7
|
+
exportName: string;
|
|
8
|
+
pluginName: string;
|
|
9
|
+
pluginVersion: string;
|
|
10
|
+
api?: IApi;
|
|
11
|
+
}
|
|
12
|
+
export type ExportType = "node" | "browser" | "ssr";
|
|
13
|
+
type IEntryMap = {
|
|
14
|
+
[exportType in ExportType]: Array<IEntry>;
|
|
15
|
+
};
|
|
16
|
+
export type ICurrentAPIs = {
|
|
17
|
+
[exportType in ExportType]: Array<string>;
|
|
18
|
+
};
|
|
19
|
+
export declare function handleBadExports({ currentAPIs, badExports, }: {
|
|
20
|
+
currentAPIs: ICurrentAPIs;
|
|
21
|
+
badExports: {
|
|
22
|
+
[api in ExportType]: Array<IEntry>;
|
|
23
|
+
};
|
|
24
|
+
}): Promise<void>;
|
|
25
|
+
export declare function validateConfigPluginsOptions(config: ISiteConfig | undefined, rootDir: string): Promise<void>;
|
|
26
|
+
/**
|
|
27
|
+
* Identify which APIs each plugin exports
|
|
28
|
+
*/
|
|
29
|
+
export declare function collatePluginAPIs({ currentAPIs, flattenedPlugins, rootDir, }: {
|
|
30
|
+
currentAPIs: ICurrentAPIs;
|
|
31
|
+
flattenedPlugins: Array<IPluginInfo & Partial<IFlattenedPlugin>>;
|
|
32
|
+
rootDir: string;
|
|
33
|
+
}): Promise<{
|
|
34
|
+
flattenedPlugins: Array<IFlattenedPlugin>;
|
|
35
|
+
badExports: IEntryMap;
|
|
36
|
+
}>;
|
|
37
|
+
export declare const handleMultipleReplaceRenderers: ({ flattenedPlugins, }: {
|
|
38
|
+
flattenedPlugins: Array<IFlattenedPlugin>;
|
|
39
|
+
}) => Array<IFlattenedPlugin>;
|
|
40
|
+
export declare function warnOnIncompatiblePeerDependency(name: string, packageJSON: PackageJson): void;
|
|
41
|
+
export {};
|