{"id":19602890,"url":"https://github.com/nodegui/svelte-nodegui-preprocessor","last_synced_at":"2025-02-26T15:42:43.879Z","repository":{"id":57131589,"uuid":"334232372","full_name":"nodegui/svelte-nodegui-preprocessor","owner":"nodegui","description":null,"archived":false,"fork":false,"pushed_at":"2021-03-03T22:19:06.000Z","size":842,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-02-18T03:56:06.762Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nodegui.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-01-29T18:39:54.000Z","updated_at":"2022-04-21T08:17:41.000Z","dependencies_parsed_at":"2022-09-01T00:11:12.262Z","dependency_job_id":null,"html_url":"https://github.com/nodegui/svelte-nodegui-preprocessor","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nodegui%2Fsvelte-nodegui-preprocessor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nodegui%2Fsvelte-nodegui-preprocessor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nodegui%2Fsvelte-nodegui-preprocessor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nodegui%2Fsvelte-nodegui-preprocessor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nodegui","download_url":"https://codeload.github.com/nodegui/svelte-nodegui-preprocessor/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240886346,"owners_count":19873525,"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":[],"created_at":"2024-11-11T09:26:48.342Z","updated_at":"2025-02-26T15:42:43.846Z","avatar_url":"https://github.com/nodegui.png","language":"TypeScript","readme":"# Svelte NodeGUI Preprocessor\n\nA preprocessor for [Svelte NodeGUI](https://github.com/nodegui/svelte-nodegui); forked from [halfnelson](https://github.com/halfnelson)'s [svelte-native-preprocessor](https://github.com/halfnelson/svelte-native-preprocessor) for [Svelte Native](https://github.com/halfnelson/svelte-native).\n\nIt performs the following transforms to provide a better developer experience when using Svelte NodeGUI:\n\n - [x] Adds `\u003csvelte:options namespace=\"foreign\" /\u003e` to the component, ensuring the generated code is compatible with Svelte NodeGUI\n \n\n## Installation\n\nUsing `svelte-loader`, in `webpack.config.js`:\n\n```js\nconst SvelteNodeGUIPreprocessor = require(\"@nodegui/svelte-nodegui-preprocessor\");\n```\n\nWhere the `svelte-loader` is registered, add the preprocessor to `options.preprocess`:\n\n```js\n {\n    test: /\\.svelte$/,\n    exclude: /node_modules/,\n    use: [\n        { \n            loader: 'svelte-loader',\n            options: {\n                preprocess: SvelteNodeGUIPreprocessor()\n            }\n        }\n    ]\n},\n```\n\nThere is a similar process for `rollup-plugin-svelte`, but users of that library are usually skilled enough to work it out ;)\n\n\n## License\n\n[MIT](LICENSE).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnodegui%2Fsvelte-nodegui-preprocessor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnodegui%2Fsvelte-nodegui-preprocessor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnodegui%2Fsvelte-nodegui-preprocessor/lists"}