{"_id":"webpack-build-utils","_rev":"6-89b815fd923b45722f1dca1be11821a1","name":"webpack-build-utils","dist-tags":{"latest":"0.0.7"},"versions":{"0.0.1":{"name":"webpack-build-utils","version":"0.0.1","description":"webpack-build-utils for build and test","main":"dist/index.js","module":"dist/index.mjs","types":"dist/types/index.d.ts","publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"keywords":["webpack","build","utils","loader"],"author":{"name":"SonOfMagic","email":"qq1324318532@gmail.com"},"license":"ISC","devDependencies":{"@icebreakers/rollup":"*","@icebreakers/tsconfig":"*","webpack":"^5.86.0"},"dependencies":{"create-functional-loader":"*","memfs":"^3.5.3"},"repository":{"type":"git","url":"git+https://github.com/sonofmagic/utils.git"},"bugs":{"url":"https://github.com/sonofmagic/utils/issues"},"homepage":"https://github.com/sonofmagic/utils/tree/main/packages/webpack-build-utils#readme","scripts":{"dev":"cross-env NODE_ENV=development rollup -cw","build":"cross-env NODE_ENV=production rollup -c","sync":"cnpm sync webpack-build-utils"},"_id":"webpack-build-utils@0.0.1","_integrity":"sha512-CkfR4ZY7NjKttVM7f02kJpqbyW7W21G7MLwbfJxDsqIPReWI7QJzPA6y/olpnut57KadwP1NXFnOXu0lGxl4Hw==","_resolved":"C:\\Users\\ICEBRE~1\\AppData\\Local\\Temp\\71fc99f077a717ea6c0a3731f5fd2f05\\webpack-build-utils-0.0.1.tgz","_from":"file:webpack-build-utils-0.0.1.tgz","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-CkfR4ZY7NjKttVM7f02kJpqbyW7W21G7MLwbfJxDsqIPReWI7QJzPA6y/olpnut57KadwP1NXFnOXu0lGxl4Hw==","shasum":"817dd538e54c2698caa7306bd86269988e6cba34","tarball":"https://registry.npmjs.org/webpack-build-utils/-/webpack-build-utils-0.0.1.tgz","fileCount":16,"unpackedSize":10568,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIE+NxWr2PQAPTqqAeucxPhdvOpAbzXeHcvLJ/SC+dRIzAiEAjxAQ+g/7eE/Z72yGKRVjUJkH9LeIrStittJLUY1JYHI="}]},"_npmUser":{"name":"icebreaker","email":"1324318532@qq.com"},"directories":{},"maintainers":[{"name":"icebreaker","email":"1324318532@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/webpack-build-utils_0.0.1_1686727652543_0.04859842465886954"},"_hasShrinkwrap":false},"0.0.2":{"name":"webpack-build-utils","version":"0.0.2","description":"webpack-build-utils for build and test","main":"dist/index.js","module":"dist/index.mjs","types":"dist/types/index.d.ts","publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"keywords":["webpack","build","utils","loader"],"author":{"name":"SonOfMagic","email":"qq1324318532@gmail.com"},"license":"ISC","devDependencies":{"@icebreakers/rollup":"*","@icebreakers/tsconfig":"*","webpack":"^5.87.0"},"dependencies":{"create-functional-loader":"*","memfs":"^3.5.3"},"repository":{"type":"git","url":"git+https://github.com/sonofmagic/utils.git"},"bugs":{"url":"https://github.com/sonofmagic/utils/issues"},"homepage":"https://github.com/sonofmagic/utils/tree/main/packages/webpack-build-utils#readme","scripts":{"dev":"cross-env NODE_ENV=development rollup -cw","build":"cross-env NODE_ENV=production rollup -c","sync":"cnpm sync webpack-build-utils"},"_id":"webpack-build-utils@0.0.2","_integrity":"sha512-5EZFUz3Zk2rszwB5VeczNCqZnNkp4S3Hdck9Mxe26JtosG3qgYdwW8QDzJeN0+/RrYPYwMeMJLreQdGkDT0m7g==","_resolved":"/private/var/folders/rm/spk31h7x5bdbbfmncmrf6yw00000gn/T/5c6e23d95fdfc4337da5190272c1aec7/webpack-build-utils-0.0.2.tgz","_from":"file:webpack-build-utils-0.0.2.tgz","_nodeVersion":"16.19.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-5EZFUz3Zk2rszwB5VeczNCqZnNkp4S3Hdck9Mxe26JtosG3qgYdwW8QDzJeN0+/RrYPYwMeMJLreQdGkDT0m7g==","shasum":"4fadf39a26bb5c020821480d2b6b1ea88b20109f","tarball":"https://registry.npmjs.org/webpack-build-utils/-/webpack-build-utils-0.0.2.tgz","fileCount":16,"unpackedSize":10576,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFNVGWWPXvL6hmg8hsOx6SuQrXn6uJsSuqVl/3QNFJbKAiBJDFS50BUAFpCFZkbEHLkL2v0AIHkXdyTAgBlxGlv6sA=="}]},"_npmUser":{"name":"icebreaker","email":"1324318532@qq.com"},"directories":{},"maintainers":[{"name":"icebreaker","email":"1324318532@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/webpack-build-utils_0.0.2_1686842833435_0.3299574505708476"},"_hasShrinkwrap":false},"0.0.3":{"name":"webpack-build-utils","version":"0.0.3","description":"webpack-build-utils for build and test","main":"dist/index.js","module":"dist/index.mjs","types":"dist/types/index.d.ts","publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"keywords":["webpack","build","utils","loader"],"author":{"name":"SonOfMagic","email":"qq1324318532@gmail.com"},"license":"ISC","devDependencies":{"@icebreakers/rollup":"*","@icebreakers/tsconfig":"*","webpack":"^5.87.0"},"dependencies":{"create-functional-loader":"*","memfs":"^3.5.3"},"repository":{"type":"git","url":"git+https://github.com/sonofmagic/utils.git"},"bugs":{"url":"https://github.com/sonofmagic/utils/issues"},"homepage":"https://github.com/sonofmagic/utils/tree/main/packages/webpack-build-utils#readme","scripts":{"dev":"cross-env NODE_ENV=development rollup -cw","build":"cross-env NODE_ENV=production rollup -c","sync":"cnpm sync webpack-build-utils"},"_id":"webpack-build-utils@0.0.3","_integrity":"sha512-qFxwc5rJfq+YbB+h4elk6y3+GKyT3ENGKWUjKRGyUme8R1fwZtTNxWY7BustPVf+Sz+xbw0guUq9CRhReLW3AQ==","_resolved":"/private/var/folders/rm/spk31h7x5bdbbfmncmrf6yw00000gn/T/04b5e801f3af3597d3ee84bfa5c3135c/webpack-build-utils-0.0.3.tgz","_from":"file:webpack-build-utils-0.0.3.tgz","_nodeVersion":"16.19.1","_npmVersion":"8.19.3","dist":{"integrity":"sha512-qFxwc5rJfq+YbB+h4elk6y3+GKyT3ENGKWUjKRGyUme8R1fwZtTNxWY7BustPVf+Sz+xbw0guUq9CRhReLW3AQ==","shasum":"198101b4d38dde5c6b3c1d493f0a1a30c8b9acf8","tarball":"https://registry.npmjs.org/webpack-build-utils/-/webpack-build-utils-0.0.3.tgz","fileCount":16,"unpackedSize":10585,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDZBqj0K/hUnH1WYF2VM7weRkdJsdJ8kuT41Xz7O7qMIAIgOV/ihcBJk5BvYqua3Re3ZhU4WSV2oXbccEsR9E7LOaY="}]},"_npmUser":{"name":"icebreaker","email":"1324318532@qq.com"},"directories":{},"maintainers":[{"name":"icebreaker","email":"1324318532@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/webpack-build-utils_0.0.3_1686846341662_0.8092312524782943"},"_hasShrinkwrap":false},"0.0.4":{"name":"webpack-build-utils","version":"0.0.4","description":"webpack-build-utils for build and test","main":"dist/index.js","module":"dist/index.mjs","types":"dist/types/index.d.ts","publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"keywords":["webpack","build","utils","loader"],"author":{"name":"SonOfMagic","email":"qq1324318532@gmail.com"},"license":"ISC","devDependencies":{"@icebreakers/rollup":"*","@icebreakers/tsconfig":"*","webpack":"^5.87.0"},"dependencies":{"create-functional-loader":"*","promisify-loader-runner":"*","memfs":"^3.5.3"},"repository":{"type":"git","url":"git+https://github.com/sonofmagic/utils.git"},"bugs":{"url":"https://github.com/sonofmagic/utils/issues"},"homepage":"https://github.com/sonofmagic/utils/tree/main/packages/webpack-build-utils#readme","scripts":{"dev":"cross-env NODE_ENV=development rollup -cw","build":"cross-env NODE_ENV=production rollup -c","sync":"cnpm sync webpack-build-utils"},"_id":"webpack-build-utils@0.0.4","_integrity":"sha512-QwRPmrFemhP5kSkl0ztTR4sExnFUY/V3NnU+E6AcXSgNW0fJvPrPdx67g429lFCjY+Ph9FUizw3rXcVwdZf6Pw==","_resolved":"C:\\Users\\ICEBRE~1\\AppData\\Local\\Temp\\431c822b6c5eda2f213028b89ee347d5\\webpack-build-utils-0.0.4.tgz","_from":"file:webpack-build-utils-0.0.4.tgz","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-QwRPmrFemhP5kSkl0ztTR4sExnFUY/V3NnU+E6AcXSgNW0fJvPrPdx67g429lFCjY+Ph9FUizw3rXcVwdZf6Pw==","shasum":"08340805cd541c74ece336e3f5149a6870f30d2b","tarball":"https://registry.npmjs.org/webpack-build-utils/-/webpack-build-utils-0.0.4.tgz","fileCount":17,"unpackedSize":11204,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICVRKkz5F148cC1k1w7/m+A2RHWmM4PfoBcKMOqrxDJWAiEA/qmaXBOtoejdebPDq63QX5DwAaCg4PhX03ciLfrcaZI="}]},"_npmUser":{"name":"icebreaker","email":"1324318532@qq.com"},"directories":{},"maintainers":[{"name":"icebreaker","email":"1324318532@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/webpack-build-utils_0.0.4_1686903016523_0.517682910081261"},"_hasShrinkwrap":false},"0.0.5":{"name":"webpack-build-utils","version":"0.0.5","description":"webpack-build-utils for build and test","main":"./dist/index.cjs","module":"./dist/index.mjs","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs"}},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"keywords":["webpack","build","utils","loader"],"author":{"name":"SonOfMagic","email":"qq1324318532@gmail.com"},"license":"ISC","devDependencies":{"@icebreakers/rollup":"*","@icebreakers/tsconfig":"*","webpack":"^5.89.0"},"dependencies":{"create-functional-loader":"*","memfs":"^4.6.0","promisify-loader-runner":"*"},"repository":{"type":"git","url":"git+https://github.com/sonofmagic/utils.git"},"bugs":{"url":"https://github.com/sonofmagic/utils/issues"},"homepage":"https://github.com/sonofmagic/utils/tree/main/packages/webpack-build-utils#readme","scripts":{"build":"unbuild","sync":"cnpm sync webpack-build-utils","test":"vitest run --coverage.enabled","test:dev":"vitest"},"_id":"webpack-build-utils@0.0.5","_integrity":"sha512-4zfgyZpIFIAjYPNZZFqXRWJyzZshW8m5seeX2HIySBcUWAKbhvUXur7YdxPe5N/eIL2umijUIX9/v2bcK2CTAw==","_resolved":"/private/var/folders/rm/spk31h7x5bdbbfmncmrf6yw00000gn/T/48e21c6025dd7293b7be2f5161654cf5/webpack-build-utils-0.0.5.tgz","_from":"file:webpack-build-utils-0.0.5.tgz","_nodeVersion":"18.16.1","_npmVersion":"9.7.2","dist":{"integrity":"sha512-4zfgyZpIFIAjYPNZZFqXRWJyzZshW8m5seeX2HIySBcUWAKbhvUXur7YdxPe5N/eIL2umijUIX9/v2bcK2CTAw==","shasum":"1cada181d178f5830dfba1e1c5d666bd248885db","tarball":"https://registry.npmjs.org/webpack-build-utils/-/webpack-build-utils-0.0.5.tgz","fileCount":8,"unpackedSize":13008,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBrexPupCKFaNPVyLnOw6CcHa5cIfABW/ywzwpdGfBV5AiBCLjFif9PxubZuwPdJotAqRFcVMTspyFGlFEEjhRExog=="}]},"_npmUser":{"name":"icebreaker","email":"1324318532@qq.com"},"directories":{},"maintainers":[{"name":"icebreaker","email":"1324318532@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/webpack-build-utils_0.0.5_1700795891639_0.27680421369861796"},"_hasShrinkwrap":false},"0.0.6":{"name":"webpack-build-utils","version":"0.0.6","description":"webpack-build-utils for build and test","main":"./dist/index.cjs","module":"./dist/index.mjs","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs"}},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"keywords":["webpack","build","utils","loader"],"author":{"name":"SonOfMagic","email":"qq1324318532@gmail.com"},"license":"ISC","devDependencies":{"@icebreakers/rollup":"*","@icebreakers/tsconfig":"*","webpack":"^5.89.0"},"dependencies":{"create-functional-loader":"*","memfs":"^4.6.0","promisify-loader-runner":"*"},"repository":{"type":"git","url":"git+https://github.com/sonofmagic/utils.git"},"bugs":{"url":"https://github.com/sonofmagic/utils/issues"},"homepage":"https://github.com/sonofmagic/utils/tree/main/packages/webpack-build-utils#readme","scripts":{"build":"unbuild","sync":"cnpm sync webpack-build-utils","test":"vitest run --coverage.enabled","test:dev":"vitest"},"_id":"webpack-build-utils@0.0.6","_integrity":"sha512-ePKDz60180tBX/YFOpQYPNF+OK2VmwjRaOxGLuLhbORrxaiLAOFCZ+iG1zsuR3cW10Hs28cWL71VIkcpg+nqfA==","_resolved":"/private/var/folders/rm/spk31h7x5bdbbfmncmrf6yw00000gn/T/a4456210fdb88a47c8bb4089beaf33e2/webpack-build-utils-0.0.6.tgz","_from":"file:webpack-build-utils-0.0.6.tgz","_nodeVersion":"18.16.1","_npmVersion":"9.7.2","dist":{"integrity":"sha512-ePKDz60180tBX/YFOpQYPNF+OK2VmwjRaOxGLuLhbORrxaiLAOFCZ+iG1zsuR3cW10Hs28cWL71VIkcpg+nqfA==","shasum":"c0a6c5267ae4cf58abcc1cacaf669ed1ce4f2321","tarball":"https://registry.npmjs.org/webpack-build-utils/-/webpack-build-utils-0.0.6.tgz","fileCount":8,"unpackedSize":13008,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHoaWpNgnWBscTEYBuGTIg5It3BluyeSahWr2/OEUKy6AiB0m6cuxfctc460NlXohHCv+L9zN5jIt6yg+4NFIa4/HA=="}]},"_npmUser":{"name":"icebreaker","email":"1324318532@qq.com"},"directories":{},"maintainers":[{"name":"icebreaker","email":"1324318532@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/webpack-build-utils_0.0.6_1700797991753_0.6565155393832534"},"_hasShrinkwrap":false},"0.0.7":{"name":"webpack-build-utils","version":"0.0.7","description":"webpack-build-utils for build and test","main":"./dist/index.cjs","types":"./dist/index.d.ts","publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"keywords":["webpack","build","utils","loader"],"author":{"name":"SonOfMagic","email":"qq1324318532@gmail.com"},"license":"ISC","devDependencies":{"@icebreakers/rollup":"*","@icebreakers/tsconfig":"*","webpack":"^5.89.0"},"dependencies":{"create-functional-loader":"*","memfs":"^4.6.0","promisify-loader-runner":"*"},"repository":{"type":"git","url":"git+https://github.com/sonofmagic/utils.git"},"bugs":{"url":"https://github.com/sonofmagic/utils/issues"},"homepage":"https://github.com/sonofmagic/utils/tree/main/packages/webpack-build-utils#readme","scripts":{"build":"unbuild","sync":"cnpm sync webpack-build-utils","test":"vitest run --coverage.enabled","test:dev":"vitest"},"_id":"webpack-build-utils@0.0.7","_integrity":"sha512-DITiVtG+5nfxW06XZW6pAlPt1giVoGom0Z4R7S51jqmXNiP3cxVQtODzWHf0H9sX2WgfXPtDwGdvfzbvBEVJLg==","_resolved":"/private/var/folders/rm/spk31h7x5bdbbfmncmrf6yw00000gn/T/ba56e5780bd5028b1ed11dc076789a7b/webpack-build-utils-0.0.7.tgz","_from":"file:webpack-build-utils-0.0.7.tgz","_nodeVersion":"18.16.1","_npmVersion":"9.7.2","dist":{"integrity":"sha512-DITiVtG+5nfxW06XZW6pAlPt1giVoGom0Z4R7S51jqmXNiP3cxVQtODzWHf0H9sX2WgfXPtDwGdvfzbvBEVJLg==","shasum":"20aa72989170ac0c0487b1404df99ab36b9a3a6a","tarball":"https://registry.npmjs.org/webpack-build-utils/-/webpack-build-utils-0.0.7.tgz","fileCount":8,"unpackedSize":12831,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEN9HQ/qnwQ68Y6BO7EEZTJVryWj8j9pSDmwW7P2l4IgAiEArehrY0DVYrZ7Aou7JJMcotvFhV7+gwu8LDEi8pc3IC0="}]},"_npmUser":{"name":"icebreaker","email":"1324318532@qq.com"},"directories":{},"maintainers":[{"name":"icebreaker","email":"1324318532@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/webpack-build-utils_0.0.7_1700798225878_0.419637272668389"},"_hasShrinkwrap":false}},"time":{"created":"2023-06-14T07:27:32.456Z","0.0.1":"2023-06-14T07:27:32.664Z","modified":"2023-11-24T03:57:06.242Z","0.0.2":"2023-06-15T15:27:13.607Z","0.0.3":"2023-06-15T16:25:41.880Z","0.0.4":"2023-06-16T08:10:16.689Z","0.0.5":"2023-11-24T03:18:11.844Z","0.0.6":"2023-11-24T03:53:11.918Z","0.0.7":"2023-11-24T03:57:06.061Z"},"maintainers":[{"name":"icebreaker","email":"1324318532@qq.com"}],"description":"webpack-build-utils for build and test","homepage":"https://github.com/sonofmagic/utils/tree/main/packages/webpack-build-utils#readme","keywords":["webpack","build","utils","loader"],"repository":{"type":"git","url":"git+https://github.com/sonofmagic/utils.git"},"author":{"name":"SonOfMagic","email":"qq1324318532@gmail.com"},"bugs":{"url":"https://github.com/sonofmagic/utils/issues"},"license":"ISC","readme":"# webpack-build-utils\n\nwebpack build utils\n\n## Install\n\n```bash\n<npm|yarn|pnpm> i -D webpack-build-utils\n```\n\n## Usage\n\n```js\nimport {\n  compile,\n  createLoader,\n  getErrors,\n  getMemfsCompiler5,\n  getWarnings,\n  readAsset,\n  readAssets\n} from 'webpack-build-utils'\n\n// normal get compiler\nconst compiler = webpack(webpackConfig)\n\n// get memory compiler\n// const compiler = getMemfsCompiler5(webpackConfig)\n\n\n// promisify webpack.run\nconst stats = await compile(compiler)\n\n// get all Assets as Record<string,string>\nexpect(readAssets(compiler, stats)).toMatchSnapshot('assets')\n// get all error\nexpect(getErrors(stats)).toMatchSnapshot('errors')\n// get all warnings\nexpect(getWarnings(stats)).toMatchSnapshot('warnings')\n\n\n\n// createLoader, quickly create a simple loader\n// webpackConfig\nmodule: {\n  rules: [\n    {\n      test: /\\.m?js$/,\n      // https://webpack.js.org/configuration/module/#useentry\n      use: createLoader(function (source,map,meta) {\n        \n        return source\n      })\n    }\n  ]\n}\n```\n","readmeFilename":"README.md"}