{"library":"liferay-npm-bundler-loader-json-loader","type":"library","category":null,"description":"The `liferay-npm-bundler-loader-json-loader` package, currently at version 2.32.2, is a specialized build-time loader designed for the Liferay npm bundler ecosystem. Its core function is to transform JSON files into standard JavaScript modules, where the content of the JSON file is directly exported as a parsed JavaScript object. This enables developers to seamlessly integrate and import static JSON data within their Liferay frontend projects. As an integral component of the larger `liferay-frontend-projects` monorepo, its release schedule is aligned with broader Liferay frontend tooling updates, which occur frequently, with several related packages seeing multiple updates annually. This loader's key differentiator is its deep integration with Liferay's specific bundling and module resolution mechanisms, providing a tailored solution for Liferay-based development environments, unlike generic JSON loaders used in other bundlers like Webpack or Rollup.","language":"javascript","status":"active","version":"2.32.2","tags":["javascript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install liferay-npm-bundler-loader-json-loader","imports":["// .npmbundlerrc\n{\n  \"rules\": [\n    {\n      \"test\": \"\\\\.json$\",\n      \"use\": [\"json-loader\"]\n    }\n  ]\n}","const bundlerConfig = {\n  \"rules\": [\n    {\n      \"test\": \"\\\\.json$\",\n      \"use\": [\"json-loader\"]\n    }\n  ]\n}; // This configuration object is placed directly into .npmbundlerrc","The `liferay-npm-bundler` automatically applies the configured 'json-loader' when it processes a file matching the 'test' regex (e.g., a '.json' file) during the build process."]},{"cmd":"yarn add liferay-npm-bundler-loader-json-loader","imports":[]},{"cmd":"pnpm add liferay-npm-bundler-loader-json-loader","imports":[]}],"homepage":"https://liferay.dev","github":"https://github.com/liferay/liferay-frontend-projects","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/liferay-npm-bundler-loader-json-loader","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/liferay-npm-bundler-loader-json-loader/compatibility"}}