{"id":15063157,"url":"https://github.com/huang-julien/nuxt-runtime-compiler","last_synced_at":"2026-02-23T09:02:08.939Z","repository":{"id":40494930,"uuid":"487655241","full_name":"huang-julien/nuxt-runtime-compiler","owner":"huang-julien","description":"A simple module to enable vue runtime bundle on Nuxt 2 and 3","archived":false,"fork":false,"pushed_at":"2023-05-17T21:50:40.000Z","size":644,"stargazers_count":17,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-05-02T04:19:48.958Z","etag":null,"topics":["nuxt","nuxt-module","nuxtjs","ssr","vue"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/huang-julien.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-05-01T22:22:39.000Z","updated_at":"2024-06-20T00:11:36.975Z","dependencies_parsed_at":"2024-06-20T00:11:27.182Z","dependency_job_id":"2994547a-fe37-432e-af41-a044d687ded5","html_url":"https://github.com/huang-julien/nuxt-runtime-compiler","commit_stats":{"total_commits":60,"total_committers":3,"mean_commits":20.0,"dds":"0.18333333333333335","last_synced_commit":"093abfb5a99d20889b889fe97c07f6911db0c46f"},"previous_names":["huang-julien/nuxt3-runtime-compiler-module"],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huang-julien%2Fnuxt-runtime-compiler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huang-julien%2Fnuxt-runtime-compiler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huang-julien%2Fnuxt-runtime-compiler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huang-julien%2Fnuxt-runtime-compiler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/huang-julien","download_url":"https://codeload.github.com/huang-julien/nuxt-runtime-compiler/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248199244,"owners_count":21063641,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["nuxt","nuxt-module","nuxtjs","ssr","vue"],"created_at":"2024-09-24T23:52:28.137Z","updated_at":"2025-11-03T18:50:06.417Z","avatar_url":"https://github.com/huang-julien.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# nuxt-runtime-compiler\n\nA simple module to enable vue runtime bundle on Nuxt 2 and 3\n\n:rocket: Runtime bundle can now be enabled in Nuxt 3.4 with `experimental.runtimeVueCompiler` and `vue.runtimeCompiler` in Nuxt 3.5 .\n\n## Configuration\n\nAdd the module to nuxt config file:\n\n`nuxt.config.ts`\n```ts\nexport default defineNuxtConfig({\n    modules: ['nuxt-runtime-compiler']\n})\n```\n\n## Options \n\nThe module has some options built-in\n\n```ts\n\ninterface NuxtRuntimeCompilerOptions {\n  nodeModulesRoot?: string\n}\n\n```\n### nodeModulesRoot\n\nYou can specify the node_modules root directory if your `node_modules` directory is not at your `process.cwd()`.\n\n- Default value is `./`\n\nFor example if you are running `nuxt build` from a project in `root/packages/{YOUR_WORKSPACE}` while your `node_modules` is in `root/`\nthen the nodeModulesRoot should be \n```ts\n\nexport default defineNuxtConfig({\n    modules: ['nuxt-runtime-compiler', {\n        nodeModulesRoot: \"../../\"\n    }]\n})\n```\n\n## RuntimeCompilerOptions\n\nSee [app.config documentation](https://nuxt.com/docs/examples/app/app-config)\nThis module overloads the `AppConfig` exported by `app.config.ts` to pass the [RuntimeCompilerOptions](https://github.com/vuejs/core/blob/dbe7109c8f6417770129dc92313f05feac0c0edb/packages/runtime-core/src/componentOptions.ts#L213-L218) to your VueApp in runtime.\n\nCompatible options from [RuntimeCompilerOptions](https://github.com/vuejs/core/blob/dbe7109c8f6417770129dc92313f05feac0c0edb/packages/runtime-core/src/componentOptions.ts#L213-L218) in `app.config` will also be used by the builder during build time.\n\n`app.config.ts`\n\n```ts\nexport default defineAppConfig({\n  vue: {\n    compilerOptions: {\n      isCustomElement: (tag) =\u003e {\n        return [\n          'math',\n          'maction',\n        ].includes(tag)\n      }\n    }\n  }\n})\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhuang-julien%2Fnuxt-runtime-compiler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhuang-julien%2Fnuxt-runtime-compiler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhuang-julien%2Fnuxt-runtime-compiler/lists"}