@bleedingdev/modern-js-app-tools 3.8.3-ultramodern.6 → 3.9.0-ultramodern.10
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/dist/cjs/builder/generator/index.js +0 -1
- package/dist/cjs/builder/shared/builderPlugins/index.js +4 -11
- package/dist/cjs/config/index.js +4 -11
- package/dist/cjs/index.js +46 -72
- package/dist/cjs/plugins/deploy/platforms/node.js +0 -13
- package/dist/cjs/plugins/deploy/utils/generator.js +1 -1
- package/dist/cjs/plugins/serverBuild.js +2 -1
- package/dist/cjs/{plugins/backendFederationBuild.js → server-plugin.js} +4 -7
- package/dist/esm/builder/generator/index.mjs +1 -2
- package/dist/esm/builder/shared/builderPlugins/index.mjs +0 -1
- package/dist/esm/config/index.mjs +0 -1
- package/dist/esm/index.mjs +3 -6
- package/dist/esm/plugins/deploy/platforms/node.mjs +0 -13
- package/dist/esm/plugins/deploy/utils/generator.mjs +1 -1
- package/dist/esm/plugins/serverBuild.mjs +2 -1
- package/dist/esm/server-plugin.mjs +1 -0
- package/dist/esm-node/builder/generator/index.mjs +1 -2
- package/dist/esm-node/builder/shared/builderPlugins/index.mjs +0 -1
- package/dist/esm-node/config/index.mjs +0 -1
- package/dist/esm-node/index.mjs +3 -6
- package/dist/esm-node/plugins/deploy/platforms/node.mjs +0 -13
- package/dist/esm-node/plugins/deploy/utils/generator.mjs +1 -1
- package/dist/esm-node/plugins/serverBuild.mjs +2 -1
- package/dist/esm-node/server-plugin.mjs +2 -0
- package/dist/types/builder/builder-rspack/index.d.ts +1 -1
- package/dist/types/builder/generator/adapterCopy.d.ts +1 -1
- package/dist/types/builder/generator/createBuilderProviderConfig.d.ts +2 -2
- package/dist/types/builder/generator/createCopyPattern.d.ts +2 -2
- package/dist/types/builder/generator/getBuilderEnvironments.d.ts +2 -2
- package/dist/types/builder/generator/index.d.ts +1 -1
- package/dist/types/builder/index.d.ts +1 -1
- package/dist/types/builder/shared/builderPlugins/adapterBasic.d.ts +1 -1
- package/dist/types/builder/shared/builderPlugins/adapterHtml.d.ts +1 -1
- package/dist/types/builder/shared/builderPlugins/adapterSSR.d.ts +3 -3
- package/dist/types/builder/shared/builderPlugins/builderHooks.d.ts +1 -1
- package/dist/types/builder/shared/builderPlugins/index.d.ts +4 -5
- package/dist/types/builder/shared/bundlerPlugins/index.d.ts +3 -3
- package/dist/types/builder/shared/createCopyInfo.d.ts +2 -2
- package/dist/types/builder/shared/index.d.ts +3 -3
- package/dist/types/builder/shared/types.d.ts +2 -2
- package/dist/types/commands/build.d.ts +2 -2
- package/dist/types/commands/deploy.d.ts +2 -2
- package/dist/types/commands/dev.d.ts +2 -2
- package/dist/types/commands/index.d.ts +1 -1
- package/dist/types/commands/info.d.ts +2 -2
- package/dist/types/commands/inspect.d.ts +2 -2
- package/dist/types/commands/serve.d.ts +1 -1
- package/dist/types/compat/hooks.d.ts +1 -1
- package/dist/types/compat/index.d.ts +1 -1
- package/dist/types/config/default.d.ts +2 -2
- package/dist/types/config/index.d.ts +2 -3
- package/dist/types/config/initialize/index.d.ts +2 -2
- package/dist/types/config/initialize/inits.d.ts +2 -2
- package/dist/types/defineConfig.d.ts +2 -2
- package/dist/types/index.d.ts +15 -15
- package/dist/types/plugins/analyze/getBundleEntry.d.ts +2 -2
- package/dist/types/plugins/analyze/getFileSystemEntry.d.ts +2 -2
- package/dist/types/plugins/analyze/getHtmlTemplate.d.ts +2 -2
- package/dist/types/plugins/analyze/getServerRoutes.d.ts +2 -2
- package/dist/types/plugins/analyze/index.d.ts +1 -1
- package/dist/types/plugins/deploy/index.d.ts +2 -2
- package/dist/types/plugins/deploy/platforms/gh-pages.d.ts +1 -1
- package/dist/types/plugins/deploy/platforms/netlify.d.ts +1 -1
- package/dist/types/plugins/deploy/platforms/node.d.ts +1 -1
- package/dist/types/plugins/deploy/platforms/platform.d.ts +3 -3
- package/dist/types/plugins/deploy/platforms/vercel.d.ts +1 -1
- package/dist/types/plugins/deploy/types.d.ts +1 -1
- package/dist/types/plugins/deploy/utils/generator.d.ts +3 -3
- package/dist/types/plugins/initialize/index.d.ts +1 -1
- package/dist/types/plugins/serverBuild.d.ts +1 -1
- package/dist/types/plugins/serverRuntime.d.ts +1 -1
- package/dist/types/rsbuild.d.ts +1 -1
- package/dist/types/run/index.d.ts +1 -1
- package/dist/types/server-plugin.d.ts +10 -0
- package/dist/types/types/config/html.d.ts +1 -1
- package/dist/types/types/config/index.d.ts +13 -13
- package/dist/types/types/config/output.d.ts +1 -10
- package/dist/types/types/config/performance.d.ts +1 -1
- package/dist/types/types/config/tools.d.ts +1 -1
- package/dist/types/types/index.d.ts +3 -3
- package/dist/types/types/plugin.d.ts +59 -5
- package/dist/types/utils/config.d.ts +1 -1
- package/dist/types/utils/env.d.ts +1 -1
- package/dist/types/utils/generateWatchFiles.d.ts +1 -1
- package/dist/types/utils/initAppContext.d.ts +3 -2
- package/dist/types/utils/loadPlugins.d.ts +1 -1
- package/dist/types/utils/printInstructions.d.ts +2 -2
- package/dist/types/utils/restart.d.ts +1 -1
- package/dist/types/utils/routes.d.ts +1 -1
- package/docs/apis/app/commands.md +2 -0
- package/docs/apis/app/hooks/api/lambda.md +2 -0
- package/docs/apis/app/hooks/config/favicon.md +2 -0
- package/docs/apis/app/hooks/config/html.md +2 -0
- package/docs/apis/app/hooks/config/icon.md +2 -0
- package/docs/apis/app/hooks/config/mock.md +2 -0
- package/docs/apis/app/hooks/config/public.md +2 -0
- package/docs/apis/app/hooks/config/upload.md +2 -0
- package/docs/apis/app/hooks/modern-config.md +2 -0
- package/docs/apis/app/hooks/server/server.md +2 -0
- package/docs/apis/app/hooks/shared.md +2 -0
- package/docs/apis/app/hooks/src/app.md +2 -0
- package/docs/apis/app/hooks/src/entry.md +2 -0
- package/docs/apis/app/hooks/src/entry.server.md +2 -0
- package/docs/apis/app/hooks/src/modern.runtime.md +2 -0
- package/docs/apis/app/hooks/src/routes.md +2 -0
- package/docs/apis/app/hooks/src/server.md +2 -0
- package/docs/apis/app/runtime/bff/use-backend-context.md +2 -0
- package/docs/apis/app/runtime/core/create-root.md +2 -0
- package/docs/apis/app/runtime/core/render.md +2 -0
- package/docs/apis/app/runtime/core/runtime-context.md +2 -0
- package/docs/apis/app/runtime/router/router.md +2 -0
- package/docs/apis/app/runtime/ssr/no-ssr.md +2 -0
- package/docs/apis/app/runtime/ssr/renderStreaming.md +2 -0
- package/docs/apis/app/runtime/ssr/renderString.md +2 -0
- package/docs/apis/app/runtime/ssr/requestHandler.md +2 -0
- package/docs/apis/app/runtime/utility/css-in-js.md +2 -0
- package/docs/apis/app/runtime/utility/head.md +2 -0
- package/docs/apis/app/runtime/utility/loadable.md +2 -0
- package/docs/community/blog/2022-0708-updates.md +2 -0
- package/docs/community/blog/2022-0910-updates.md +2 -0
- package/docs/community/blog/overview.md +2 -0
- package/docs/community/blog/v2-release-note.md +2 -0
- package/docs/community/blog/v3-release-note.md +2 -0
- package/docs/community/contributing-guide.md +2 -0
- package/docs/community/releases.md +2 -0
- package/docs/community/showcase.md +2 -0
- package/docs/community/team.md +2 -0
- package/docs/configure/app/bff/cross-project.md +2 -0
- package/docs/configure/app/bff/effect.md +31 -24
- package/docs/configure/app/bff/prefix.md +2 -0
- package/docs/configure/app/bff/runtime-framework.md +2 -0
- package/docs/configure/app/builder-plugins.md +2 -0
- package/docs/configure/app/dev/asset-prefix.md +2 -0
- package/docs/configure/app/dev/before-start-url.md +2 -0
- package/docs/configure/app/dev/client.md +2 -0
- package/docs/configure/app/dev/hmr.md +2 -0
- package/docs/configure/app/dev/host.md +2 -0
- package/docs/configure/app/dev/https.md +2 -0
- package/docs/configure/app/dev/lazy-compilation.md +2 -0
- package/docs/configure/app/dev/live-reload.md +2 -0
- package/docs/configure/app/dev/mock-dir.md +2 -0
- package/docs/configure/app/dev/progress-bar.md +2 -0
- package/docs/configure/app/dev/server.md +2 -0
- package/docs/configure/app/dev/setup-middlewares.md +2 -0
- package/docs/configure/app/dev/start-url.md +2 -0
- package/docs/configure/app/dev/watch-files.md +2 -0
- package/docs/configure/app/dev/write-to-disk.md +2 -0
- package/docs/configure/app/experiments/source-build.md +2 -0
- package/docs/configure/app/html/app-icon.md +2 -0
- package/docs/configure/app/html/crossorigin.md +2 -0
- package/docs/configure/app/html/favicon.md +2 -0
- package/docs/configure/app/html/inject.md +2 -0
- package/docs/configure/app/html/meta.md +2 -0
- package/docs/configure/app/html/mount-id.md +2 -0
- package/docs/configure/app/html/output-structure.md +2 -0
- package/docs/configure/app/html/script-loading.md +2 -0
- package/docs/configure/app/html/tags.md +2 -0
- package/docs/configure/app/html/template-parameters.md +2 -0
- package/docs/configure/app/html/template.md +2 -0
- package/docs/configure/app/html/title.md +2 -0
- package/docs/configure/app/output/asset-prefix.md +2 -0
- package/docs/configure/app/output/assets-retry.md +2 -0
- package/docs/configure/app/output/charset.md +2 -0
- package/docs/configure/app/output/clean-dist-path.md +2 -0
- package/docs/configure/app/output/convert-to-rem.md +2 -0
- package/docs/configure/app/output/copy.md +2 -0
- package/docs/configure/app/output/css-modules.md +2 -0
- package/docs/configure/app/output/data-uri-limit.md +2 -0
- package/docs/configure/app/output/disable-css-module-extension.md +2 -0
- package/docs/configure/app/output/disable-inline-runtime-chunk.md +2 -0
- package/docs/configure/app/output/disable-svgr.md +2 -0
- package/docs/configure/app/output/disable-ts-checker.md +2 -0
- package/docs/configure/app/output/dist-path.md +2 -0
- package/docs/configure/app/output/enable-asset-manifest.md +2 -0
- package/docs/configure/app/output/enable-css-module-tsdeclaration.md +2 -0
- package/docs/configure/app/output/enable-inline-route-manifests.md +2 -0
- package/docs/configure/app/output/externals.md +2 -0
- package/docs/configure/app/output/filename-hash.md +2 -0
- package/docs/configure/app/output/filename.md +2 -0
- package/docs/configure/app/output/inject-styles.md +2 -0
- package/docs/configure/app/output/inline-scripts.md +2 -0
- package/docs/configure/app/output/inline-styles.md +2 -0
- package/docs/configure/app/output/legal-comments.md +2 -0
- package/docs/configure/app/output/minify.md +2 -0
- package/docs/configure/app/output/override-browserslist.md +2 -0
- package/docs/configure/app/output/polyfill.md +2 -0
- package/docs/configure/app/output/source-map.md +2 -0
- package/docs/configure/app/output/split-route-chunks.md +2 -0
- package/docs/configure/app/output/ssg.md +2 -0
- package/docs/configure/app/output/ssgByEntries.md +2 -0
- package/docs/configure/app/output/svg-default-export.md +2 -0
- package/docs/configure/app/output/temp-dir.md +2 -0
- package/docs/configure/app/performance/build-cache.md +2 -0
- package/docs/configure/app/performance/chunk-split.md +2 -0
- package/docs/configure/app/performance/dns-prefetch.md +2 -0
- package/docs/configure/app/performance/preconnect.md +2 -0
- package/docs/configure/app/performance/prefetch.md +2 -0
- package/docs/configure/app/performance/preload.md +2 -0
- package/docs/configure/app/performance/print-file-size.md +2 -0
- package/docs/configure/app/performance/profile.md +2 -0
- package/docs/configure/app/performance/remove-console.md +2 -0
- package/docs/configure/app/performance/remove-moment-locale.md +2 -0
- package/docs/configure/app/performance/rsdoctor.md +2 -0
- package/docs/configure/app/plugins.md +2 -0
- package/docs/configure/app/resolve/alias-strategy.md +2 -0
- package/docs/configure/app/resolve/alias.md +2 -0
- package/docs/configure/app/resolve/condition-names.md +2 -0
- package/docs/configure/app/resolve/dedupe.md +2 -0
- package/docs/configure/app/resolve/extensions.md +2 -0
- package/docs/configure/app/runtime/0-intro.md +2 -0
- package/docs/configure/app/runtime/plugins.md +2 -0
- package/docs/configure/app/runtime/router.md +2 -0
- package/docs/configure/app/security/check-syntax.md +2 -0
- package/docs/configure/app/security/nonce.md +2 -0
- package/docs/configure/app/security/sri.md +2 -0
- package/docs/configure/app/server/base-url.md +2 -0
- package/docs/configure/app/server/port.md +2 -0
- package/docs/configure/app/server/public-routes.md +2 -0
- package/docs/configure/app/server/routes.md +2 -0
- package/docs/configure/app/server/rsc.md +2 -0
- package/docs/configure/app/server/ssr-by-entries.md +2 -0
- package/docs/configure/app/server/ssr.md +2 -0
- package/docs/configure/app/server/tsconfig-path.md +2 -0
- package/docs/configure/app/source/alias-strategy.md +2 -0
- package/docs/configure/app/source/alias.md +2 -0
- package/docs/configure/app/source/config-dir.md +2 -0
- package/docs/configure/app/source/decorators.md +2 -0
- package/docs/configure/app/source/define.md +2 -0
- package/docs/configure/app/source/disable-default-entries.md +2 -0
- package/docs/configure/app/source/enable-async-entry.md +2 -0
- package/docs/configure/app/source/enable-async-pre-entry.md +2 -0
- package/docs/configure/app/source/entries-dir.md +2 -0
- package/docs/configure/app/source/entries.md +2 -0
- package/docs/configure/app/source/exclude.md +2 -0
- package/docs/configure/app/source/global-vars.md +2 -0
- package/docs/configure/app/source/include.md +2 -0
- package/docs/configure/app/source/main-entry-name.md +2 -0
- package/docs/configure/app/source/pre-entry.md +2 -0
- package/docs/configure/app/source/react-compiler.md +2 -0
- package/docs/configure/app/source/transform-import.md +2 -0
- package/docs/configure/app/split-chunks.md +2 -0
- package/docs/configure/app/tools/autoprefixer.md +2 -0
- package/docs/configure/app/tools/bundler-chain.md +2 -0
- package/docs/configure/app/tools/css-extract.md +2 -0
- package/docs/configure/app/tools/css-loader.md +2 -0
- package/docs/configure/app/tools/dev-server.md +2 -0
- package/docs/configure/app/tools/html-plugin.md +2 -0
- package/docs/configure/app/tools/less.md +2 -0
- package/docs/configure/app/tools/lightningcss-loader.md +2 -0
- package/docs/configure/app/tools/minify-css.md +2 -0
- package/docs/configure/app/tools/postcss.md +2 -0
- package/docs/configure/app/tools/rspack.md +2 -0
- package/docs/configure/app/tools/sass.md +2 -0
- package/docs/configure/app/tools/style-loader.md +2 -0
- package/docs/configure/app/tools/swc.md +2 -0
- package/docs/configure/app/tools/ts-checker.md +2 -0
- package/docs/configure/app/usage.md +2 -0
- package/docs/guides/advanced-features/bff/cross-project.md +2 -0
- package/docs/guides/advanced-features/bff/data-platform.md +4 -2
- package/docs/guides/advanced-features/bff/extend-server.md +2 -0
- package/docs/guides/advanced-features/bff/frameworks.md +38 -24
- package/docs/guides/advanced-features/bff/function.md +4 -2
- package/docs/guides/advanced-features/bff/operators.md +19 -17
- package/docs/guides/advanced-features/bff/sdk.md +2 -0
- package/docs/guides/advanced-features/bff/upload.md +2 -0
- package/docs/guides/advanced-features/bff.md +2 -0
- package/docs/guides/advanced-features/build-performance.md +2 -0
- package/docs/guides/advanced-features/compatibility.md +2 -0
- package/docs/guides/advanced-features/international/advanced.md +2 -0
- package/docs/guides/advanced-features/international/api.md +2 -0
- package/docs/guides/advanced-features/international/best-practices.md +2 -0
- package/docs/guides/advanced-features/international/configuration.md +2 -0
- package/docs/guides/advanced-features/international/locale-detection.md +2 -0
- package/docs/guides/advanced-features/international/quick-start.md +2 -0
- package/docs/guides/advanced-features/international/resource-loading.md +2 -0
- package/docs/guides/advanced-features/international/routing.md +2 -0
- package/docs/guides/advanced-features/international.md +2 -0
- package/docs/guides/advanced-features/low-level.md +2 -0
- package/docs/guides/advanced-features/page-performance/code-split.md +2 -0
- package/docs/guides/advanced-features/page-performance/inline-assets.md +2 -0
- package/docs/guides/advanced-features/page-performance/optimize-bundle.md +2 -0
- package/docs/guides/advanced-features/page-performance/react-compiler.md +2 -0
- package/docs/guides/advanced-features/server-monitor/logger.md +2 -0
- package/docs/guides/advanced-features/server-monitor/metrics.md +2 -0
- package/docs/guides/advanced-features/server-monitor/monitors.md +2 -0
- package/docs/guides/advanced-features/source-build.md +2 -0
- package/docs/guides/advanced-features/web-server.md +2 -0
- package/docs/guides/basic-features/alias.md +2 -0
- package/docs/guides/basic-features/css/css-in-js.md +2 -0
- package/docs/guides/basic-features/css/css-modules.md +2 -0
- package/docs/guides/basic-features/css/css.md +2 -0
- package/docs/guides/basic-features/css/tailwindcss.md +2 -0
- package/docs/guides/basic-features/data/data-cache.md +2 -0
- package/docs/guides/basic-features/data/data-fetch.md +2 -0
- package/docs/guides/basic-features/data/data-write.md +2 -0
- package/docs/guides/basic-features/debug/mock.md +2 -0
- package/docs/guides/basic-features/debug/proxy.md +2 -0
- package/docs/guides/basic-features/debug/rsdoctor.md +2 -0
- package/docs/guides/basic-features/debug/using-storybook.md +2 -0
- package/docs/guides/basic-features/deploy.md +2 -0
- package/docs/guides/basic-features/env-vars.md +2 -0
- package/docs/guides/basic-features/html.md +2 -0
- package/docs/guides/basic-features/output-files.md +2 -0
- package/docs/guides/basic-features/render/before-render.md +2 -0
- package/docs/guides/basic-features/render/overview.md +2 -0
- package/docs/guides/basic-features/render/rsc.md +2 -0
- package/docs/guides/basic-features/render/ssg.md +2 -0
- package/docs/guides/basic-features/render/ssr-cache.md +2 -0
- package/docs/guides/basic-features/render/ssr.md +2 -0
- package/docs/guides/basic-features/render/streaming-ssr.md +2 -0
- package/docs/guides/basic-features/routes/config-routes.md +2 -0
- package/docs/guides/basic-features/routes/routes.md +2 -0
- package/docs/guides/basic-features/static-assets/json-files.md +2 -0
- package/docs/guides/basic-features/static-assets/svg-assets.md +2 -0
- package/docs/guides/basic-features/static-assets/wasm-assets.md +2 -0
- package/docs/guides/basic-features/static-assets.md +2 -0
- package/docs/guides/basic-features/testing/playwright.md +2 -0
- package/docs/guides/basic-features/testing/rstest.md +2 -0
- package/docs/guides/concept/builder.md +2 -0
- package/docs/guides/concept/entries.md +2 -0
- package/docs/guides/concept/server.md +2 -0
- package/docs/guides/get-started/ai-coding-agents.md +2 -0
- package/docs/guides/get-started/glossary.md +2 -0
- package/docs/guides/get-started/introduction.md +2 -0
- package/docs/guides/get-started/quick-start.md +3 -5
- package/docs/guides/get-started/tech-stack.md +2 -0
- package/docs/guides/get-started/ultramodern.md +11 -90
- package/docs/guides/get-started/upgrade.md +2 -0
- package/docs/guides/topic-detail/module-federation/application.md +2 -0
- package/docs/guides/topic-detail/module-federation/deploy.md +2 -0
- package/docs/guides/topic-detail/module-federation/i18n.md +2 -0
- package/docs/guides/topic-detail/module-federation/introduce.md +2 -0
- package/docs/guides/topic-detail/module-federation/ssr.md +2 -0
- package/docs/guides/topic-detail/module-federation/usage.md +2 -0
- package/docs/guides/troubleshooting/builder.md +2 -0
- package/docs/guides/troubleshooting/cli.md +2 -0
- package/docs/guides/troubleshooting/dependencies.md +2 -0
- package/docs/guides/troubleshooting/hmr.md +2 -0
- package/docs/guides/upgrade/config.md +2 -0
- package/docs/guides/upgrade/entry.md +2 -0
- package/docs/guides/upgrade/other.md +2 -0
- package/docs/guides/upgrade/overview.md +2 -0
- package/docs/guides/upgrade/tailwindcss.md +2 -0
- package/docs/guides/upgrade/web-server.md +2 -0
- package/docs/index.md +2 -0
- package/docs/llms.txt +2 -2
- package/docs/plugin/cli-plugins/api.md +2 -0
- package/docs/plugin/cli-plugins/life-cycle.md +2 -0
- package/docs/plugin/introduction.md +2 -0
- package/docs/plugin/official/cli-plugins/plugin-bff.md +2 -0
- package/docs/plugin/official/cli-plugins/plugin-ssg.md +2 -0
- package/docs/plugin/official/cli-plugins/plugin-styled-components.md +2 -0
- package/docs/plugin/official/cli-plugins.md +2 -0
- package/docs/plugin/plugin-system.md +2 -0
- package/docs/plugin/runtime-plugins/api.md +2 -0
- package/docs/plugin/runtime-plugins/life-cycle.md +2 -0
- package/docs/plugin/server-plugins/api.md +2 -0
- package/docs/plugin/server-plugins/life-cycle.md +2 -0
- package/docs/tutorials/examples/csr-auth.md +2 -0
- package/docs/tutorials/foundations/introduction.md +2 -0
- package/package.json +31 -39
- package/dist/cjs/builder/shared/builderPlugins/adapterPrecompress.js +0 -125
- package/dist/cjs/config/build-environment.js +0 -268
- package/dist/cjs/config/public.js +0 -46
- package/dist/cjs/plugins/backend-federation/codegen.js +0 -256
- package/dist/cjs/plugins/backend-federation/config.js +0 -204
- package/dist/cjs/plugins/backend-federation/emit.js +0 -150
- package/dist/cjs/plugins/deploy/platforms/cloudflare-output-verifier/index.js +0 -62
- package/dist/cjs/plugins/deploy/utils/npmAliases.js +0 -226
- package/dist/cjs/plugins/ultramodernReleaseEnvelope.js +0 -44
- package/dist/cjs/presetUltramodern.js +0 -168
- package/dist/cjs/types/config/precompress.js +0 -18
- package/dist/esm/builder/shared/builderPlugins/adapterPrecompress.mjs +0 -77
- package/dist/esm/config/build-environment.mjs +0 -224
- package/dist/esm/config/public.mjs +0 -1
- package/dist/esm/plugins/backend-federation/codegen.mjs +0 -205
- package/dist/esm/plugins/backend-federation/config.mjs +0 -128
- package/dist/esm/plugins/backend-federation/emit.mjs +0 -99
- package/dist/esm/plugins/backendFederationBuild.mjs +0 -1
- package/dist/esm/plugins/deploy/platforms/cloudflare-output-verifier/index.mjs +0 -1
- package/dist/esm/plugins/deploy/utils/npmAliases.mjs +0 -174
- package/dist/esm/plugins/ultramodernReleaseEnvelope.mjs +0 -6
- package/dist/esm/presetUltramodern.mjs +0 -112
- package/dist/esm/types/config/precompress.mjs +0 -0
- package/dist/esm-node/builder/shared/builderPlugins/adapterPrecompress.mjs +0 -78
- package/dist/esm-node/config/build-environment.mjs +0 -225
- package/dist/esm-node/config/public.mjs +0 -2
- package/dist/esm-node/plugins/backend-federation/codegen.mjs +0 -206
- package/dist/esm-node/plugins/backend-federation/config.mjs +0 -129
- package/dist/esm-node/plugins/backend-federation/emit.mjs +0 -100
- package/dist/esm-node/plugins/backendFederationBuild.mjs +0 -2
- package/dist/esm-node/plugins/deploy/platforms/cloudflare-output-verifier/index.mjs +0 -2
- package/dist/esm-node/plugins/deploy/utils/npmAliases.mjs +0 -175
- package/dist/esm-node/plugins/ultramodernReleaseEnvelope.mjs +0 -7
- package/dist/esm-node/presetUltramodern.mjs +0 -113
- package/dist/esm-node/types/config/precompress.mjs +0 -1
- package/dist/types/builder/shared/builderPlugins/adapterPrecompress.d.ts +0 -3
- package/dist/types/config/build-environment.d.ts +0 -22
- package/dist/types/config/public.d.ts +0 -2
- package/dist/types/plugins/backend-federation/codegen.d.ts +0 -86
- package/dist/types/plugins/backend-federation/config.d.ts +0 -103
- package/dist/types/plugins/backend-federation/emit.d.ts +0 -13
- package/dist/types/plugins/backendFederationBuild.d.ts +0 -2
- package/dist/types/plugins/deploy/platforms/cloudflare-output-verifier/index.d.ts +0 -1
- package/dist/types/plugins/deploy/utils/npmAliases.d.ts +0 -14
- package/dist/types/plugins/ultramodernReleaseEnvelope.d.ts +0 -3
- package/dist/types/presetUltramodern.d.ts +0 -87
- package/dist/types/types/config/precompress.d.ts +0 -20
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { AppNormalizedConfig } from '../../types';
|
|
2
|
-
import type { AppToolsContext } from '../../types/plugin';
|
|
1
|
+
import type { AppNormalizedConfig } from '../../types/index.js';
|
|
2
|
+
import type { AppToolsContext } from '../../types/plugin.js';
|
|
3
3
|
export declare function createBuilderProviderConfig(resolveConfig: AppNormalizedConfig, appContext: AppToolsContext): Omit<AppNormalizedConfig, 'plugins'>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Rspack, RspackChain } from '@rsbuild/core';
|
|
2
|
-
import type { AppNormalizedConfig } from '../../types';
|
|
3
|
-
import type { AppToolsContext } from '../../types/plugin';
|
|
2
|
+
import type { AppNormalizedConfig } from '../../types/index.js';
|
|
3
|
+
import type { AppToolsContext } from '../../types/plugin.js';
|
|
4
4
|
declare const info: (file: {
|
|
5
5
|
sourceFilename: string;
|
|
6
6
|
}) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { AppNormalizedConfig } from '../../types';
|
|
2
|
-
import type { AppToolsContext } from '../../types/plugin';
|
|
1
|
+
import type { AppNormalizedConfig } from '../../types/index.js';
|
|
2
|
+
import type { AppToolsContext } from '../../types/plugin.js';
|
|
3
3
|
export declare function getBuilderEnvironments(normalizedConfig: AppNormalizedConfig, appContext: AppToolsContext, tempBuilderConfig: Omit<AppNormalizedConfig, 'plugins'>): {
|
|
4
4
|
environments: Record<string, import("@rsbuild/core").EnvironmentConfig>;
|
|
5
5
|
builderConfig: Omit<AppNormalizedConfig, "plugins">;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export declare function createBuilderGenerator(): Promise<typeof import("./builder-rspack/index.js").createRspackBuilderForModern>;
|
|
2
2
|
export { parseRspackConfig } from '@modern-js/builder';
|
|
3
|
-
export { builderPluginAdapterBasic, builderPluginAdapterHooks, } from './shared/builderPlugins';
|
|
3
|
+
export { builderPluginAdapterBasic, builderPluginAdapterHooks, } from './shared/builderPlugins/index.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { type Rspack } from '@modern-js/builder';
|
|
2
2
|
import { type RsbuildPlugin } from '@rsbuild/core';
|
|
3
|
-
import type { AppNormalizedConfig } from '../../../types';
|
|
4
|
-
import type { AppToolsContext } from '../../../types/plugin';
|
|
5
|
-
import type { BuilderOptions } from '../types';
|
|
3
|
+
import type { AppNormalizedConfig } from '../../../types/index.js';
|
|
4
|
+
import type { AppToolsContext } from '../../../types/plugin.js';
|
|
5
|
+
import type { BuilderOptions } from '../types.js';
|
|
6
6
|
export declare const builderPluginAdapterSSR: (options: BuilderOptions) => RsbuildPlugin;
|
|
7
7
|
/**
|
|
8
8
|
* When a stream SSR project has lazy compilation enabled, return a
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
export * from './adapterBasic';
|
|
2
|
-
export * from './adapterHtml';
|
|
3
|
-
export * from './
|
|
4
|
-
export * from './
|
|
5
|
-
export * from './builderHooks';
|
|
1
|
+
export * from './adapterBasic.js';
|
|
2
|
+
export * from './adapterHtml.js';
|
|
3
|
+
export * from './adapterSSR.js';
|
|
4
|
+
export * from './builderHooks.js';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './HtmlAsyncChunkPlugin';
|
|
2
|
-
export * from './HtmlBottomTemplate';
|
|
3
|
-
export * from './RouterPlugin';
|
|
1
|
+
export * from './HtmlAsyncChunkPlugin.js';
|
|
2
|
+
export * from './HtmlBottomTemplate.js';
|
|
3
|
+
export * from './RouterPlugin.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { AppNormalizedConfig } from '../../types';
|
|
2
|
-
import type { AppToolsContext } from '../../types/plugin';
|
|
1
|
+
import type { AppNormalizedConfig } from '../../types/index.js';
|
|
2
|
+
import type { AppToolsContext } from '../../types/plugin.js';
|
|
3
3
|
export declare function createCopyInfo(appContext: AppToolsContext, config: AppNormalizedConfig): {
|
|
4
4
|
configDir: string;
|
|
5
5
|
uploadDir: string;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './builderPlugins';
|
|
2
|
-
export * from './createCopyInfo';
|
|
3
|
-
export * from './types';
|
|
1
|
+
export * from './builderPlugins/index.js';
|
|
2
|
+
export * from './createCopyInfo.js';
|
|
3
|
+
export * from './types.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { EagerRouteComponentFilesByEntry } from '@modern-js/utils';
|
|
2
|
-
import type { AppNormalizedConfig } from '../../types';
|
|
3
|
-
import type { AppToolsContext } from '../../types/plugin';
|
|
2
|
+
import type { AppNormalizedConfig } from '../../types/index.js';
|
|
3
|
+
import type { AppToolsContext } from '../../types/plugin.js';
|
|
4
4
|
export type BuilderOptions = {
|
|
5
5
|
normalizedConfig: AppNormalizedConfig;
|
|
6
6
|
appContext: AppToolsContext;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { CLIPluginAPI } from '@modern-js/plugin';
|
|
2
|
-
import type { AppTools } from '../types';
|
|
3
|
-
import type { BuildOptions } from '../utils/types';
|
|
2
|
+
import type { AppTools } from '../types/index.js';
|
|
3
|
+
import type { BuildOptions } from '../utils/types.js';
|
|
4
4
|
export declare const build: (api: CLIPluginAPI<AppTools>, options?: BuildOptions) => Promise<void>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { CLIPluginAPI } from '@modern-js/plugin';
|
|
2
|
-
import type { AppTools } from '../types';
|
|
3
|
-
import type { DeployOptions } from '../utils/types';
|
|
2
|
+
import type { AppTools } from '../types/index.js';
|
|
3
|
+
import type { DeployOptions } from '../utils/types.js';
|
|
4
4
|
export declare const deploy: (api: CLIPluginAPI<AppTools>, options?: DeployOptions) => Promise<void>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { CLIPluginAPI } from '@modern-js/plugin';
|
|
2
2
|
import { type ApplyPlugins } from '@modern-js/server';
|
|
3
|
-
import type { AppTools } from '../types';
|
|
4
|
-
import type { DevOptions } from '../utils/types';
|
|
3
|
+
import type { AppTools } from '../types/index.js';
|
|
4
|
+
import type { DevOptions } from '../utils/types.js';
|
|
5
5
|
interface ExtraServerOptions {
|
|
6
6
|
applyPlugins?: ApplyPlugins;
|
|
7
7
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { CLIPluginAPI } from '@modern-js/plugin';
|
|
2
2
|
import type { Command } from '@modern-js/utils';
|
|
3
|
-
import type { AppTools } from '../types';
|
|
3
|
+
import type { AppTools } from '../types/index.js';
|
|
4
4
|
export declare const devCommand: (program: Command, api: CLIPluginAPI<AppTools>) => Promise<void>;
|
|
5
5
|
export declare const buildCommand: (program: Command, api: CLIPluginAPI<AppTools>) => Promise<void>;
|
|
6
6
|
export declare const serverCommand: (program: Command, api: CLIPluginAPI<AppTools>) => void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { CLIPluginAPI } from '@modern-js/plugin';
|
|
2
|
-
import type { AppTools } from '../types';
|
|
3
|
-
import type { InfoOptions } from '../utils/types';
|
|
2
|
+
import type { AppTools } from '../types/index.js';
|
|
3
|
+
import type { InfoOptions } from '../utils/types.js';
|
|
4
4
|
export interface EntryInfo {
|
|
5
5
|
entryName: string;
|
|
6
6
|
isMainEntry: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { CLIPluginAPI } from '@modern-js/plugin';
|
|
2
|
-
import type { AppTools } from '../types';
|
|
3
|
-
import type { InspectOptions } from '../utils/types';
|
|
2
|
+
import type { AppTools } from '../types/index.js';
|
|
3
|
+
import type { InspectOptions } from '../utils/types.js';
|
|
4
4
|
export declare const inspect: (api: CLIPluginAPI<AppTools>, options: InspectOptions) => Promise<import("@rsbuild/core").InspectConfigResult>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { CLIPluginAPI } from '@modern-js/plugin';
|
|
2
2
|
import { createProdServer } from '@modern-js/prod-server';
|
|
3
|
-
import type { AppTools } from '../types';
|
|
3
|
+
import type { AppTools } from '../types/index.js';
|
|
4
4
|
type ExtraServerOptions = {
|
|
5
5
|
launcher?: typeof createProdServer;
|
|
6
6
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { AppTools, CliPlugin } from '../types';
|
|
1
|
+
import type { AppTools, CliPlugin } from '../types/index.js';
|
|
2
2
|
export declare const compatPlugin: () => CliPlugin<AppTools>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { AppUserConfig } from '../types';
|
|
2
|
-
import type { AppToolsContext } from '../types/plugin';
|
|
1
|
+
import type { AppUserConfig } from '../types/index.js';
|
|
2
|
+
import type { AppToolsContext } from '../types/plugin.js';
|
|
3
3
|
export declare function createDefaultConfig(appContext: AppToolsContext): AppUserConfig;
|
|
4
4
|
/**
|
|
5
5
|
* Default-enable lazy compilation for pure CSR and stream SSR. Stream SSR keeps
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
export * from './
|
|
2
|
-
export * from './
|
|
3
|
-
export * from './initialize';
|
|
1
|
+
export * from './default.js';
|
|
2
|
+
export * from './initialize/index.js';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { AppNormalizedConfig } from '../../types';
|
|
2
|
-
import type { AppToolsContext } from '../../types/plugin';
|
|
1
|
+
import type { AppNormalizedConfig } from '../../types/index.js';
|
|
2
|
+
import type { AppToolsContext } from '../../types/plugin.js';
|
|
3
3
|
export declare function initialNormalizedConfig(config: AppNormalizedConfig, appContext: AppToolsContext): AppNormalizedConfig;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AppNormalizedConfig } from '../../types';
|
|
2
|
-
import type { AppToolsContext } from '../../types/plugin';
|
|
1
|
+
import type { AppNormalizedConfig } from '../../types/index.js';
|
|
2
|
+
import type { AppToolsContext } from '../../types/plugin.js';
|
|
3
3
|
export declare function initHtmlConfig(config: AppNormalizedConfig, appContext: AppToolsContext): AppNormalizedConfig['html'];
|
|
4
4
|
export declare function initSourceConfig(config: AppNormalizedConfig, appContext: AppToolsContext): void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AppUserConfig } from './types';
|
|
1
|
+
import type { AppUserConfig } from './types/index.js';
|
|
2
2
|
export type ConfigParams = {
|
|
3
3
|
env: string;
|
|
4
4
|
command: string;
|
|
@@ -8,4 +8,4 @@ export type UserConfigExport<Config> = Config | ((env: ConfigParams) => Config |
|
|
|
8
8
|
* This function helps you to autocomplete configuration types.
|
|
9
9
|
* It accepts a direct config object, or a function that returns a config.
|
|
10
10
|
*/
|
|
11
|
-
export declare const defineConfig: (config: UserConfigExport<AppUserConfig>) => UserConfigExport<import("./types").AppToolsUserConfig>;
|
|
11
|
+
export declare const defineConfig: (config: UserConfigExport<AppUserConfig>) => UserConfigExport<import("./types/index.js").AppToolsUserConfig>;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
export * from './
|
|
5
|
-
export declare const appTools: () => CliPlugin<AppTools>;
|
|
6
|
-
export { build } from './commands/build';
|
|
7
|
-
export { deploy } from './commands/deploy';
|
|
8
|
-
export { dev } from './commands/dev';
|
|
9
|
-
export { serve } from './commands/serve';
|
|
10
|
-
export { defineConfig } from './defineConfig';
|
|
11
|
-
export { type ResolveModernRsbuildConfigOptions, resolveModernRsbuildConfig, } from './rsbuild';
|
|
12
|
-
export * from './types';
|
|
13
|
-
export { closeServer } from './utils/createServer';
|
|
14
|
-
export { generateWatchFiles } from './utils/generateWatchFiles';
|
|
15
|
-
export type { BuildOptions, DeployOptions, DevOptions } from './utils/types';
|
|
1
|
+
import { type PolicyDefaultsOptions } from '@modern-js/app-tools-extensions/policy-defaults';
|
|
2
|
+
import type { AppTools, CliPlugin } from './types/index.js';
|
|
3
|
+
import { initAppContext } from './utils/initAppContext.js';
|
|
4
|
+
export * from './defineConfig.js';
|
|
5
|
+
export declare const appTools: (options?: PolicyDefaultsOptions) => CliPlugin<AppTools>;
|
|
6
|
+
export { build } from './commands/build.js';
|
|
7
|
+
export { deploy } from './commands/deploy.js';
|
|
8
|
+
export { dev } from './commands/dev.js';
|
|
9
|
+
export { serve } from './commands/serve.js';
|
|
10
|
+
export { defineConfig } from './defineConfig.js';
|
|
11
|
+
export { type ResolveModernRsbuildConfigOptions, resolveModernRsbuildConfig, } from './rsbuild.js';
|
|
12
|
+
export * from './types/index.js';
|
|
13
|
+
export { closeServer } from './utils/createServer.js';
|
|
14
|
+
export { generateWatchFiles } from './utils/generateWatchFiles.js';
|
|
15
|
+
export type { BuildOptions, DeployOptions, DevOptions } from './utils/types.js';
|
|
16
16
|
export { initAppContext };
|
|
17
17
|
export default appTools;
|
|
18
18
|
export { mergeConfig } from '@modern-js/plugin/cli';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { Entrypoint } from '@modern-js/types';
|
|
2
|
-
import type { AppNormalizedConfig } from '../../types';
|
|
3
|
-
import type { AppToolsContext, AppToolsHooks } from '../../types/plugin';
|
|
2
|
+
import type { AppNormalizedConfig } from '../../types/index.js';
|
|
3
|
+
import type { AppToolsContext, AppToolsHooks } from '../../types/plugin.js';
|
|
4
4
|
export declare const getBundleEntry: (hooks: AppToolsHooks, appContext: AppToolsContext, config: AppNormalizedConfig) => Promise<Entrypoint[]>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Entrypoint } from '@modern-js/types';
|
|
2
|
-
import type { AppNormalizedConfig } from '../../types';
|
|
3
|
-
import type { AppToolsContext, AppToolsHooks } from '../../types/plugin';
|
|
2
|
+
import type { AppNormalizedConfig } from '../../types/index.js';
|
|
3
|
+
import type { AppToolsContext, AppToolsHooks } from '../../types/plugin.js';
|
|
4
4
|
export type { Entrypoint };
|
|
5
5
|
export declare const hasEntry: (dir: string) => string | false;
|
|
6
6
|
export declare const hasServerEntry: (dir: string) => string | false;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Entrypoint, HtmlPartials, HtmlTemplates } from '@modern-js/types';
|
|
2
|
-
import type { AppNormalizedConfig } from '../../types';
|
|
3
|
-
import type { AppToolsContext, AppToolsHooks } from '../../types/plugin';
|
|
2
|
+
import type { AppNormalizedConfig } from '../../types/index.js';
|
|
3
|
+
import type { AppToolsContext, AppToolsHooks } from '../../types/plugin.js';
|
|
4
4
|
export declare const getModifyHtmlPartials: (partials: Record<keyof HtmlPartials, string[]>) => {
|
|
5
5
|
top: {
|
|
6
6
|
append: (...script: string[]) => void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Entrypoint, ServerRoute } from '@modern-js/types';
|
|
2
|
-
import type { AppNormalizedConfig } from '../../types';
|
|
3
|
-
import type { AppToolsContext } from '../../types/plugin';
|
|
2
|
+
import type { AppNormalizedConfig } from '../../types/index.js';
|
|
3
|
+
import type { AppToolsContext } from '../../types/plugin.js';
|
|
4
4
|
export declare const getServerRoutes: (entrypoints: Entrypoint[], { appContext, config, }: {
|
|
5
5
|
appContext: AppToolsContext;
|
|
6
6
|
config: AppNormalizedConfig;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { AppTools, AppToolsNormalizedConfig, CliPlugin } from '../../types';
|
|
2
|
-
import type { DeployTarget } from '../../types/config/deploy';
|
|
1
|
+
import type { AppTools, AppToolsNormalizedConfig, CliPlugin } from '../../types/index.js';
|
|
2
|
+
import type { DeployTarget } from '../../types/config/deploy.js';
|
|
3
3
|
export declare const getSupportedDeployTargets: () => DeployTarget[];
|
|
4
4
|
export declare const resolveDeployTarget: (modernConfig: AppToolsNormalizedConfig, envDeployTarget?: string | undefined, detectedProvider?: import("std-env").ProviderName) => string;
|
|
5
5
|
export default _default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { CreatePreset } from './platform';
|
|
1
|
+
import type { CreatePreset } from './platform.js';
|
|
2
2
|
export declare const createGhPagesPreset: CreatePreset;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { CreatePreset } from './platform';
|
|
1
|
+
import type { CreatePreset } from './platform.js';
|
|
2
2
|
export declare const createNetlifyPreset: CreatePreset;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { CreatePreset } from './platform';
|
|
1
|
+
import type { CreatePreset } from './platform.js';
|
|
2
2
|
export declare const createNodePreset: CreatePreset;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { AppToolsNormalizedConfig } from '../../../types';
|
|
2
|
-
import type { AppToolsContext } from '../../../types/plugin';
|
|
3
|
-
import type { PluginAPI } from '../types';
|
|
1
|
+
import type { AppToolsNormalizedConfig } from '../../../types/index.js';
|
|
2
|
+
import type { AppToolsContext } from '../../../types/plugin.js';
|
|
3
|
+
import type { PluginAPI } from '../types.js';
|
|
4
4
|
interface CreatePresetParams {
|
|
5
5
|
appContext: AppToolsContext;
|
|
6
6
|
modernConfig: AppToolsNormalizedConfig;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { CreatePreset } from './platform';
|
|
1
|
+
import type { CreatePreset } from './platform.js';
|
|
2
2
|
export declare const createVercelPreset: CreatePreset;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import type { ProdServerOptions } from '@modern-js/prod-server';
|
|
2
|
-
import type { AppToolsNormalizedConfig } from '../../../types';
|
|
3
|
-
import type { AppToolsContext } from '../../../types/plugin';
|
|
2
|
+
import type { AppToolsNormalizedConfig } from '../../../types/index.js';
|
|
3
|
+
import type { AppToolsContext } from '../../../types/plugin.js';
|
|
4
4
|
export declare const serverAppContextTemplate: (appContext: AppToolsContext) => {
|
|
5
5
|
sharedDirectory: string;
|
|
6
6
|
apiDirectory: string;
|
|
7
7
|
lambdaDirectory: string;
|
|
8
8
|
metaName: string;
|
|
9
|
-
bffRuntimeFramework:
|
|
9
|
+
bffRuntimeFramework: keyof import("@modern-js/plugin/server").BffRuntimeRegistry;
|
|
10
10
|
};
|
|
11
11
|
export type PluginItem = [string, Record<string, any> | undefined];
|
|
12
12
|
export declare const genPluginImportsCode: (plugins: PluginItem[], isESM?: boolean) => string;
|
package/dist/types/rsbuild.d.ts
CHANGED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The fork's default server policy (localised loaders, error responses,
|
|
3
|
+
* telemetry, module-federation CSS and asset headers, static serving).
|
|
4
|
+
*
|
|
5
|
+
* It is exposed from `@modern-js/app-tools` so a plain `appTools()` app can
|
|
6
|
+
* load it by a specifier it is guaranteed to be able to resolve: every app
|
|
7
|
+
* declares `@modern-js/app-tools`, but not necessarily
|
|
8
|
+
* `@modern-js/server-runtime-extensions`.
|
|
9
|
+
*/
|
|
10
|
+
export { default } from '@modern-js/server-runtime-extensions/server-plugin';
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import type { CLIPlugin, CLIPluginExtends } from '@modern-js/plugin';
|
|
2
2
|
import type { BffUserConfig, ServerUserConfig } from '@modern-js/server-core';
|
|
3
3
|
import type { RsbuildConfig } from '@rsbuild/core';
|
|
4
|
-
import type { AppToolsExtendAPI, AppToolsExtendContext, AppToolsExtendHooks } from '../plugin';
|
|
5
|
-
import type { DeployUserConfig } from './deploy';
|
|
6
|
-
import type { DevUserConfig } from './dev';
|
|
7
|
-
import type { ExperimentsUserConfig } from './experiments';
|
|
8
|
-
import type { HtmlUserConfig } from './html';
|
|
9
|
-
import type { OutputUserConfig } from './output';
|
|
10
|
-
import type { PerformanceUserConfig } from './performance';
|
|
11
|
-
import type { ResolveUserConfig } from './resolve';
|
|
12
|
-
import type { SecurityUserConfig } from './security';
|
|
13
|
-
import type { SourceUserConfig } from './source';
|
|
14
|
-
import type { TestingUserConfig } from './testing';
|
|
15
|
-
import type { ToolsUserConfig } from './tools';
|
|
16
|
-
export * from './output';
|
|
4
|
+
import type { AppToolsExtendAPI, AppToolsExtendContext, AppToolsExtendHooks } from '../plugin.js';
|
|
5
|
+
import type { DeployUserConfig } from './deploy.js';
|
|
6
|
+
import type { DevUserConfig } from './dev.js';
|
|
7
|
+
import type { ExperimentsUserConfig } from './experiments.js';
|
|
8
|
+
import type { HtmlUserConfig } from './html.js';
|
|
9
|
+
import type { OutputUserConfig } from './output.js';
|
|
10
|
+
import type { PerformanceUserConfig } from './performance.js';
|
|
11
|
+
import type { ResolveUserConfig } from './resolve.js';
|
|
12
|
+
import type { SecurityUserConfig } from './security.js';
|
|
13
|
+
import type { SourceUserConfig } from './source.js';
|
|
14
|
+
import type { TestingUserConfig } from './testing.js';
|
|
15
|
+
import type { ToolsUserConfig } from './tools.js';
|
|
16
|
+
export * from './output.js';
|
|
17
17
|
export type AppToolsBuilderPlugins = NonNullable<RsbuildConfig['plugins']>;
|
|
18
18
|
export interface AppToolsUserConfig {
|
|
19
19
|
resolve?: ResolveUserConfig;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import type { BuilderConfig } from '@modern-js/builder';
|
|
2
2
|
import type { SSGConfig, SSGMultiEntryOptions } from '@modern-js/types';
|
|
3
|
-
import type { UnwrapBuilderConfig } from '../utils';
|
|
4
|
-
import type { PrecompressConfig } from './precompress';
|
|
5
|
-
export type { PrecompressCodecOptions, PrecompressConfig } from './precompress';
|
|
3
|
+
import type { UnwrapBuilderConfig } from '../utils.js';
|
|
6
4
|
export interface OutputUserConfig extends UnwrapBuilderConfig<BuilderConfig, 'output'> {
|
|
7
5
|
/**
|
|
8
6
|
* Enable SSG for self-controlled routing or conventional routing.
|
|
@@ -34,12 +32,5 @@ export interface OutputUserConfig extends UnwrapBuilderConfig<BuilderConfig, 'ou
|
|
|
34
32
|
* Specify the temporary directory for framework generated files.
|
|
35
33
|
*/
|
|
36
34
|
tempDir?: string;
|
|
37
|
-
/**
|
|
38
|
-
* Generate precompressed static assets by using compression-webpack-plugin.
|
|
39
|
-
* `true` means enabling both gzip and brotli with default options.
|
|
40
|
-
* Disabled unless explicitly configured; `presetUltramodern` enables it.
|
|
41
|
-
* @default false
|
|
42
|
-
*/
|
|
43
|
-
precompress?: boolean | PrecompressConfig;
|
|
44
35
|
}
|
|
45
36
|
export type { SSGConfig, SSGMultiEntryOptions, SSGRouteOptions, SSGSingleEntryOptions, } from '@modern-js/types';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { BuilderConfig } from '@modern-js/builder';
|
|
2
2
|
import type { JestConfig } from '@modern-js/types';
|
|
3
|
-
import type { UnwrapBuilderConfig } from '../utils';
|
|
3
|
+
import type { UnwrapBuilderConfig } from '../utils.js';
|
|
4
4
|
type BuilderToolsConfig = UnwrapBuilderConfig<BuilderConfig, 'tools'>;
|
|
5
5
|
export interface ToolsUserConfig extends Omit<BuilderToolsConfig, 'swc'> {
|
|
6
6
|
/**
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { CLIPluginAPI, CLIPluginExtends, RuntimePluginConfig, ServerPluginConfig } from '@modern-js/plugin';
|
|
2
|
-
import type { AppTools, AppToolsNormalizedConfig, AppToolsUserConfig } from './config';
|
|
2
|
+
import type { AppTools, AppToolsNormalizedConfig, AppToolsUserConfig } from './config/index.js';
|
|
3
3
|
export type { Rspack } from '@modern-js/builder';
|
|
4
4
|
export type { BffNormalizedConfig, BffUserConfig, LoaderContext, OnError, OnTiming, Params, RequestHandler, RequestHandlerConfig, RequestHandlerOptions, Resource, ServerNormalizedConfig, ServerUserConfig, SSR, SSRByEntries, } from '@modern-js/server-core';
|
|
5
|
-
export * from './config';
|
|
5
|
+
export * from './config/index.js';
|
|
6
6
|
export type { CLIPluginExtends, RuntimePluginConfig, ServerPluginConfig };
|
|
7
7
|
export type AppUserConfig = AppToolsUserConfig;
|
|
8
8
|
export type AppNormalizedConfig = AppToolsNormalizedConfig;
|
|
9
9
|
export type AppToolsAPI = CLIPluginAPI<AppTools>;
|
|
10
|
-
export type { AppToolsContext, AppToolsExtendAPI, AppToolsExtendContext, AppToolsExtendHooks, AppToolsHooks as AppToolsFeatureHooks, } from './plugin';
|
|
10
|
+
export type { AfterBffCompileFn, AppToolsContext, AppToolsExtendAPI, AppToolsExtendContext, AppToolsExtendHooks, AppToolsHooks as AppToolsFeatureHooks, BeforeBffCompileFn, BffClientArtifact, BffClientArtifacts, BffCompilation, BffGeneratedEntries, BffGeneratedModule, BffGeneration, ModifyBffClientArtifactsFn, ModifyBffGeneratedEntriesFn, } from './plugin.js';
|