@sebbro/paraglide-lite 0.1.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 +21 -0
- package/README.md +67 -0
- package/bin/run.js +4 -0
- package/dist/bundler-plugins/esbuild.d.ts +1 -0
- package/dist/bundler-plugins/esbuild.d.ts.map +1 -0
- package/dist/bundler-plugins/esbuild.js +4 -0
- package/dist/bundler-plugins/esbuild.js.map +1 -0
- package/dist/bundler-plugins/index.d.ts +6 -0
- package/dist/bundler-plugins/index.d.ts.map +1 -0
- package/dist/bundler-plugins/index.js +7 -0
- package/dist/bundler-plugins/index.js.map +1 -0
- package/dist/bundler-plugins/lazy-modules/scan-message-keys.d.ts +19 -0
- package/dist/bundler-plugins/lazy-modules/scan-message-keys.d.ts.map +1 -0
- package/dist/bundler-plugins/lazy-modules/scan-message-keys.js +85 -0
- package/dist/bundler-plugins/lazy-modules/scan-message-keys.js.map +1 -0
- package/dist/bundler-plugins/lazy-modules/scan-message-keys.test.d.ts +2 -0
- package/dist/bundler-plugins/lazy-modules/scan-message-keys.test.d.ts.map +1 -0
- package/dist/bundler-plugins/lazy-modules/scan-message-keys.test.js +53 -0
- package/dist/bundler-plugins/lazy-modules/scan-message-keys.test.js.map +1 -0
- package/dist/bundler-plugins/lazy-modules/ssr.d.ts +31 -0
- package/dist/bundler-plugins/lazy-modules/ssr.d.ts.map +1 -0
- package/dist/bundler-plugins/lazy-modules/ssr.js +42 -0
- package/dist/bundler-plugins/lazy-modules/ssr.js.map +1 -0
- package/dist/bundler-plugins/lazy-modules/ssr.test.d.ts +2 -0
- package/dist/bundler-plugins/lazy-modules/ssr.test.d.ts.map +1 -0
- package/dist/bundler-plugins/lazy-modules/ssr.test.js +48 -0
- package/dist/bundler-plugins/lazy-modules/ssr.test.js.map +1 -0
- package/dist/bundler-plugins/lazy-modules/virtual-ids.d.ts +7 -0
- package/dist/bundler-plugins/lazy-modules/virtual-ids.d.ts.map +1 -0
- package/dist/bundler-plugins/lazy-modules/virtual-ids.js +30 -0
- package/dist/bundler-plugins/lazy-modules/virtual-ids.js.map +1 -0
- package/dist/bundler-plugins/lazy-modules/virtual.d.ts +86 -0
- package/dist/bundler-plugins/lazy-modules/virtual.d.ts.map +1 -0
- package/dist/bundler-plugins/lazy-modules/virtual.js +2 -0
- package/dist/bundler-plugins/lazy-modules/virtual.js.map +1 -0
- package/dist/bundler-plugins/lazy-modules/vite-plugin.d.ts +18 -0
- package/dist/bundler-plugins/lazy-modules/vite-plugin.d.ts.map +1 -0
- package/dist/bundler-plugins/lazy-modules/vite-plugin.js +328 -0
- package/dist/bundler-plugins/lazy-modules/vite-plugin.js.map +1 -0
- package/dist/bundler-plugins/lazy-modules/vite-plugin.test.d.ts +2 -0
- package/dist/bundler-plugins/lazy-modules/vite-plugin.test.d.ts.map +1 -0
- package/dist/bundler-plugins/lazy-modules/vite-plugin.test.js +45 -0
- package/dist/bundler-plugins/lazy-modules/vite-plugin.test.js.map +1 -0
- package/dist/bundler-plugins/per-locale-build/constants.d.ts +2 -0
- package/dist/bundler-plugins/per-locale-build/constants.d.ts.map +1 -0
- package/dist/bundler-plugins/per-locale-build/constants.js +3 -0
- package/dist/bundler-plugins/per-locale-build/constants.js.map +1 -0
- package/dist/bundler-plugins/per-locale-build/index.d.ts +6 -0
- package/dist/bundler-plugins/per-locale-build/index.d.ts.map +1 -0
- package/dist/bundler-plugins/per-locale-build/index.js +43 -0
- package/dist/bundler-plugins/per-locale-build/index.js.map +1 -0
- package/dist/bundler-plugins/per-locale-build/locale-id.d.ts +8 -0
- package/dist/bundler-plugins/per-locale-build/locale-id.d.ts.map +1 -0
- package/dist/bundler-plugins/per-locale-build/locale-id.js +13 -0
- package/dist/bundler-plugins/per-locale-build/locale-id.js.map +1 -0
- package/dist/bundler-plugins/per-locale-build/types.d.ts +4 -0
- package/dist/bundler-plugins/per-locale-build/types.d.ts.map +1 -0
- package/dist/bundler-plugins/per-locale-build/types.js +2 -0
- package/dist/bundler-plugins/per-locale-build/types.js.map +1 -0
- package/dist/bundler-plugins/per-locale-build/vite-environments.d.ts +51 -0
- package/dist/bundler-plugins/per-locale-build/vite-environments.d.ts.map +1 -0
- package/dist/bundler-plugins/per-locale-build/vite-environments.js +250 -0
- package/dist/bundler-plugins/per-locale-build/vite-environments.js.map +1 -0
- package/dist/bundler-plugins/per-locale-build/vite-environments.test.d.ts +1 -0
- package/dist/bundler-plugins/per-locale-build/vite-environments.test.d.ts.map +1 -0
- package/dist/bundler-plugins/per-locale-build/vite-environments.test.js +250 -0
- package/dist/bundler-plugins/per-locale-build/vite-environments.test.js.map +1 -0
- package/dist/bundler-plugins/plugin-core.d.ts +74 -0
- package/dist/bundler-plugins/plugin-core.d.ts.map +1 -0
- package/dist/bundler-plugins/plugin-core.js +292 -0
- package/dist/bundler-plugins/plugin-core.js.map +1 -0
- package/dist/bundler-plugins/rolldown.d.ts +10 -0
- package/dist/bundler-plugins/rolldown.d.ts.map +1 -0
- package/dist/bundler-plugins/rolldown.js +36 -0
- package/dist/bundler-plugins/rolldown.js.map +1 -0
- package/dist/bundler-plugins/rolldown.test.d.ts +1 -0
- package/dist/bundler-plugins/rolldown.test.d.ts.map +1 -0
- package/dist/bundler-plugins/rolldown.test.js +72 -0
- package/dist/bundler-plugins/rolldown.test.js.map +1 -0
- package/dist/bundler-plugins/rollup.d.ts +1 -0
- package/dist/bundler-plugins/rollup.d.ts.map +1 -0
- package/dist/bundler-plugins/rollup.js +4 -0
- package/dist/bundler-plugins/rollup.js.map +1 -0
- package/dist/bundler-plugins/rspack.d.ts +1 -0
- package/dist/bundler-plugins/rspack.d.ts.map +1 -0
- package/dist/bundler-plugins/rspack.js +4 -0
- package/dist/bundler-plugins/rspack.js.map +1 -0
- package/dist/bundler-plugins/unplugin.d.ts +3 -0
- package/dist/bundler-plugins/unplugin.d.ts.map +1 -0
- package/dist/bundler-plugins/unplugin.js +62 -0
- package/dist/bundler-plugins/unplugin.js.map +1 -0
- package/dist/bundler-plugins/unplugin.test.d.ts +1 -0
- package/dist/bundler-plugins/unplugin.test.d.ts.map +1 -0
- package/dist/bundler-plugins/unplugin.test.js +256 -0
- package/dist/bundler-plugins/unplugin.test.js.map +1 -0
- package/dist/bundler-plugins/virtual-modules.test.d.ts +1 -0
- package/dist/bundler-plugins/virtual-modules.test.d.ts.map +1 -0
- package/dist/bundler-plugins/virtual-modules.test.js +77 -0
- package/dist/bundler-plugins/virtual-modules.test.js.map +1 -0
- package/dist/bundler-plugins/vite.d.ts +17 -0
- package/dist/bundler-plugins/vite.d.ts.map +1 -0
- package/dist/bundler-plugins/vite.js +15 -0
- package/dist/bundler-plugins/vite.js.map +1 -0
- package/dist/bundler-plugins/vite.test.d.ts +1 -0
- package/dist/bundler-plugins/vite.test.d.ts.map +1 -0
- package/dist/bundler-plugins/vite.test.js +61 -0
- package/dist/bundler-plugins/vite.test.js.map +1 -0
- package/dist/bundler-plugins/webpack.d.ts +1 -0
- package/dist/bundler-plugins/webpack.d.ts.map +1 -0
- package/dist/bundler-plugins/webpack.js +4 -0
- package/dist/bundler-plugins/webpack.js.map +1 -0
- package/dist/cli/commands/compile/command.d.ts +2 -0
- package/dist/cli/commands/compile/command.d.ts.map +1 -0
- package/dist/cli/commands/compile/command.js +225 -0
- package/dist/cli/commands/compile/command.js.map +1 -0
- package/dist/cli/commands/compile/command.test.d.ts +1 -0
- package/dist/cli/commands/compile/command.test.d.ts.map +1 -0
- package/dist/cli/commands/compile/command.test.js +69 -0
- package/dist/cli/commands/compile/command.test.js.map +1 -0
- package/dist/cli/commands/init/command.d.ts +2 -0
- package/dist/cli/commands/init/command.d.ts.map +1 -0
- package/dist/cli/commands/init/command.js +90 -0
- package/dist/cli/commands/init/command.js.map +1 -0
- package/dist/cli/defaults.d.ts +11 -0
- package/dist/cli/defaults.d.ts.map +1 -0
- package/dist/cli/defaults.js +13 -0
- package/dist/cli/defaults.js.map +1 -0
- package/dist/cli/index.d.ts +2 -0
- package/dist/cli/index.d.ts.map +1 -0
- package/dist/cli/index.js +11 -0
- package/dist/cli/index.js.map +1 -0
- package/dist/cli/steps/add-vite-plugin.d.ts +31 -0
- package/dist/cli/steps/add-vite-plugin.d.ts.map +1 -0
- package/dist/cli/steps/add-vite-plugin.js +65 -0
- package/dist/cli/steps/add-vite-plugin.js.map +1 -0
- package/dist/cli/steps/add-vite-plugin.test.d.ts +1 -0
- package/dist/cli/steps/add-vite-plugin.test.d.ts.map +1 -0
- package/dist/cli/steps/add-vite-plugin.test.js +74 -0
- package/dist/cli/steps/add-vite-plugin.test.js.map +1 -0
- package/dist/cli/steps/check-for-uncomitted-changes.d.ts +5 -0
- package/dist/cli/steps/check-for-uncomitted-changes.d.ts.map +1 -0
- package/dist/cli/steps/check-for-uncomitted-changes.js +37 -0
- package/dist/cli/steps/check-for-uncomitted-changes.js.map +1 -0
- package/dist/cli/steps/detect-bundler.d.ts +10 -0
- package/dist/cli/steps/detect-bundler.d.ts.map +1 -0
- package/dist/cli/steps/detect-bundler.js +22 -0
- package/dist/cli/steps/detect-bundler.js.map +1 -0
- package/dist/cli/steps/detect-bundler.test.d.ts +1 -0
- package/dist/cli/steps/detect-bundler.test.d.ts.map +1 -0
- package/dist/cli/steps/detect-bundler.test.js +29 -0
- package/dist/cli/steps/detect-bundler.test.js.map +1 -0
- package/dist/cli/steps/initialize-messages.d.ts +11 -0
- package/dist/cli/steps/initialize-messages.d.ts.map +1 -0
- package/dist/cli/steps/initialize-messages.js +31 -0
- package/dist/cli/steps/initialize-messages.js.map +1 -0
- package/dist/cli/steps/prompt-for-outdir.d.ts +8 -0
- package/dist/cli/steps/prompt-for-outdir.d.ts.map +1 -0
- package/dist/cli/steps/prompt-for-outdir.js +19 -0
- package/dist/cli/steps/prompt-for-outdir.js.map +1 -0
- package/dist/cli/steps/update-package-json.d.ts +11 -0
- package/dist/cli/steps/update-package-json.d.ts.map +1 -0
- package/dist/cli/steps/update-package-json.js +34 -0
- package/dist/cli/steps/update-package-json.js.map +1 -0
- package/dist/cli/steps/update-ts-config.d.ts +26 -0
- package/dist/cli/steps/update-ts-config.d.ts.map +1 -0
- package/dist/cli/steps/update-ts-config.js +270 -0
- package/dist/cli/steps/update-ts-config.js.map +1 -0
- package/dist/cli/steps/update-ts-config.test.d.ts +1 -0
- package/dist/cli/steps/update-ts-config.test.d.ts.map +1 -0
- package/dist/cli/steps/update-ts-config.test.js +60 -0
- package/dist/cli/steps/update-ts-config.test.js.map +1 -0
- package/dist/cli/utils.d.ts +36 -0
- package/dist/cli/utils.d.ts.map +1 -0
- package/dist/cli/utils.js +20 -0
- package/dist/cli/utils.js.map +1 -0
- package/dist/compiler/assert-url-pattern-available.d.ts +7 -0
- package/dist/compiler/assert-url-pattern-available.d.ts.map +1 -0
- package/dist/compiler/assert-url-pattern-available.js +17 -0
- package/dist/compiler/assert-url-pattern-available.js.map +1 -0
- package/dist/compiler/compile-annotation.d.ts +12 -0
- package/dist/compiler/compile-annotation.d.ts.map +1 -0
- package/dist/compiler/compile-annotation.js +136 -0
- package/dist/compiler/compile-annotation.js.map +1 -0
- package/dist/compiler/compile-bundle.d.ts +28 -0
- package/dist/compiler/compile-bundle.d.ts.map +1 -0
- package/dist/compiler/compile-bundle.js +431 -0
- package/dist/compiler/compile-bundle.js.map +1 -0
- package/dist/compiler/compile-bundle.test.d.ts +1 -0
- package/dist/compiler/compile-bundle.test.d.ts.map +1 -0
- package/dist/compiler/compile-bundle.test.js +399 -0
- package/dist/compiler/compile-bundle.test.js.map +1 -0
- package/dist/compiler/compile-local-variable.d.ts +16 -0
- package/dist/compiler/compile-local-variable.d.ts.map +1 -0
- package/dist/compiler/compile-local-variable.js +28 -0
- package/dist/compiler/compile-local-variable.js.map +1 -0
- package/dist/compiler/compile-local-variable.test.d.ts +1 -0
- package/dist/compiler/compile-local-variable.test.d.ts.map +1 -0
- package/dist/compiler/compile-local-variable.test.js +359 -0
- package/dist/compiler/compile-local-variable.test.js.map +1 -0
- package/dist/compiler/compile-message.d.ts +8 -0
- package/dist/compiler/compile-message.d.ts.map +1 -0
- package/dist/compiler/compile-message.js +174 -0
- package/dist/compiler/compile-message.js.map +1 -0
- package/dist/compiler/compile-message.test.d.ts +1 -0
- package/dist/compiler/compile-message.test.d.ts.map +1 -0
- package/dist/compiler/compile-message.test.js +1060 -0
- package/dist/compiler/compile-message.test.js.map +1 -0
- package/dist/compiler/compile-pattern.d.ts +29 -0
- package/dist/compiler/compile-pattern.d.ts.map +1 -0
- package/dist/compiler/compile-pattern.js +143 -0
- package/dist/compiler/compile-pattern.js.map +1 -0
- package/dist/compiler/compile-pattern.test.d.ts +1 -0
- package/dist/compiler/compile-pattern.test.d.ts.map +1 -0
- package/dist/compiler/compile-pattern.test.js +255 -0
- package/dist/compiler/compile-pattern.test.js.map +1 -0
- package/dist/compiler/compile-project.d.ts +21 -0
- package/dist/compiler/compile-project.d.ts.map +1 -0
- package/dist/compiler/compile-project.js +147 -0
- package/dist/compiler/compile-project.js.map +1 -0
- package/dist/compiler/compile-project.test.d.ts +1 -0
- package/dist/compiler/compile-project.test.d.ts.map +1 -0
- package/dist/compiler/compile-project.test.js +1709 -0
- package/dist/compiler/compile-project.test.js.map +1 -0
- package/dist/compiler/compile.bench.d.ts +1 -0
- package/dist/compiler/compile.bench.d.ts.map +1 -0
- package/dist/compiler/compile.bench.js +89 -0
- package/dist/compiler/compile.bench.js.map +1 -0
- package/dist/compiler/compile.d.ts +24 -0
- package/dist/compiler/compile.d.ts.map +1 -0
- package/dist/compiler/compile.js +106 -0
- package/dist/compiler/compile.js.map +1 -0
- package/dist/compiler/compile.test.d.ts +1 -0
- package/dist/compiler/compile.test.d.ts.map +1 -0
- package/dist/compiler/compile.test.js +66 -0
- package/dist/compiler/compile.test.js.map +1 -0
- package/dist/compiler/compiler-options.d.ts +466 -0
- package/dist/compiler/compiler-options.d.ts.map +1 -0
- package/dist/compiler/compiler-options.js +22 -0
- package/dist/compiler/compiler-options.js.map +1 -0
- package/dist/compiler/create-paraglide.d.ts +21 -0
- package/dist/compiler/create-paraglide.d.ts.map +1 -0
- package/dist/compiler/create-paraglide.js +69 -0
- package/dist/compiler/create-paraglide.js.map +1 -0
- package/dist/compiler/create-paraglide.test.d.ts +1 -0
- package/dist/compiler/create-paraglide.test.d.ts.map +1 -0
- package/dist/compiler/create-paraglide.test.js +55 -0
- package/dist/compiler/create-paraglide.test.js.map +1 -0
- package/dist/compiler/create-readme.d.ts +9 -0
- package/dist/compiler/create-readme.d.ts.map +1 -0
- package/dist/compiler/create-readme.js +127 -0
- package/dist/compiler/create-readme.js.map +1 -0
- package/dist/compiler/emit-files.d.ts +15 -0
- package/dist/compiler/emit-files.d.ts.map +1 -0
- package/dist/compiler/emit-files.js +58 -0
- package/dist/compiler/emit-files.js.map +1 -0
- package/dist/compiler/emit-files.test.d.ts +1 -0
- package/dist/compiler/emit-files.test.d.ts.map +1 -0
- package/dist/compiler/emit-files.test.js +43 -0
- package/dist/compiler/emit-files.test.js.map +1 -0
- package/dist/compiler/emit-ts-declarations.d.ts +11 -0
- package/dist/compiler/emit-ts-declarations.d.ts.map +1 -0
- package/dist/compiler/emit-ts-declarations.interop.test.d.ts +1 -0
- package/dist/compiler/emit-ts-declarations.interop.test.d.ts.map +1 -0
- package/dist/compiler/emit-ts-declarations.interop.test.js +33 -0
- package/dist/compiler/emit-ts-declarations.interop.test.js.map +1 -0
- package/dist/compiler/emit-ts-declarations.js +353 -0
- package/dist/compiler/emit-ts-declarations.js.map +1 -0
- package/dist/compiler/emit-ts-declarations.test.d.ts +1 -0
- package/dist/compiler/emit-ts-declarations.test.d.ts.map +1 -0
- package/dist/compiler/emit-ts-declarations.test.js +161 -0
- package/dist/compiler/emit-ts-declarations.test.js.map +1 -0
- package/dist/compiler/index.d.ts +13 -0
- package/dist/compiler/index.d.ts.map +1 -0
- package/dist/compiler/index.js +11 -0
- package/dist/compiler/index.js.map +1 -0
- package/dist/compiler/jsdoc-types.d.ts +21 -0
- package/dist/compiler/jsdoc-types.d.ts.map +1 -0
- package/dist/compiler/jsdoc-types.js +59 -0
- package/dist/compiler/jsdoc-types.js.map +1 -0
- package/dist/compiler/jsdoc-types.test.d.ts +1 -0
- package/dist/compiler/jsdoc-types.test.d.ts.map +1 -0
- package/dist/compiler/jsdoc-types.test.js +100 -0
- package/dist/compiler/jsdoc-types.test.js.map +1 -0
- package/dist/compiler/lazy-modules/compile-cache.d.ts +37 -0
- package/dist/compiler/lazy-modules/compile-cache.d.ts.map +1 -0
- package/dist/compiler/lazy-modules/compile-cache.js +34 -0
- package/dist/compiler/lazy-modules/compile-cache.js.map +1 -0
- package/dist/compiler/lazy-modules/compile-project.lazy.test.d.ts +2 -0
- package/dist/compiler/lazy-modules/compile-project.lazy.test.d.ts.map +1 -0
- package/dist/compiler/lazy-modules/compile-project.lazy.test.js +65 -0
- package/dist/compiler/lazy-modules/compile-project.lazy.test.js.map +1 -0
- package/dist/compiler/lazy-modules/create-loader.d.ts +18 -0
- package/dist/compiler/lazy-modules/create-loader.d.ts.map +1 -0
- package/dist/compiler/lazy-modules/create-loader.js +182 -0
- package/dist/compiler/lazy-modules/create-loader.js.map +1 -0
- package/dist/compiler/lazy-modules/create-loader.test.d.ts +2 -0
- package/dist/compiler/lazy-modules/create-loader.test.d.ts.map +1 -0
- package/dist/compiler/lazy-modules/create-loader.test.js +82 -0
- package/dist/compiler/lazy-modules/create-loader.test.js.map +1 -0
- package/dist/compiler/lazy-modules/manifest.d.ts +32 -0
- package/dist/compiler/lazy-modules/manifest.d.ts.map +1 -0
- package/dist/compiler/lazy-modules/manifest.js +11 -0
- package/dist/compiler/lazy-modules/manifest.js.map +1 -0
- package/dist/compiler/match-literals.d.ts +2 -0
- package/dist/compiler/match-literals.d.ts.map +1 -0
- package/dist/compiler/match-literals.js +42 -0
- package/dist/compiler/match-literals.js.map +1 -0
- package/dist/compiler/output-structure/lazy-modules.d.ts +27 -0
- package/dist/compiler/output-structure/lazy-modules.d.ts.map +1 -0
- package/dist/compiler/output-structure/lazy-modules.js +157 -0
- package/dist/compiler/output-structure/lazy-modules.js.map +1 -0
- package/dist/compiler/output-structure/lazy-modules.test.d.ts +2 -0
- package/dist/compiler/output-structure/lazy-modules.test.d.ts.map +1 -0
- package/dist/compiler/output-structure/lazy-modules.test.js +128 -0
- package/dist/compiler/output-structure/lazy-modules.test.js.map +1 -0
- package/dist/compiler/output-structure/locale-modules.d.ts +4 -0
- package/dist/compiler/output-structure/locale-modules.d.ts.map +1 -0
- package/dist/compiler/output-structure/locale-modules.js +81 -0
- package/dist/compiler/output-structure/locale-modules.js.map +1 -0
- package/dist/compiler/output-structure/locale-modules.test.d.ts +1 -0
- package/dist/compiler/output-structure/locale-modules.test.d.ts.map +1 -0
- package/dist/compiler/output-structure/locale-modules.test.js +163 -0
- package/dist/compiler/output-structure/locale-modules.test.js.map +1 -0
- package/dist/compiler/output-structure/message-modules.d.ts +4 -0
- package/dist/compiler/output-structure/message-modules.d.ts.map +1 -0
- package/dist/compiler/output-structure/message-modules.js +100 -0
- package/dist/compiler/output-structure/message-modules.js.map +1 -0
- package/dist/compiler/output-structure/message-modules.test.d.ts +1 -0
- package/dist/compiler/output-structure/message-modules.test.d.ts.map +1 -0
- package/dist/compiler/output-structure/message-modules.test.js +148 -0
- package/dist/compiler/output-structure/message-modules.test.js.map +1 -0
- package/dist/compiler/per-locale-build.d.ts +2 -0
- package/dist/compiler/per-locale-build.d.ts.map +1 -0
- package/dist/compiler/per-locale-build.js +3 -0
- package/dist/compiler/per-locale-build.js.map +1 -0
- package/dist/compiler/registry.d.ts +13 -0
- package/dist/compiler/registry.d.ts.map +1 -0
- package/dist/compiler/registry.js +60 -0
- package/dist/compiler/registry.js.map +1 -0
- package/dist/compiler/resolve-tsc-js-path.d.ts +9 -0
- package/dist/compiler/resolve-tsc-js-path.d.ts.map +1 -0
- package/dist/compiler/resolve-tsc-js-path.js +23 -0
- package/dist/compiler/resolve-tsc-js-path.js.map +1 -0
- package/dist/compiler/runtime/check-locale.d.ts +31 -0
- package/dist/compiler/runtime/check-locale.d.ts.map +1 -0
- package/dist/compiler/runtime/check-locale.js +51 -0
- package/dist/compiler/runtime/check-locale.js.map +1 -0
- package/dist/compiler/runtime/check-locale.test.d.ts +1 -0
- package/dist/compiler/runtime/check-locale.test.d.ts.map +1 -0
- package/dist/compiler/runtime/check-locale.test.js +84 -0
- package/dist/compiler/runtime/check-locale.test.js.map +1 -0
- package/dist/compiler/runtime/create-runtime.d.ts +35 -0
- package/dist/compiler/runtime/create-runtime.d.ts.map +1 -0
- package/dist/compiler/runtime/create-runtime.js +196 -0
- package/dist/compiler/runtime/create-runtime.js.map +1 -0
- package/dist/compiler/runtime/extract-locale-from-cookie.d.ts +13 -0
- package/dist/compiler/runtime/extract-locale-from-cookie.d.ts.map +1 -0
- package/dist/compiler/runtime/extract-locale-from-cookie.js +43 -0
- package/dist/compiler/runtime/extract-locale-from-cookie.js.map +1 -0
- package/dist/compiler/runtime/extract-locale-from-cookie.test.d.ts +1 -0
- package/dist/compiler/runtime/extract-locale-from-cookie.test.d.ts.map +1 -0
- package/dist/compiler/runtime/extract-locale-from-cookie.test.js +149 -0
- package/dist/compiler/runtime/extract-locale-from-cookie.test.js.map +1 -0
- package/dist/compiler/runtime/extract-locale-from-header.d.ts +13 -0
- package/dist/compiler/runtime/extract-locale-from-header.d.ts.map +1 -0
- package/dist/compiler/runtime/extract-locale-from-header.js +45 -0
- package/dist/compiler/runtime/extract-locale-from-header.js.map +1 -0
- package/dist/compiler/runtime/extract-locale-from-header.test.d.ts +1 -0
- package/dist/compiler/runtime/extract-locale-from-header.test.d.ts.map +1 -0
- package/dist/compiler/runtime/extract-locale-from-header.test.js +55 -0
- package/dist/compiler/runtime/extract-locale-from-header.test.js.map +1 -0
- package/dist/compiler/runtime/extract-locale-from-navigator.d.ts +12 -0
- package/dist/compiler/runtime/extract-locale-from-navigator.d.ts.map +1 -0
- package/dist/compiler/runtime/extract-locale-from-navigator.js +33 -0
- package/dist/compiler/runtime/extract-locale-from-navigator.js.map +1 -0
- package/dist/compiler/runtime/extract-locale-from-navigator.test.d.ts +1 -0
- package/dist/compiler/runtime/extract-locale-from-navigator.test.d.ts.map +1 -0
- package/dist/compiler/runtime/extract-locale-from-navigator.test.js +45 -0
- package/dist/compiler/runtime/extract-locale-from-navigator.test.js.map +1 -0
- package/dist/compiler/runtime/extract-locale-from-request-async.d.ts +34 -0
- package/dist/compiler/runtime/extract-locale-from-request-async.d.ts.map +1 -0
- package/dist/compiler/runtime/extract-locale-from-request-async.js +70 -0
- package/dist/compiler/runtime/extract-locale-from-request-async.js.map +1 -0
- package/dist/compiler/runtime/extract-locale-from-request-async.test.d.ts +1 -0
- package/dist/compiler/runtime/extract-locale-from-request-async.test.d.ts.map +1 -0
- package/dist/compiler/runtime/extract-locale-from-request-async.test.js +119 -0
- package/dist/compiler/runtime/extract-locale-from-request-async.test.js.map +1 -0
- package/dist/compiler/runtime/extract-locale-from-request.d.ts +41 -0
- package/dist/compiler/runtime/extract-locale-from-request.d.ts.map +1 -0
- package/dist/compiler/runtime/extract-locale-from-request.js +96 -0
- package/dist/compiler/runtime/extract-locale-from-request.js.map +1 -0
- package/dist/compiler/runtime/extract-locale-from-request.test.d.ts +1 -0
- package/dist/compiler/runtime/extract-locale-from-request.test.d.ts.map +1 -0
- package/dist/compiler/runtime/extract-locale-from-request.test.js +351 -0
- package/dist/compiler/runtime/extract-locale-from-request.test.js.map +1 -0
- package/dist/compiler/runtime/extract-locale-from-url.d.ts +11 -0
- package/dist/compiler/runtime/extract-locale-from-url.d.ts.map +1 -0
- package/dist/compiler/runtime/extract-locale-from-url.js +68 -0
- package/dist/compiler/runtime/extract-locale-from-url.js.map +1 -0
- package/dist/compiler/runtime/extract-locale-from-url.test.d.ts +1 -0
- package/dist/compiler/runtime/extract-locale-from-url.test.d.ts.map +1 -0
- package/dist/compiler/runtime/extract-locale-from-url.test.js +127 -0
- package/dist/compiler/runtime/extract-locale-from-url.test.js.map +1 -0
- package/dist/compiler/runtime/generate-static-localized-urls.d.ts +44 -0
- package/dist/compiler/runtime/generate-static-localized-urls.d.ts.map +1 -0
- package/dist/compiler/runtime/generate-static-localized-urls.js +133 -0
- package/dist/compiler/runtime/generate-static-localized-urls.js.map +1 -0
- package/dist/compiler/runtime/generate-static-localized-urls.test.d.ts +1 -0
- package/dist/compiler/runtime/generate-static-localized-urls.test.d.ts.map +1 -0
- package/dist/compiler/runtime/generate-static-localized-urls.test.js +159 -0
- package/dist/compiler/runtime/generate-static-localized-urls.test.js.map +1 -0
- package/dist/compiler/runtime/get-locale.d.ts +42 -0
- package/dist/compiler/runtime/get-locale.d.ts.map +1 -0
- package/dist/compiler/runtime/get-locale.js +158 -0
- package/dist/compiler/runtime/get-locale.js.map +1 -0
- package/dist/compiler/runtime/get-locale.test.d.ts +1 -0
- package/dist/compiler/runtime/get-locale.test.d.ts.map +1 -0
- package/dist/compiler/runtime/get-locale.test.js +295 -0
- package/dist/compiler/runtime/get-locale.test.js.map +1 -0
- package/dist/compiler/runtime/get-text-direction.d.ts +15 -0
- package/dist/compiler/runtime/get-text-direction.d.ts.map +1 -0
- package/dist/compiler/runtime/get-text-direction.js +46 -0
- package/dist/compiler/runtime/get-text-direction.js.map +1 -0
- package/dist/compiler/runtime/get-text-direction.test.d.ts +1 -0
- package/dist/compiler/runtime/get-text-direction.test.d.ts.map +1 -0
- package/dist/compiler/runtime/get-text-direction.test.js +40 -0
- package/dist/compiler/runtime/get-text-direction.test.js.map +1 -0
- package/dist/compiler/runtime/get-url-origin.d.ts +19 -0
- package/dist/compiler/runtime/get-url-origin.d.ts.map +1 -0
- package/dist/compiler/runtime/get-url-origin.js +31 -0
- package/dist/compiler/runtime/get-url-origin.js.map +1 -0
- package/dist/compiler/runtime/get-url-origin.test.d.ts +1 -0
- package/dist/compiler/runtime/get-url-origin.test.d.ts.map +1 -0
- package/dist/compiler/runtime/get-url-origin.test.js +18 -0
- package/dist/compiler/runtime/get-url-origin.test.js.map +1 -0
- package/dist/compiler/runtime/host-routing.d.ts +28 -0
- package/dist/compiler/runtime/host-routing.d.ts.map +1 -0
- package/dist/compiler/runtime/host-routing.js +79 -0
- package/dist/compiler/runtime/host-routing.js.map +1 -0
- package/dist/compiler/runtime/host-routing.test.d.ts +1 -0
- package/dist/compiler/runtime/host-routing.test.d.ts.map +1 -0
- package/dist/compiler/runtime/host-routing.test.js +128 -0
- package/dist/compiler/runtime/host-routing.test.js.map +1 -0
- package/dist/compiler/runtime/localize-href.d.ts +84 -0
- package/dist/compiler/runtime/localize-href.d.ts.map +1 -0
- package/dist/compiler/runtime/localize-href.js +115 -0
- package/dist/compiler/runtime/localize-href.js.map +1 -0
- package/dist/compiler/runtime/localize-href.test.d.ts +1 -0
- package/dist/compiler/runtime/localize-href.test.d.ts.map +1 -0
- package/dist/compiler/runtime/localize-href.test.js +139 -0
- package/dist/compiler/runtime/localize-href.test.js.map +1 -0
- package/dist/compiler/runtime/localize-url.d.ts +95 -0
- package/dist/compiler/runtime/localize-url.d.ts.map +1 -0
- package/dist/compiler/runtime/localize-url.js +327 -0
- package/dist/compiler/runtime/localize-url.js.map +1 -0
- package/dist/compiler/runtime/localize-url.test.d.ts +1 -0
- package/dist/compiler/runtime/localize-url.test.d.ts.map +1 -0
- package/dist/compiler/runtime/localize-url.test.js +533 -0
- package/dist/compiler/runtime/localize-url.test.js.map +1 -0
- package/dist/compiler/runtime/route-strategy.d.ts +32 -0
- package/dist/compiler/runtime/route-strategy.d.ts.map +1 -0
- package/dist/compiler/runtime/route-strategy.js +72 -0
- package/dist/compiler/runtime/route-strategy.js.map +1 -0
- package/dist/compiler/runtime/set-locale.d.ts +46 -0
- package/dist/compiler/runtime/set-locale.d.ts.map +1 -0
- package/dist/compiler/runtime/set-locale.js +172 -0
- package/dist/compiler/runtime/set-locale.js.map +1 -0
- package/dist/compiler/runtime/set-locale.test.d.ts +1 -0
- package/dist/compiler/runtime/set-locale.test.d.ts.map +1 -0
- package/dist/compiler/runtime/set-locale.test.js +555 -0
- package/dist/compiler/runtime/set-locale.test.js.map +1 -0
- package/dist/compiler/runtime/should-redirect.d.ts +100 -0
- package/dist/compiler/runtime/should-redirect.d.ts.map +1 -0
- package/dist/compiler/runtime/should-redirect.js +155 -0
- package/dist/compiler/runtime/should-redirect.js.map +1 -0
- package/dist/compiler/runtime/should-redirect.test.d.ts +1 -0
- package/dist/compiler/runtime/should-redirect.test.d.ts.map +1 -0
- package/dist/compiler/runtime/should-redirect.test.js +270 -0
- package/dist/compiler/runtime/should-redirect.test.js.map +1 -0
- package/dist/compiler/runtime/strategy.d.ts +63 -0
- package/dist/compiler/runtime/strategy.d.ts.map +1 -0
- package/dist/compiler/runtime/strategy.js +65 -0
- package/dist/compiler/runtime/strategy.js.map +1 -0
- package/dist/compiler/runtime/strategy.test.d.ts +1 -0
- package/dist/compiler/runtime/strategy.test.d.ts.map +1 -0
- package/dist/compiler/runtime/strategy.test.js +90 -0
- package/dist/compiler/runtime/strategy.test.js.map +1 -0
- package/dist/compiler/runtime/track-message-call.d.ts +5 -0
- package/dist/compiler/runtime/track-message-call.d.ts.map +1 -0
- package/dist/compiler/runtime/track-message-call.js +14 -0
- package/dist/compiler/runtime/track-message-call.js.map +1 -0
- package/dist/compiler/runtime/track-message-call.test.d.ts +1 -0
- package/dist/compiler/runtime/track-message-call.test.d.ts.map +1 -0
- package/dist/compiler/runtime/track-message-call.test.js +22 -0
- package/dist/compiler/runtime/track-message-call.test.js.map +1 -0
- package/dist/compiler/runtime/type-definitions.d.ts +197 -0
- package/dist/compiler/runtime/type-definitions.d.ts.map +1 -0
- package/dist/compiler/runtime/type-definitions.js +150 -0
- package/dist/compiler/runtime/type-definitions.js.map +1 -0
- package/dist/compiler/runtime/type.d.ts +47 -0
- package/dist/compiler/runtime/type.d.ts.map +1 -0
- package/dist/compiler/runtime/type.js +2 -0
- package/dist/compiler/runtime/type.js.map +1 -0
- package/dist/compiler/runtime/type.test.d.ts +1 -0
- package/dist/compiler/runtime/type.test.d.ts.map +1 -0
- package/dist/compiler/runtime/type.test.js +153 -0
- package/dist/compiler/runtime/type.test.js.map +1 -0
- package/dist/compiler/runtime/url-pattern.d.ts +12 -0
- package/dist/compiler/runtime/url-pattern.d.ts.map +1 -0
- package/dist/compiler/runtime/url-pattern.js +35 -0
- package/dist/compiler/runtime/url-pattern.js.map +1 -0
- package/dist/compiler/runtime/variables.d.ts +128 -0
- package/dist/compiler/runtime/variables.d.ts.map +1 -0
- package/dist/compiler/runtime/variables.js +111 -0
- package/dist/compiler/runtime/variables.js.map +1 -0
- package/dist/compiler/safe-module-id.d.ts +7 -0
- package/dist/compiler/safe-module-id.d.ts.map +1 -0
- package/dist/compiler/safe-module-id.js +78 -0
- package/dist/compiler/safe-module-id.js.map +1 -0
- package/dist/compiler/safe-module-id.test.d.ts +1 -0
- package/dist/compiler/safe-module-id.test.d.ts.map +1 -0
- package/dist/compiler/safe-module-id.test.js +36 -0
- package/dist/compiler/safe-module-id.test.js.map +1 -0
- package/dist/compiler/seed-previous-compilation.d.ts +7 -0
- package/dist/compiler/seed-previous-compilation.d.ts.map +1 -0
- package/dist/compiler/seed-previous-compilation.js +9 -0
- package/dist/compiler/seed-previous-compilation.js.map +1 -0
- package/dist/compiler/server/create-server-file.d.ts +12 -0
- package/dist/compiler/server/create-server-file.d.ts.map +1 -0
- package/dist/compiler/server/create-server-file.js +91 -0
- package/dist/compiler/server/create-server-file.js.map +1 -0
- package/dist/compiler/server/create-server-file.test.d.ts +1 -0
- package/dist/compiler/server/create-server-file.test.d.ts.map +1 -0
- package/dist/compiler/server/create-server-file.test.js +48 -0
- package/dist/compiler/server/create-server-file.test.js.map +1 -0
- package/dist/compiler/server/middleware.d.ts +98 -0
- package/dist/compiler/server/middleware.d.ts.map +1 -0
- package/dist/compiler/server/middleware.js +278 -0
- package/dist/compiler/server/middleware.js.map +1 -0
- package/dist/compiler/server/middleware.test.d.ts +1 -0
- package/dist/compiler/server/middleware.test.d.ts.map +1 -0
- package/dist/compiler/server/middleware.test.js +1001 -0
- package/dist/compiler/server/middleware.test.js.map +1 -0
- package/dist/compiler/server/type.d.ts +6 -0
- package/dist/compiler/server/type.d.ts.map +1 -0
- package/dist/compiler/server/type.js +2 -0
- package/dist/compiler/server/type.js.map +1 -0
- package/dist/compiler/test-helpers.d.ts +30 -0
- package/dist/compiler/test-helpers.d.ts.map +1 -0
- package/dist/compiler/test-helpers.js +50 -0
- package/dist/compiler/test-helpers.js.map +1 -0
- package/dist/compiler/types.d.ts +7 -0
- package/dist/compiler/types.d.ts.map +1 -0
- package/dist/compiler/types.js +2 -0
- package/dist/compiler/types.js.map +1 -0
- package/dist/compiler/variable-access.d.ts +3 -0
- package/dist/compiler/variable-access.d.ts.map +1 -0
- package/dist/compiler/variable-access.js +15 -0
- package/dist/compiler/variable-access.js.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -0
- package/dist/messages/ast.d.ts +102 -0
- package/dist/messages/ast.d.ts.map +1 -0
- package/dist/messages/ast.js +8 -0
- package/dist/messages/ast.js.map +1 -0
- package/dist/messages/create-bundle-nested.d.ts +16 -0
- package/dist/messages/create-bundle-nested.d.ts.map +1 -0
- package/dist/messages/create-bundle-nested.js +22 -0
- package/dist/messages/create-bundle-nested.js.map +1 -0
- package/dist/messages/index.d.ts +5 -0
- package/dist/messages/index.d.ts.map +1 -0
- package/dist/messages/index.js +5 -0
- package/dist/messages/index.js.map +1 -0
- package/dist/messages/load-messages.d.ts +19 -0
- package/dist/messages/load-messages.d.ts.map +1 -0
- package/dist/messages/load-messages.js +49 -0
- package/dist/messages/load-messages.js.map +1 -0
- package/dist/messages/message-format/flatten.d.ts +9 -0
- package/dist/messages/message-format/flatten.d.ts.map +1 -0
- package/dist/messages/message-format/flatten.js +32 -0
- package/dist/messages/message-format/flatten.js.map +1 -0
- package/dist/messages/message-format/import-files.d.ts +32 -0
- package/dist/messages/message-format/import-files.d.ts.map +1 -0
- package/dist/messages/message-format/import-files.js +53 -0
- package/dist/messages/message-format/import-files.js.map +1 -0
- package/dist/messages/message-format/import-files.test.d.ts +1 -0
- package/dist/messages/message-format/import-files.test.d.ts.map +1 -0
- package/dist/messages/message-format/import-files.test.js +145 -0
- package/dist/messages/message-format/import-files.test.js.map +1 -0
- package/dist/messages/message-format/index.d.ts +6 -0
- package/dist/messages/message-format/index.d.ts.map +1 -0
- package/dist/messages/message-format/index.js +7 -0
- package/dist/messages/message-format/index.js.map +1 -0
- package/dist/messages/message-format/parse-bundle.d.ts +31 -0
- package/dist/messages/message-format/parse-bundle.d.ts.map +1 -0
- package/dist/messages/message-format/parse-bundle.js +169 -0
- package/dist/messages/message-format/parse-bundle.js.map +1 -0
- package/dist/messages/message-format/parse-declaration.d.ts +2 -0
- package/dist/messages/message-format/parse-declaration.d.ts.map +1 -0
- package/dist/messages/message-format/parse-declaration.js +56 -0
- package/dist/messages/message-format/parse-declaration.js.map +1 -0
- package/dist/messages/message-format/parse-markup.d.ts +4 -0
- package/dist/messages/message-format/parse-markup.d.ts.map +1 -0
- package/dist/messages/message-format/parse-markup.js +167 -0
- package/dist/messages/message-format/parse-markup.js.map +1 -0
- package/dist/messages/message-format/parse-matches.d.ts +5 -0
- package/dist/messages/message-format/parse-matches.d.ts.map +1 -0
- package/dist/messages/message-format/parse-matches.js +31 -0
- package/dist/messages/message-format/parse-matches.js.map +1 -0
- package/dist/messages/message-format/parse-pattern.d.ts +5 -0
- package/dist/messages/message-format/parse-pattern.d.ts.map +1 -0
- package/dist/messages/message-format/parse-pattern.js +120 -0
- package/dist/messages/message-format/parse-pattern.js.map +1 -0
- package/dist/messages/message-format/unique.d.ts +2 -0
- package/dist/messages/message-format/unique.d.ts.map +1 -0
- package/dist/messages/message-format/unique.js +5 -0
- package/dist/messages/message-format/unique.js.map +1 -0
- package/dist/messages/nest-bundles.d.ts +19 -0
- package/dist/messages/nest-bundles.d.ts.map +1 -0
- package/dist/messages/nest-bundles.js +49 -0
- package/dist/messages/nest-bundles.js.map +1 -0
- package/dist/services/account/index.d.ts +14 -0
- package/dist/services/account/index.d.ts.map +1 -0
- package/dist/services/account/index.js +43 -0
- package/dist/services/account/index.js.map +1 -0
- package/dist/services/account/types.d.ts +4 -0
- package/dist/services/account/types.d.ts.map +1 -0
- package/dist/services/account/types.js +2 -0
- package/dist/services/account/types.js.map +1 -0
- package/dist/services/codegen/escape.d.ts +9 -0
- package/dist/services/codegen/escape.d.ts.map +1 -0
- package/dist/services/codegen/escape.js +19 -0
- package/dist/services/codegen/escape.js.map +1 -0
- package/dist/services/codegen/quotes.d.ts +4 -0
- package/dist/services/codegen/quotes.d.ts.map +1 -0
- package/dist/services/codegen/quotes.js +5 -0
- package/dist/services/codegen/quotes.js.map +1 -0
- package/dist/services/env-variables/create-index-file.d.ts +9 -0
- package/dist/services/env-variables/create-index-file.d.ts.map +1 -0
- package/dist/services/env-variables/create-index-file.js +28 -0
- package/dist/services/env-variables/create-index-file.js.map +1 -0
- package/dist/services/env-variables/index.d.ts +3 -0
- package/dist/services/env-variables/index.d.ts.map +1 -0
- package/dist/services/env-variables/index.js +4 -0
- package/dist/services/env-variables/index.js.map +1 -0
- package/dist/services/environment/package.d.ts +9 -0
- package/dist/services/environment/package.d.ts.map +1 -0
- package/dist/services/environment/package.js +31 -0
- package/dist/services/environment/package.js.map +1 -0
- package/dist/services/environment/package.test.d.ts +1 -0
- package/dist/services/environment/package.test.d.ts.map +1 -0
- package/dist/services/environment/package.test.js +21 -0
- package/dist/services/environment/package.test.js.map +1 -0
- package/dist/services/error-handling.d.ts +12 -0
- package/dist/services/error-handling.d.ts.map +1 -0
- package/dist/services/error-handling.js +27 -0
- package/dist/services/error-handling.js.map +1 -0
- package/dist/services/error-handling.test.d.ts +1 -0
- package/dist/services/error-handling.test.d.ts.map +1 -0
- package/dist/services/error-handling.test.js +10 -0
- package/dist/services/error-handling.test.js.map +1 -0
- package/dist/services/file-handling/content-hash.d.ts +9 -0
- package/dist/services/file-handling/content-hash.js +19 -0
- package/dist/services/file-handling/content-hash.js.map +1 -0
- package/dist/services/file-handling/exists.d.ts +7 -0
- package/dist/services/file-handling/exists.d.ts.map +1 -0
- package/dist/services/file-handling/exists.js +24 -0
- package/dist/services/file-handling/exists.js.map +1 -0
- package/dist/services/file-handling/exists.test.d.ts +1 -0
- package/dist/services/file-handling/exists.test.d.ts.map +1 -0
- package/dist/services/file-handling/exists.test.js +27 -0
- package/dist/services/file-handling/exists.test.js.map +1 -0
- package/dist/services/file-handling/types.d.ts +4 -0
- package/dist/services/file-handling/types.d.ts.map +1 -0
- package/dist/services/file-handling/types.js +2 -0
- package/dist/services/file-handling/types.js.map +1 -0
- package/dist/services/file-handling/write-output.d.ts +21 -0
- package/dist/services/file-handling/write-output.d.ts.map +1 -0
- package/dist/services/file-handling/write-output.js +157 -0
- package/dist/services/file-handling/write-output.js.map +1 -0
- package/dist/services/file-handling/write-output.test.d.ts +1 -0
- package/dist/services/file-handling/write-output.test.d.ts.map +1 -0
- package/dist/services/file-handling/write-output.test.js +217 -0
- package/dist/services/file-handling/write-output.test.js.map +1 -0
- package/dist/services/file-watching/tracked-fs.d.ts +25 -0
- package/dist/services/file-watching/tracked-fs.d.ts.map +1 -0
- package/dist/services/file-watching/tracked-fs.js +94 -0
- package/dist/services/file-watching/tracked-fs.js.map +1 -0
- package/dist/services/file-watching/tracked-fs.test.d.ts +1 -0
- package/dist/services/file-watching/tracked-fs.test.d.ts.map +1 -0
- package/dist/services/file-watching/tracked-fs.test.js +87 -0
- package/dist/services/file-watching/tracked-fs.test.js.map +1 -0
- package/dist/services/logger/index.d.ts +17 -0
- package/dist/services/logger/index.d.ts.map +1 -0
- package/dist/services/logger/index.js +58 -0
- package/dist/services/logger/index.js.map +1 -0
- package/dist/services/lookup.d.ts +14 -0
- package/dist/services/lookup.d.ts.map +1 -0
- package/dist/services/lookup.js +24 -0
- package/dist/services/lookup.js.map +1 -0
- package/dist/urlpattern-polyfill/index.d.ts +2 -0
- package/dist/urlpattern-polyfill/index.d.ts.map +1 -0
- package/dist/urlpattern-polyfill/index.js +2 -0
- package/dist/urlpattern-polyfill/index.js.map +1 -0
- package/dist/utilities/detect-json-formatting.d.ts +10 -0
- package/dist/utilities/detect-json-formatting.d.ts.map +1 -0
- package/dist/utilities/detect-json-formatting.js +80 -0
- package/dist/utilities/detect-json-formatting.js.map +1 -0
- package/dist/utilities/node-normalize-path.d.ts +1 -0
- package/dist/utilities/node-normalize-path.d.ts.map +1 -0
- package/dist/utilities/node-normalize-path.js +10 -0
- package/dist/utilities/node-normalize-path.js.map +1 -0
- package/package.json +87 -0
|
@@ -0,0 +1,328 @@
|
|
|
1
|
+
import { createHash } from "node:crypto";
|
|
2
|
+
import path from "node:path";
|
|
3
|
+
import nodeFs from "node:fs";
|
|
4
|
+
import { compileBundle } from "../../compiler/compile-bundle.js";
|
|
5
|
+
import { defaultCompilerOptions, } from "../../compiler/compiler-options.js";
|
|
6
|
+
import { getFallbackMap } from "../../compiler/compile-project.js";
|
|
7
|
+
import { createRuntimeFile } from "../../compiler/runtime/create-runtime.js";
|
|
8
|
+
import { createServerFile } from "../../compiler/server/create-server-file.js";
|
|
9
|
+
import { createRegistry } from "../../compiler/registry.js";
|
|
10
|
+
import { generateOutputForVite } from "../../compiler/output-structure/lazy-modules.js";
|
|
11
|
+
import { loadMessages } from "../../messages/load-messages.js";
|
|
12
|
+
import { Logger } from "../../services/logger/index.js";
|
|
13
|
+
import { createTrackedFs, getWatchTargets, isPathWithinDirectories, } from "../../services/file-watching/tracked-fs.js";
|
|
14
|
+
import { nodeNormalizePath } from "../../utilities/node-normalize-path.js";
|
|
15
|
+
import { scanMessageKeys } from "./scan-message-keys.js";
|
|
16
|
+
import { isParaglideVirtualId, stripVirtualPrefix, toResolvedVirtualId, toVirtualId, VIRTUAL_PREFIX, } from "./virtual-ids.js";
|
|
17
|
+
const logger = new Logger();
|
|
18
|
+
/**
|
|
19
|
+
* Vite plugin for lazy per-(locale, key) message modules.
|
|
20
|
+
*
|
|
21
|
+
* Message modules stay in the Rolldown module graph via dynamic `import()`s
|
|
22
|
+
* from the loader, so they emit as normal immutable chunks (e.g. SvelteKit
|
|
23
|
+
* `_app/immutable/chunks/`). No custom `/i18n/` asset tree.
|
|
24
|
+
*/
|
|
25
|
+
export function createLazyModulesVitePlugin(options) {
|
|
26
|
+
const compilerOptions = {
|
|
27
|
+
...defaultCompilerOptions,
|
|
28
|
+
...options,
|
|
29
|
+
outdir: options.outdir ?? ".paraglide",
|
|
30
|
+
outputStructure: "lazy-modules",
|
|
31
|
+
cleanOutdir: false,
|
|
32
|
+
};
|
|
33
|
+
const tracked = createTrackedFs({ fs: options.fs });
|
|
34
|
+
let state;
|
|
35
|
+
let server;
|
|
36
|
+
/** importer id → scanned keys during transform */
|
|
37
|
+
const routeKeys = new Map();
|
|
38
|
+
async function ensureCompiled(force = false) {
|
|
39
|
+
const digest = await computeOptionsDigest(compilerOptions, tracked);
|
|
40
|
+
if (!force && state && state.inputsDigest === digest) {
|
|
41
|
+
return state;
|
|
42
|
+
}
|
|
43
|
+
tracked.clearReadFiles();
|
|
44
|
+
const { bundles, settings } = await loadMessages({
|
|
45
|
+
messages: compilerOptions.messages,
|
|
46
|
+
locales: compilerOptions.locales,
|
|
47
|
+
baseLocale: compilerOptions.baseLocale,
|
|
48
|
+
fs: tracked.fs,
|
|
49
|
+
});
|
|
50
|
+
const fallbackMap = getFallbackMap(settings.locales, settings.baseLocale);
|
|
51
|
+
const compiledBundles = bundles.map((bundle) => compileBundle({
|
|
52
|
+
bundle,
|
|
53
|
+
fallbackMap,
|
|
54
|
+
messageReferenceExpression: () => "unused",
|
|
55
|
+
settings,
|
|
56
|
+
experimentalMiddlewareLocaleSplitting: compilerOptions.experimentalMiddlewareLocaleSplitting,
|
|
57
|
+
experimentalStaticLocale: compilerOptions.experimentalStaticLocale,
|
|
58
|
+
}));
|
|
59
|
+
const { output: messageOutput, manifest } = generateOutputForVite(compiledBundles, settings, fallbackMap);
|
|
60
|
+
const output = {
|
|
61
|
+
["runtime.js"]: createRuntimeFile({
|
|
62
|
+
baseLocale: settings.baseLocale,
|
|
63
|
+
locales: settings.locales,
|
|
64
|
+
compilerOptions: {
|
|
65
|
+
strategy: compilerOptions.strategy ?? defaultCompilerOptions.strategy,
|
|
66
|
+
routeStrategies: compilerOptions.routeStrategies,
|
|
67
|
+
cookieName: compilerOptions.cookieName ?? defaultCompilerOptions.cookieName,
|
|
68
|
+
cookieMaxAge: compilerOptions.cookieMaxAge ?? defaultCompilerOptions.cookieMaxAge,
|
|
69
|
+
cookieDomain: compilerOptions.cookieDomain ?? defaultCompilerOptions.cookieDomain,
|
|
70
|
+
urlPatterns: compilerOptions.urlPatterns,
|
|
71
|
+
experimentalMiddlewareLocaleSplitting: compilerOptions.experimentalMiddlewareLocaleSplitting ??
|
|
72
|
+
defaultCompilerOptions.experimentalMiddlewareLocaleSplitting,
|
|
73
|
+
isServer: compilerOptions.isServer ?? defaultCompilerOptions.isServer,
|
|
74
|
+
experimentalStaticLocale: compilerOptions.experimentalStaticLocale,
|
|
75
|
+
localStorageKey: compilerOptions.localStorageKey ??
|
|
76
|
+
defaultCompilerOptions.localStorageKey,
|
|
77
|
+
disableAsyncLocalStorage: compilerOptions.disableAsyncLocalStorage ??
|
|
78
|
+
defaultCompilerOptions.disableAsyncLocalStorage,
|
|
79
|
+
},
|
|
80
|
+
}),
|
|
81
|
+
["server.js"]: createServerFile({
|
|
82
|
+
compiledBundles,
|
|
83
|
+
compilerOptions: {
|
|
84
|
+
experimentalMiddlewareLocaleSplitting: compilerOptions.experimentalMiddlewareLocaleSplitting ??
|
|
85
|
+
defaultCompilerOptions.experimentalMiddlewareLocaleSplitting,
|
|
86
|
+
disableAsyncLocalStorage: compilerOptions.disableAsyncLocalStorage ??
|
|
87
|
+
defaultCompilerOptions.disableAsyncLocalStorage,
|
|
88
|
+
},
|
|
89
|
+
}),
|
|
90
|
+
["registry.js"]: createRegistry(),
|
|
91
|
+
["messages.js"]: "export { m, prefetchMessages, loadMessageModule } from './loader.js';",
|
|
92
|
+
...messageOutput,
|
|
93
|
+
};
|
|
94
|
+
if (compilerOptions.includeEslintDisableComment) {
|
|
95
|
+
for (const [filename, content] of Object.entries(output)) {
|
|
96
|
+
if (filename.endsWith(".js") && !content.startsWith("/* eslint-disable")) {
|
|
97
|
+
output[filename] = `/* eslint-disable */\n${content}`;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
manifest.routes = Object.fromEntries(routeKeys);
|
|
102
|
+
state = {
|
|
103
|
+
output,
|
|
104
|
+
manifest,
|
|
105
|
+
inputsDigest: await computeOptionsDigest(compilerOptions, tracked),
|
|
106
|
+
};
|
|
107
|
+
await maybeWriteTypeShims(compilerOptions, state);
|
|
108
|
+
return state;
|
|
109
|
+
}
|
|
110
|
+
function loadVirtual(subpath) {
|
|
111
|
+
if (!state)
|
|
112
|
+
return undefined;
|
|
113
|
+
if (subpath === "" || subpath === "index.js" || subpath === "index") {
|
|
114
|
+
return entryModuleSource();
|
|
115
|
+
}
|
|
116
|
+
if (subpath === "manifest" || subpath === "manifest.json") {
|
|
117
|
+
const manifest = {
|
|
118
|
+
...state.manifest,
|
|
119
|
+
routes: Object.fromEntries(routeKeys),
|
|
120
|
+
};
|
|
121
|
+
return `export default ${JSON.stringify(manifest)};`;
|
|
122
|
+
}
|
|
123
|
+
return state.output[subpath];
|
|
124
|
+
}
|
|
125
|
+
function entryModuleSource() {
|
|
126
|
+
return [
|
|
127
|
+
`export { m, prefetchMessages, loadMessageModule } from ${JSON.stringify(toVirtualId("loader.js"))};`,
|
|
128
|
+
`export * from ${JSON.stringify(toVirtualId("runtime.js"))};`,
|
|
129
|
+
`export { paraglideMiddleware } from ${JSON.stringify(toVirtualId("server.js"))};`,
|
|
130
|
+
].join("\n");
|
|
131
|
+
}
|
|
132
|
+
return {
|
|
133
|
+
name: "paraglide-lazy-modules",
|
|
134
|
+
enforce: "pre",
|
|
135
|
+
async configResolved() {
|
|
136
|
+
await ensureCompiled(true);
|
|
137
|
+
},
|
|
138
|
+
configureServer(devServer) {
|
|
139
|
+
server = devServer;
|
|
140
|
+
},
|
|
141
|
+
resolveId(id, importer) {
|
|
142
|
+
if (id === VIRTUAL_PREFIX || id === `${VIRTUAL_PREFIX}/`) {
|
|
143
|
+
return toResolvedVirtualId("");
|
|
144
|
+
}
|
|
145
|
+
if (id.startsWith(`${VIRTUAL_PREFIX}/`)) {
|
|
146
|
+
return toResolvedVirtualId(id.slice(VIRTUAL_PREFIX.length + 1));
|
|
147
|
+
}
|
|
148
|
+
// Relative imports from within virtual paraglide modules
|
|
149
|
+
// (runtime.js → ./get-locale.js is inlined; server → ./runtime.js)
|
|
150
|
+
if (importer &&
|
|
151
|
+
isParaglideVirtualId(importer) &&
|
|
152
|
+
(id.startsWith("./") || id.startsWith("../"))) {
|
|
153
|
+
const importerSub = stripVirtualPrefix(importer) ?? "";
|
|
154
|
+
const importerDir = importerSub.includes("/")
|
|
155
|
+
? importerSub.slice(0, importerSub.lastIndexOf("/"))
|
|
156
|
+
: "";
|
|
157
|
+
const resolved = path.posix.normalize(importerDir ? `${importerDir}/${id}` : id.replace(/^\.\//, ""));
|
|
158
|
+
const cleaned = resolved.replace(/^(\.\.\/)+/, "").replace(/^\.\//, "");
|
|
159
|
+
if (cleaned && !cleaned.startsWith("..")) {
|
|
160
|
+
return toResolvedVirtualId(cleaned);
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
return undefined;
|
|
164
|
+
},
|
|
165
|
+
async load(id) {
|
|
166
|
+
if (!isParaglideVirtualId(id))
|
|
167
|
+
return undefined;
|
|
168
|
+
const sub = stripVirtualPrefix(id);
|
|
169
|
+
if (sub === undefined)
|
|
170
|
+
return undefined;
|
|
171
|
+
if (!state) {
|
|
172
|
+
await ensureCompiled();
|
|
173
|
+
}
|
|
174
|
+
const source = loadVirtual(sub);
|
|
175
|
+
return source === undefined ? null : source;
|
|
176
|
+
},
|
|
177
|
+
transform(code, id) {
|
|
178
|
+
if (isParaglideVirtualId(id))
|
|
179
|
+
return undefined;
|
|
180
|
+
if (id.includes("node_modules"))
|
|
181
|
+
return undefined;
|
|
182
|
+
if (!/\.(?:[cm]?[jt]sx?|svelte|vue|mdx)(?:\?|$)/.test(id) &&
|
|
183
|
+
!id.includes(".svelte")) {
|
|
184
|
+
return undefined;
|
|
185
|
+
}
|
|
186
|
+
const keys = scanMessageKeys(code);
|
|
187
|
+
const normalized = normalizeRouteId(id);
|
|
188
|
+
if (keys.length === 0) {
|
|
189
|
+
routeKeys.delete(normalized);
|
|
190
|
+
return undefined;
|
|
191
|
+
}
|
|
192
|
+
routeKeys.set(normalized, keys);
|
|
193
|
+
if (state) {
|
|
194
|
+
state.manifest.routes[normalized] = keys;
|
|
195
|
+
}
|
|
196
|
+
return undefined;
|
|
197
|
+
},
|
|
198
|
+
async buildStart() {
|
|
199
|
+
await ensureCompiled();
|
|
200
|
+
},
|
|
201
|
+
generateBundle(_options, bundle) {
|
|
202
|
+
if (!state)
|
|
203
|
+
return;
|
|
204
|
+
for (const [fileName, output] of Object.entries(bundle)) {
|
|
205
|
+
if (output.type !== "chunk")
|
|
206
|
+
continue;
|
|
207
|
+
for (const moduleId of Object.keys(output.modules)) {
|
|
208
|
+
const sub = stripVirtualPrefix(moduleId);
|
|
209
|
+
if (!sub?.startsWith("messages/") || !sub.endsWith(".js")) {
|
|
210
|
+
continue;
|
|
211
|
+
}
|
|
212
|
+
const entry = findManifestEntry(state.manifest, sub);
|
|
213
|
+
if (entry) {
|
|
214
|
+
entry.url = "/" + fileName.replace(/\\/g, "/");
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
state.manifest.routes = Object.fromEntries(routeKeys);
|
|
219
|
+
this.emitFile({
|
|
220
|
+
type: "asset",
|
|
221
|
+
fileName: "paraglide-manifest.json",
|
|
222
|
+
source: JSON.stringify(state.manifest, undefined, "\t") + "\n",
|
|
223
|
+
});
|
|
224
|
+
},
|
|
225
|
+
async handleHotUpdate(ctx) {
|
|
226
|
+
const targets = getWatchTargets(tracked.readFiles, {
|
|
227
|
+
outdir: compilerOptions.outdir,
|
|
228
|
+
});
|
|
229
|
+
const normalized = nodeNormalizePath(ctx.file);
|
|
230
|
+
const shouldRecompile = targets.files.has(normalized) ||
|
|
231
|
+
isPathWithinDirectories(normalized, targets.directories);
|
|
232
|
+
if (!shouldRecompile) {
|
|
233
|
+
return;
|
|
234
|
+
}
|
|
235
|
+
logger.info(`Re-compiling lazy modules… (${path.relative(process.cwd(), ctx.file)})`);
|
|
236
|
+
try {
|
|
237
|
+
await ensureCompiled(true);
|
|
238
|
+
logger.success("Lazy modules recompiled");
|
|
239
|
+
if (server) {
|
|
240
|
+
for (const mod of server.moduleGraph.idToModuleMap.values()) {
|
|
241
|
+
if (mod.id && isParaglideVirtualId(mod.id)) {
|
|
242
|
+
server.moduleGraph.invalidateModule(mod);
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
catch (error) {
|
|
248
|
+
logger.warn("Failed to recompile lazy modules:", error.message);
|
|
249
|
+
}
|
|
250
|
+
},
|
|
251
|
+
};
|
|
252
|
+
}
|
|
253
|
+
function findManifestEntry(manifest, modulePath) {
|
|
254
|
+
for (const locales of Object.values(manifest.messages)) {
|
|
255
|
+
for (const entry of Object.values(locales)) {
|
|
256
|
+
if (entry.module === modulePath)
|
|
257
|
+
return entry;
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
return undefined;
|
|
261
|
+
}
|
|
262
|
+
function normalizeRouteId(id) {
|
|
263
|
+
const withoutQuery = id.split("?")[0] ?? id;
|
|
264
|
+
try {
|
|
265
|
+
return path.relative(process.cwd(), withoutQuery);
|
|
266
|
+
}
|
|
267
|
+
catch {
|
|
268
|
+
return withoutQuery;
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
async function computeOptionsDigest(options, tracked) {
|
|
272
|
+
const hash = createHash("sha256");
|
|
273
|
+
const { fs: _fs, ...serializable } = options;
|
|
274
|
+
void _fs;
|
|
275
|
+
hash.update(JSON.stringify({ ...serializable, mode: "lazy-modules" }));
|
|
276
|
+
const targets = getWatchTargets(tracked.readFiles, {
|
|
277
|
+
outdir: options.outdir,
|
|
278
|
+
});
|
|
279
|
+
const fsp = (options.fs ?? nodeFs).promises;
|
|
280
|
+
for (const directoryPath of [...targets.directories].sort()) {
|
|
281
|
+
const entries = await fsp.readdir(directoryPath).catch(() => undefined);
|
|
282
|
+
hash.update(`\0dir:${directoryPath}:`);
|
|
283
|
+
if (entries) {
|
|
284
|
+
for (const entry of [...entries].sort()) {
|
|
285
|
+
hash.update(entry + ",");
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
for (const filePath of [...targets.files].sort()) {
|
|
290
|
+
const content = await fsp.readFile(filePath).catch(() => undefined);
|
|
291
|
+
hash.update(`\0file:${filePath}:`);
|
|
292
|
+
if (content)
|
|
293
|
+
hash.update(content);
|
|
294
|
+
}
|
|
295
|
+
return hash.digest("hex");
|
|
296
|
+
}
|
|
297
|
+
async function maybeWriteTypeShims(options, state) {
|
|
298
|
+
if (!options.outdir)
|
|
299
|
+
return;
|
|
300
|
+
const fs = options.fs ?? nodeFs;
|
|
301
|
+
const outdir = path.resolve(process.cwd(), options.outdir);
|
|
302
|
+
await fs.promises.mkdir(outdir, { recursive: true });
|
|
303
|
+
const dts = state.output["messages.d.ts"];
|
|
304
|
+
if (dts) {
|
|
305
|
+
await fs.promises.writeFile(path.join(outdir, "messages.d.ts"), dts);
|
|
306
|
+
}
|
|
307
|
+
// Thin re-exports so `$lib/paraglide/*` keeps working while the runtime
|
|
308
|
+
// instance stays unified through virtual modules. Messages import the
|
|
309
|
+
// loader directly so the client never pulls in `server.js`.
|
|
310
|
+
await fs.promises.writeFile(path.join(outdir, "messages.js"), [
|
|
311
|
+
`/* eslint-disable */`,
|
|
312
|
+
`export { m, prefetchMessages, loadMessageModule } from 'virtual:paraglide/loader.js';`,
|
|
313
|
+
``,
|
|
314
|
+
].join("\n"));
|
|
315
|
+
await fs.promises.writeFile(path.join(outdir, "runtime.js"), [
|
|
316
|
+
`/* eslint-disable */`,
|
|
317
|
+
`export * from 'virtual:paraglide/runtime.js';`,
|
|
318
|
+
``,
|
|
319
|
+
].join("\n"));
|
|
320
|
+
await fs.promises.writeFile(path.join(outdir, "server.js"), [
|
|
321
|
+
`/* eslint-disable */`,
|
|
322
|
+
`export { paraglideMiddleware } from 'virtual:paraglide/server.js';`,
|
|
323
|
+
``,
|
|
324
|
+
].join("\n"));
|
|
325
|
+
await fs.promises.writeFile(path.join(outdir, "runtime.d.ts"), [`export * from 'virtual:paraglide';`, ``].join("\n"));
|
|
326
|
+
await fs.promises.writeFile(path.join(outdir, "server.d.ts"), [`export { paraglideMiddleware } from 'virtual:paraglide';`, ``].join("\n"));
|
|
327
|
+
}
|
|
328
|
+
//# sourceMappingURL=vite-plugin.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vite-plugin.js","sourceRoot":"","sources":["../../../src/bundler-plugins/lazy-modules/vite-plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,MAAM,MAAM,SAAS,CAAC;AAE7B,OAAO,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AACjE,OAAO,EACN,sBAAsB,GAEtB,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AACnE,OAAO,EAAE,iBAAiB,EAAE,MAAM,0CAA0C,CAAC;AAC7E,OAAO,EAAE,gBAAgB,EAAE,MAAM,6CAA6C,CAAC;AAC/E,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,EAAE,qBAAqB,EAAE,MAAM,iDAAiD,CAAC;AAExF,OAAO,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAC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SAAS,CAC1B,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,aAAa,CAAC,EAChC;QACC,sBAAsB;QACtB,uFAAuF;QACvF,EAAE;KACF,CAAC,IAAI,CAAC,IAAI,CAAC,CACZ,CAAC;IAEF,MAAM,EAAE,CAAC,QAAQ,CAAC,SAAS,CAC1B,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,YAAY,CAAC,EAC/B;QACC,sBAAsB;QACtB,+CAA+C;QAC/C,EAAE;KACF,CAAC,IAAI,CAAC,IAAI,CAAC,CACZ,CAAC;IAEF,MAAM,EAAE,CAAC,QAAQ,CAAC,SAAS,CAC1B,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,WAAW,CAAC,EAC9B;QACC,sBAAsB;QACtB,oEAAoE;QACpE,EAAE;KACF,CAAC,IAAI,CAAC,IAAI,CAAC,CACZ,CAAC;IAEF,MAAM,EAAE,CAAC,QAAQ,CAAC,SAAS,CAC1B,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,cAAc,CAAC,EACjC,CAAC,oCAAoC,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CACrD,CAAC;IAEF,MAAM,EAAE,CAAC,QAAQ,CAAC,SAAS,CAC1B,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,aAAa,CAAC,EAChC,CAAC,0DAA0D,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAC3E,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vite-plugin.test.d.ts","sourceRoot":"","sources":["../../../src/bundler-plugins/lazy-modules/vite-plugin.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { test, expect } from "vitest";
|
|
2
|
+
import { paraglideVitePlugin } from "../vite.js";
|
|
3
|
+
import { createLazyModulesVitePlugin } from "./vite-plugin.js";
|
|
4
|
+
test("experimentalLazyModules returns the lazy Vite plugin", () => {
|
|
5
|
+
const plugin = paraglideVitePlugin({
|
|
6
|
+
messages: "./messages/{locale}.json",
|
|
7
|
+
locales: ["en"],
|
|
8
|
+
baseLocale: "en",
|
|
9
|
+
outdir: "./src/paraglide",
|
|
10
|
+
experimentalLazyModules: true,
|
|
11
|
+
});
|
|
12
|
+
expect(plugin).toMatchObject({ name: "paraglide-lazy-modules" });
|
|
13
|
+
});
|
|
14
|
+
test("experimentalLazyModules rejects conflicting outputStructure", () => {
|
|
15
|
+
expect(() => paraglideVitePlugin({
|
|
16
|
+
messages: "./messages/{locale}.json",
|
|
17
|
+
locales: ["en"],
|
|
18
|
+
baseLocale: "en",
|
|
19
|
+
outdir: "./src/paraglide",
|
|
20
|
+
experimentalLazyModules: true,
|
|
21
|
+
outputStructure: "message-modules",
|
|
22
|
+
})).toThrow(/lazy-modules/);
|
|
23
|
+
});
|
|
24
|
+
test("experimentalLazyModules cannot combine with per-locale build", () => {
|
|
25
|
+
expect(() => paraglideVitePlugin({
|
|
26
|
+
messages: "./messages/{locale}.json",
|
|
27
|
+
locales: ["en"],
|
|
28
|
+
baseLocale: "en",
|
|
29
|
+
outdir: "./src/paraglide",
|
|
30
|
+
experimentalLazyModules: true,
|
|
31
|
+
experimentalPerLocaleBuild: true,
|
|
32
|
+
})).toThrow(/cannot be combined/);
|
|
33
|
+
});
|
|
34
|
+
test("createLazyModulesVitePlugin exposes resolve/load hooks", () => {
|
|
35
|
+
const plugin = createLazyModulesVitePlugin({
|
|
36
|
+
messages: "./messages/{locale}.json",
|
|
37
|
+
locales: ["en"],
|
|
38
|
+
baseLocale: "en",
|
|
39
|
+
outdir: "./.paraglide-test",
|
|
40
|
+
});
|
|
41
|
+
expect(plugin.resolveId).toBeTypeOf("function");
|
|
42
|
+
expect(plugin.load).toBeTypeOf("function");
|
|
43
|
+
expect(plugin.transform).toBeTypeOf("function");
|
|
44
|
+
});
|
|
45
|
+
//# sourceMappingURL=vite-plugin.test.js.map
|
|
@@ -0,0 +1 @@
|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KAChC,CAAC,CACF,CAAC,OAAO,CAAC,oBAAoB,CAAC,CAAC;AACjC,CAAC,CAAC,CAAC;AAEH,IAAI,CAAC,wDAAwD,EAAE,GAAG,EAAE;IACnE,MAAM,MAAM,GAAG,2BAA2B,CAAC;QAC1C,QAAQ,EAAE,0BAA0B;QACpC,OAAO,EAAE,CAAC,IAAI,CAAC;QACf,UAAU,EAAE,IAAI;QAChB,MAAM,EAAE,mBAAmB;KAC3B,CAAC,CAAC;IAEH,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC;IAChD,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC;IAC3C,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC;AACjD,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/bundler-plugins/per-locale-build/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,uBAAuB,gCAAgC,CAAC;AACrE,eAAO,MAAM,uBAAuB,2CAA0C,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/bundler-plugins/per-locale-build/constants.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,uBAAuB,GAAG,6BAA6B,CAAC;AACrE,MAAM,CAAC,MAAM,uBAAuB,GAAG,cAAc,uBAAuB,EAAE,CAAC","sourcesContent":["export const PER_LOCALE_BUILD_MARKER = \"__PARAGLIDE_STATIC_LOCALE__\";\nexport const PER_LOCALE_BUILD_DEFINE = `globalThis.${PER_LOCALE_BUILD_MARKER}`;\n"]}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { Plugin } from "vite";
|
|
2
|
+
import type { CompilerOptions } from "../../compiler/compiler-options.js";
|
|
3
|
+
export declare function createPerLocaleBuildPlugins(args: {
|
|
4
|
+
compilerOptions: CompilerOptions;
|
|
5
|
+
createCompilerPlugin: (options: CompilerOptions) => Plugin;
|
|
6
|
+
}): Plugin[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/bundler-plugins/per-locale-build/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oCAAoC,CAAC;AAK1E,wBAAgB,2BAA2B,CAAC,IAAI,EAAE;IACjD,eAAe,EAAE,eAAe,CAAC;IACjC,oBAAoB,EAAE,CAAC,OAAO,EAAE,eAAe,KAAK,MAAM,CAAC;CAC3D,GAAG,MAAM,EAAE,CASX"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { perLocaleBuildStaticLocaleExpression } from "../../compiler/per-locale-build.js";
|
|
2
|
+
import { createViteLocaleEnvironmentPlugin } from "./vite-environments.js";
|
|
3
|
+
export function createPerLocaleBuildPlugins(args) {
|
|
4
|
+
validateCompilerOptions(args.compilerOptions);
|
|
5
|
+
const compilerOptions = createPerLocaleCompilerOptions(args.compilerOptions);
|
|
6
|
+
return [
|
|
7
|
+
args.createCompilerPlugin(compilerOptions),
|
|
8
|
+
createViteLocaleEnvironmentPlugin({
|
|
9
|
+
settings: () => Promise.resolve(loadSettings(compilerOptions)),
|
|
10
|
+
}),
|
|
11
|
+
];
|
|
12
|
+
}
|
|
13
|
+
function createPerLocaleCompilerOptions(compilerOptions) {
|
|
14
|
+
return {
|
|
15
|
+
...compilerOptions,
|
|
16
|
+
// Per-locale environments read specialized sources from disk.
|
|
17
|
+
emitFiles: true,
|
|
18
|
+
outputStructure: compilerOptions.outputStructure ?? "locale-modules",
|
|
19
|
+
experimentalStaticLocale: perLocaleBuildStaticLocaleExpression,
|
|
20
|
+
additionalFiles: {
|
|
21
|
+
...compilerOptions.additionalFiles,
|
|
22
|
+
},
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
function validateCompilerOptions(options) {
|
|
26
|
+
if (options.experimentalStaticLocale !== undefined) {
|
|
27
|
+
throw new Error("experimentalPerLocaleBuild cannot be combined with experimentalStaticLocale because it controls the compiler's static locale expression.");
|
|
28
|
+
}
|
|
29
|
+
if (options.experimentalMiddlewareLocaleSplitting) {
|
|
30
|
+
throw new Error("experimentalPerLocaleBuild cannot be combined with experimentalMiddlewareLocaleSplitting.");
|
|
31
|
+
}
|
|
32
|
+
if (options.outputStructure !== undefined &&
|
|
33
|
+
options.outputStructure !== "locale-modules") {
|
|
34
|
+
throw new Error('experimentalPerLocaleBuild requires outputStructure: "locale-modules".');
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
function loadSettings(options) {
|
|
38
|
+
return {
|
|
39
|
+
baseLocale: options.baseLocale,
|
|
40
|
+
locales: [...options.locales],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/bundler-plugins/per-locale-build/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,oCAAoC,EAAE,MAAM,oCAAoC,CAAC;AAE1F,OAAO,EAAE,iCAAiC,EAAE,MAAM,wBAAwB,CAAC;AAE3E,MAAM,UAAU,2BAA2B,CAAC,IAG3C;IACA,uBAAuB,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;IAC9C,MAAM,eAAe,GAAG,8BAA8B,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;IAC7E,OAAO;QACN,IAAI,CAAC,oBAAoB,CAAC,eAAe,CAAC;QAC1C,iCAAiC,CAAC;YACjC,QAAQ,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC,YAAY,CAAC,eAAe,CAAC,CAAC;SAC9D,CAAC;KACF,CAAC;AACH,CAAC;AAED,SAAS,8BAA8B,CACtC,eAAgC;IAEhC,OAAO;QACN,GAAG,eAAe;QAClB,8DAA8D;QAC9D,SAAS,EAAE,IAAI;QACf,eAAe,EAAE,eAAe,CAAC,eAAe,IAAI,gBAAgB;QACpE,wBAAwB,EAAE,oCAAoC;QAC9D,eAAe,EAAE;YAChB,GAAG,eAAe,CAAC,eAAe;SAClC;KACD,CAAC;AACH,CAAC;AAED,SAAS,uBAAuB,CAAC,OAAwB;IACxD,IAAI,OAAO,CAAC,wBAAwB,KAAK,SAAS,EAAE,CAAC;QACpD,MAAM,IAAI,KAAK,CACd,0IAA0I,CAC1I,CAAC;IACH,CAAC;IACD,IAAI,OAAO,CAAC,qCAAqC,EAAE,CAAC;QACnD,MAAM,IAAI,KAAK,CACd,2FAA2F,CAC3F,CAAC;IACH,CAAC;IACD,IACC,OAAO,CAAC,eAAe,KAAK,SAAS;QACrC,OAAO,CAAC,eAAe,KAAK,gBAAgB,EAC3C,CAAC;QACF,MAAM,IAAI,KAAK,CACd,wEAAwE,CACxE,CAAC;IACH,CAAC;AACF,CAAC;AAED,SAAS,YAAY,CACpB,OAAwD;IAExD,OAAO;QACN,UAAU,EAAE,OAAO,CAAC,UAAU;QAC9B,OAAO,EAAE,CAAC,GAAG,OAAO,CAAC,OAAO,CAAC;KAC7B,CAAC;AACH,CAAC","sourcesContent":["import type { Plugin } from \"vite\";\nimport type { CompilerOptions } from \"../../compiler/compiler-options.js\";\nimport { perLocaleBuildStaticLocaleExpression } from \"../../compiler/per-locale-build.js\";\nimport type { PerLocaleBuildSettings } from \"./types.js\";\nimport { createViteLocaleEnvironmentPlugin } from \"./vite-environments.js\";\n\nexport function createPerLocaleBuildPlugins(args: {\n\tcompilerOptions: CompilerOptions;\n\tcreateCompilerPlugin: (options: CompilerOptions) => Plugin;\n}): Plugin[] {\n\tvalidateCompilerOptions(args.compilerOptions);\n\tconst compilerOptions = createPerLocaleCompilerOptions(args.compilerOptions);\n\treturn [\n\t\targs.createCompilerPlugin(compilerOptions),\n\t\tcreateViteLocaleEnvironmentPlugin({\n\t\t\tsettings: () => Promise.resolve(loadSettings(compilerOptions)),\n\t\t}),\n\t];\n}\n\nfunction createPerLocaleCompilerOptions(\n\tcompilerOptions: CompilerOptions\n): CompilerOptions {\n\treturn {\n\t\t...compilerOptions,\n\t\t// Per-locale environments read specialized sources from disk.\n\t\temitFiles: true,\n\t\toutputStructure: compilerOptions.outputStructure ?? \"locale-modules\",\n\t\texperimentalStaticLocale: perLocaleBuildStaticLocaleExpression,\n\t\tadditionalFiles: {\n\t\t\t...compilerOptions.additionalFiles,\n\t\t},\n\t};\n}\n\nfunction validateCompilerOptions(options: CompilerOptions): void {\n\tif (options.experimentalStaticLocale !== undefined) {\n\t\tthrow new Error(\n\t\t\t\"experimentalPerLocaleBuild cannot be combined with experimentalStaticLocale because it controls the compiler's static locale expression.\"\n\t\t);\n\t}\n\tif (options.experimentalMiddlewareLocaleSplitting) {\n\t\tthrow new Error(\n\t\t\t\"experimentalPerLocaleBuild cannot be combined with experimentalMiddlewareLocaleSplitting.\"\n\t\t);\n\t}\n\tif (\n\t\toptions.outputStructure !== undefined &&\n\t\toptions.outputStructure !== \"locale-modules\"\n\t) {\n\t\tthrow new Error(\n\t\t\t'experimentalPerLocaleBuild requires outputStructure: \"locale-modules\".'\n\t\t);\n\t}\n}\n\nfunction loadSettings(\n\toptions: Pick<CompilerOptions, \"baseLocale\" | \"locales\">\n): PerLocaleBuildSettings {\n\treturn {\n\t\tbaseLocale: options.baseLocale,\n\t\tlocales: [...options.locales],\n\t};\n}\n"]}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Returns a readable, filesystem-safe, collision-free identifier for a locale.
|
|
3
|
+
*
|
|
4
|
+
* The readable part is only for diagnostics. The complete UTF-8 hex suffix is
|
|
5
|
+
* what guarantees that two different locale strings never share an output
|
|
6
|
+
* directory, including locales which differ only by punctuation or Unicode.
|
|
7
|
+
*/
|
|
8
|
+
export declare function getPerLocaleBuildLocaleId(locale: string): string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"locale-id.d.ts","sourceRoot":"","sources":["../../../src/bundler-plugins/per-locale-build/locale-id.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,wBAAgB,yBAAyB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAMhE"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Returns a readable, filesystem-safe, collision-free identifier for a locale.
|
|
3
|
+
*
|
|
4
|
+
* The readable part is only for diagnostics. The complete UTF-8 hex suffix is
|
|
5
|
+
* what guarantees that two different locale strings never share an output
|
|
6
|
+
* directory, including locales which differ only by punctuation or Unicode.
|
|
7
|
+
*/
|
|
8
|
+
export function getPerLocaleBuildLocaleId(locale) {
|
|
9
|
+
const readable = locale.replace(/[^A-Za-z0-9_-]/g, "_") || "locale";
|
|
10
|
+
const hex = Array.from(new TextEncoder().encode(locale), (byte) => byte.toString(16).padStart(2, "0")).join("");
|
|
11
|
+
return `${readable}-${hex}`;
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=locale-id.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"locale-id.js","sourceRoot":"","sources":["../../../src/bundler-plugins/per-locale-build/locale-id.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,MAAM,UAAU,yBAAyB,CAAC,MAAc;IACvD,MAAM,QAAQ,GAAG,MAAM,CAAC,OAAO,CAAC,iBAAiB,EAAE,GAAG,CAAC,IAAI,QAAQ,CAAC;IACpE,MAAM,GAAG,GAAG,KAAK,CAAC,IAAI,CAAC,IAAI,WAAW,EAAE,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,IAAI,EAAE,EAAE,CACjE,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,CAClC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IACX,OAAO,GAAG,QAAQ,IAAI,GAAG,EAAE,CAAC;AAC7B,CAAC","sourcesContent":["/**\n * Returns a readable, filesystem-safe, collision-free identifier for a locale.\n *\n * The readable part is only for diagnostics. The complete UTF-8 hex suffix is\n * what guarantees that two different locale strings never share an output\n * directory, including locales which differ only by punctuation or Unicode.\n */\nexport function getPerLocaleBuildLocaleId(locale: string): string {\n\tconst readable = locale.replace(/[^A-Za-z0-9_-]/g, \"_\") || \"locale\";\n\tconst hex = Array.from(new TextEncoder().encode(locale), (byte) =>\n\t\tbyte.toString(16).padStart(2, \"0\")\n\t).join(\"\");\n\treturn `${readable}-${hex}`;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/bundler-plugins/per-locale-build/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,sBAAsB,GAAG;IACpC,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,EAAE,CAAC;CAClB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/bundler-plugins/per-locale-build/types.ts"],"names":[],"mappings":"","sourcesContent":["export type PerLocaleBuildSettings = {\n\tbaseLocale: string;\n\tlocales: string[];\n};\n"]}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import type { Plugin } from "vite";
|
|
2
|
+
import type { PerLocaleBuildSettings } from "./types.js";
|
|
3
|
+
export declare const VITE_LOCALE_BUILD_MANIFEST = "paraglide-vite-locales.json";
|
|
4
|
+
export declare const VITE_LOCALE_ENVIRONMENT_PREFIX = "paraglide_client_";
|
|
5
|
+
export type ViteLocaleBuildPlan = {
|
|
6
|
+
outputDirectory: string;
|
|
7
|
+
variants: Array<{
|
|
8
|
+
locale: string;
|
|
9
|
+
environmentName: string;
|
|
10
|
+
directory: string;
|
|
11
|
+
outputDirectory: string;
|
|
12
|
+
define: Record<string, string>;
|
|
13
|
+
}>;
|
|
14
|
+
};
|
|
15
|
+
export type ViteLocaleBuildManifest = {
|
|
16
|
+
version: 1;
|
|
17
|
+
backend: "vite-rolldown-environments";
|
|
18
|
+
viteVersion: string;
|
|
19
|
+
rolldownVersion: string;
|
|
20
|
+
baseLocale: string;
|
|
21
|
+
locales: Record<string, {
|
|
22
|
+
environment: string;
|
|
23
|
+
directory: string;
|
|
24
|
+
entries: Record<string, string>;
|
|
25
|
+
files: Array<{
|
|
26
|
+
fileName: string;
|
|
27
|
+
type: "asset" | "chunk";
|
|
28
|
+
bytes: number;
|
|
29
|
+
entry?: boolean;
|
|
30
|
+
dynamicEntry?: boolean;
|
|
31
|
+
imports?: string[];
|
|
32
|
+
dynamicImports?: string[];
|
|
33
|
+
externalImports?: string[];
|
|
34
|
+
externalDynamicImports?: string[];
|
|
35
|
+
}>;
|
|
36
|
+
}>;
|
|
37
|
+
};
|
|
38
|
+
export declare function createViteLocaleBuildPlan(args: {
|
|
39
|
+
settings: PerLocaleBuildSettings;
|
|
40
|
+
outputDirectory?: string;
|
|
41
|
+
}): ViteLocaleBuildPlan;
|
|
42
|
+
/**
|
|
43
|
+
* Build one untouched Rolldown client graph per locale.
|
|
44
|
+
*
|
|
45
|
+
* This plugin owns app-build orchestration. It deliberately rejects another
|
|
46
|
+
* custom buildApp orchestrator rather than guessing how a framework builds.
|
|
47
|
+
*/
|
|
48
|
+
export declare function createViteLocaleEnvironmentPlugin(args: {
|
|
49
|
+
settings: () => Promise<PerLocaleBuildSettings>;
|
|
50
|
+
outputDirectory?: string;
|
|
51
|
+
}): Plugin;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vite-environments.d.ts","sourceRoot":"","sources":["../../../src/bundler-plugins/per-locale-build/vite-environments.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAsB,MAAM,EAA2B,MAAM,MAAM,CAAC;AAIhF,OAAO,KAA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