{"id":19904146,"url":"https://github.com/wikiwi/value-loader","last_synced_at":"2025-05-03T00:31:31.785Z","repository":{"id":57390521,"uuid":"80927308","full_name":"wikiwi/value-loader","owner":"wikiwi","description":"Webpack loader that executes file in a child compiler and return exports","archived":false,"fork":false,"pushed_at":"2019-04-17T08:05:22.000Z","size":7,"stargazers_count":4,"open_issues_count":4,"forks_count":8,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-25T04:48:09.814Z","etag":null,"topics":["webpack-loader"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wikiwi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-02-04T15:14:43.000Z","updated_at":"2020-02-03T04:47:07.000Z","dependencies_parsed_at":"2022-09-17T03:20:52.185Z","dependency_job_id":null,"html_url":"https://github.com/wikiwi/value-loader","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/wikiwi%2Fvalue-loader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wikiwi%2Fvalue-loader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wikiwi%2Fvalue-loader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wikiwi%2Fvalue-loader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wikiwi","download_url":"https://codeload.github.com/wikiwi/value-loader/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252126537,"owners_count":21698963,"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":["webpack-loader"],"created_at":"2024-11-12T20:27:06.924Z","updated_at":"2025-05-03T00:31:30.686Z","avatar_url":"https://github.com/wikiwi.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Value Loader for Webpack\n\nLike [val-loader](https://github.com/webpack-contrib/val-loader) but runs\nfile in a child compiler.\n\nWorks with babel and TypeScript.\n\n## Install\n\n```bash\nnpm install --save-dev value-loader\n```\n\n## Usage\n\n``` javascript\nlet a = require(\"value-loader!./file.js\");\n// =\u003e excute file.js while compiling and\n//    take the result as javascript code for including\n```\n\nThis loader is also useful if you want to provide data for another loader:\n\n``` javascript\nrequire(\"css-loader!value-loader!./generateCss.js\");\n```\n\nOr if you like to generate a json export similar to the tojson-loader, but with loaders executed:\n\n``` javascript\nrequire(\"raw-loader!value-loader!./resource.json.js\");\n```\n\n\n## Config\n\nInstead of getting the whole `exports` object you can set `name` to the\nnamed export you want to retrieve.\n\n``` javascript\nrequire(\"css-loader!value-loader?name=default!./generateCss.js\");\n```\n\n## Acknowledgement\n\nThis work is heavily based on the work done by Nathan Tran for\n[css-in-js-loader](https://github.com/nthtran/css-in-js-loader).\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwikiwi%2Fvalue-loader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwikiwi%2Fvalue-loader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwikiwi%2Fvalue-loader/lists"}