{"_id":"magic-comments","_rev":"21-dbe97808d170780c709a1f69beb28fea","name":"magic-comments","dist-tags":{"latest":"3.0.0"},"versions":{"1.0.0-alpha.0":{"name":"magic-comments","version":"1.0.0-alpha.0","keywords":["webpack","magic","comments","build","utility"],"author":{"name":"Morgan Ney","email":"morganney@gmail.com"},"license":"MIT","_id":"magic-comments@1.0.0-alpha.0","maintainers":[{"name":"morganney","email":"morganney@gmail.com"}],"homepage":"https://github.com/morganney/magic-comments#readme","bugs":{"url":"https://github.com/morganney/magic-comments/issues"},"dist":{"shasum":"1befb079514b8075d80f0e1141669761cf248a32","tarball":"https://registry.npmjs.org/magic-comments/-/magic-comments-1.0.0-alpha.0.tgz","fileCount":34,"integrity":"sha512-klKjEG7e5+fJfRwOV8evgv7BvZIYloy9mBIchQICFj3PoKCbS5YAs6wjNF++tljET/0AaGVx/eMRDLAJvfiHaQ==","signatures":[{"sig":"MEUCIQDVl2IPhHRiZaud1EBZb//XE7JNayouYr669zKmdsJCHgIgHCToRmJs2RAzsnRVqzR4YDlPFgUGgQyRapb03VTd0B0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":40121},"main":"dist","type":"module","engines":{"node":">=12.17.0"},"exports":{".":{"import":"./dist/index.js","default":"./dist/index.js","require":"./dist/cjs/index.cjs"},"./package.json":"./package.json"},"gitHead":"60c605a2826269752f5a54393761cede58f6e6ee","scripts":{"lint":"eslint . src __tests__ --ext .js","test":"node --experimental-vm-modules --no-warnings ./node_modules/.bin/jest","build":"npm run build:esm && npm run build:cjs","prepack":"npm run build","lint:fix":"npm run lint -- --fix","build:cjs":"BABEL_ENV=cjs babel src --out-dir dist/cjs --out-file-extension .cjs","build:esm":"babel src --out-dir dist"},"_npmUser":{"name":"morganney","email":"morganney@gmail.com"},"repository":{"url":"git+https://github.com/morganney/magic-comments.git","type":"git"},"_npmVersion":"9.5.1","description":"Utility for adding webpack magic comments at build time.","directories":{},"_nodeVersion":"18.16.0","dependencies":{"micromatch":"^4.0.4","schema-utils":"^4.1.0"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.5.0","eslint":"^8.42.0","prettier":"^2.8.8","@babel/cli":"^7.22.5","@babel/core":"^7.22.5","@babel/preset-env":"^7.22.5","eslint-plugin-jest":"^27.2.1","@babel/eslint-parser":"^7.22.5","eslint-config-prettier":"^8.8.0","eslint-plugin-prettier":"^4.2.0","babel-plugin-replace-import-extension":"^1.1.3"},"_npmOperationalInternal":{"tmp":"tmp/magic-comments_1.0.0-alpha.0_1688148603647_0.9208750730284323","host":"s3://npm-registry-packages"}},"1.0.0-rc.0":{"name":"magic-comments","version":"1.0.0-rc.0","keywords":["webpack","magic","comments","build","utility"],"author":{"name":"Morgan Ney","email":"morganney@gmail.com"},"license":"MIT","_id":"magic-comments@1.0.0-rc.0","maintainers":[{"name":"morganney","email":"morganney@gmail.com"}],"homepage":"https://github.com/morganney/magic-comments#readme","bugs":{"url":"https://github.com/morganney/magic-comments/issues"},"dist":{"shasum":"93f0417fbab779e24c8d62699a536cfe51235077","tarball":"https://registry.npmjs.org/magic-comments/-/magic-comments-1.0.0-rc.0.tgz","fileCount":34,"integrity":"sha512-8q6hC4vzi/NAXJqR9MtJwJOKRlGAF29JRCnmGxDXl+iQiV38bfwgfD9MSpuCmB/JNpZeZfY/yXVNY/6zBBR+9Q==","signatures":[{"sig":"MEYCIQC+h4xua2BxweDJwnyeOzDkOL07zutiD9ABlfbbhNOhiAIhAIXW4qmE82yoRwf98uDwMdDKY9lmXL8uOCk2Wq7XTgeg","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":42421},"main":"dist","type":"module","engines":{"node":">=12.17.0"},"exports":{".":{"import":"./dist/index.js","default":"./dist/index.js","require":"./dist/cjs/index.cjs"},"./package.json":"./package.json"},"gitHead":"122ddf8ab74b205d87050b3d1ce5667e3f7332a5","scripts":{"lint":"eslint . src __tests__ --ext .js","test":"node --experimental-vm-modules --no-warnings ./node_modules/.bin/jest","build":"npm run build:esm && npm run build:cjs","prepack":"npm run build","lint:fix":"npm run lint -- --fix","build:cjs":"BABEL_ENV=cjs babel src --out-dir dist/cjs --out-file-extension .cjs","build:esm":"babel src --out-dir dist"},"_npmUser":{"name":"morganney","email":"morganney@gmail.com"},"repository":{"url":"git+https://github.com/morganney/magic-comments.git","type":"git"},"_npmVersion":"9.5.1","description":"Utility for adding webpack magic comments at build time.","directories":{},"_nodeVersion":"18.16.0","dependencies":{"micromatch":"^4.0.4","schema-utils":"^4.1.0"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.5.0","eslint":"^8.42.0","prettier":"^2.8.8","@babel/cli":"^7.22.5","@babel/core":"^7.22.5","@babel/preset-env":"^7.22.5","eslint-plugin-jest":"^27.2.1","@babel/eslint-parser":"^7.22.5","eslint-config-prettier":"^8.8.0","eslint-plugin-prettier":"^4.2.0","babel-plugin-replace-import-extension":"^1.1.3"},"_npmOperationalInternal":{"tmp":"tmp/magic-comments_1.0.0-rc.0_1688242393978_0.8874681755702816","host":"s3://npm-registry-packages"}},"1.0.0":{"name":"magic-comments","version":"1.0.0","keywords":["webpack","magic","comments","build","utility"],"author":{"name":"Morgan Ney","email":"morganney@gmail.com"},"license":"MIT","_id":"magic-comments@1.0.0","maintainers":[{"name":"morganney","email":"morganney@gmail.com"}],"homepage":"https://github.com/morganney/magic-comments#readme","bugs":{"url":"https://github.com/morganney/magic-comments/issues"},"dist":{"shasum":"454b8dc0bedc163f65033303caabc65b0b80bf63","tarball":"https://registry.npmjs.org/magic-comments/-/magic-comments-1.0.0.tgz","fileCount":34,"integrity":"sha512-Ti80JVVGQAWJoo5/I4CEdcEdHoOnNo0QqYB8wjB4FLNk8P2zBX4QqFkk8WDH4L3jvkB8DKpj/b6n1Pl5xCBVpQ==","signatures":[{"sig":"MEYCIQCXSQCNMLILzydP5RSxKw0I7YwRkWF4UmOSUZeOhqosfQIhAM7NQN1t2/MM289IE6sBk6Qejr201kJUrzIcFQdYF+df","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":42714},"main":"dist","type":"module","engines":{"node":">=12.17.0"},"exports":{".":{"import":"./dist/index.js","default":"./dist/index.js","require":"./dist/cjs/index.cjs"},"./package.json":"./package.json"},"gitHead":"cc824aa05a7dcab3c935f7af1ad282be0af36154","scripts":{"lint":"eslint . src __tests__ --ext .js","test":"node --experimental-vm-modules --no-warnings ./node_modules/.bin/jest","build":"npm run build:esm && npm run build:cjs","prepack":"npm run build","lint:fix":"npm run lint -- --fix","build:cjs":"BABEL_ENV=cjs babel src --out-dir dist/cjs --out-file-extension .cjs","build:esm":"babel src --out-dir dist"},"_npmUser":{"name":"morganney","email":"morganney@gmail.com"},"repository":{"url":"git+https://github.com/morganney/magic-comments.git","type":"git"},"_npmVersion":"9.5.1","description":"Utility for adding webpack magic comments at build time.","directories":{},"_nodeVersion":"18.16.0","dependencies":{"micromatch":"^4.0.4","schema-utils":"^4.1.0"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.5.0","eslint":"^8.42.0","prettier":"^2.8.8","@babel/cli":"^7.22.5","@babel/core":"^7.22.5","@babel/preset-env":"^7.22.5","eslint-plugin-jest":"^27.2.1","@babel/eslint-parser":"^7.22.5","eslint-config-prettier":"^8.8.0","eslint-plugin-prettier":"^4.2.0","babel-plugin-replace-import-extension":"^1.1.3"},"_npmOperationalInternal":{"tmp":"tmp/magic-comments_1.0.0_1688254851967_0.12602707485150177","host":"s3://npm-registry-packages"}},"2.0.0":{"name":"magic-comments","version":"2.0.0","keywords":["webpack","magic","comments","build","utility"],"author":{"name":"Morgan Ney","email":"morganney@gmail.com"},"license":"MIT","_id":"magic-comments@2.0.0","maintainers":[{"name":"morganney","email":"morganney@gmail.com"}],"homepage":"https://github.com/morganney/magic-comments#readme","bugs":{"url":"https://github.com/morganney/magic-comments/issues"},"dist":{"shasum":"01cdf668162f3827ae65ab6a399fdb7663163448","tarball":"https://registry.npmjs.org/magic-comments/-/magic-comments-2.0.0.tgz","fileCount":32,"integrity":"sha512-WxED+dU2eN90YdoPaDfV8hqXpJ+GvGK6iZGwbw6WUfgrr34vi97DKsHKcze/RIzvNX9wLpD48ElOgflWUitD2A==","signatures":[{"sig":"MEUCIAbD5++NHCB2FsUZ3Ka/rcFjhS3+a96+p9376T8KAkixAiEA8SPQx4/XxDot/3SO2OjvR52gB0oKYmCE7x9bG2rFBE0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":103280},"main":"dist","type":"module","types":"./dist/index.d.ts","engines":{"node":">=12.17.0"},"exports":{".":{"import":{"types":"./dist/types.d.ts","default":"./dist/index.js"},"default":"./dist/index.js","require":{"types":"./dist/cjs/types.d.cts","default":"./dist/cjs/index.cjs"}},"./*.js":{"import":{"types":"./dist/*.d.ts","default":"./dist/*.js"},"default":"./dist/*.js","require":{"types":"./dist/cjs/*.d.cts","default":"./dist/cjs/*.cjs"}},"./package.json":"./package.json"},"gitHead":"7bb9a2457eee43ed3033192dfc59bf23cbfdbb7d","scripts":{"lint":"eslint . src __tests__ --ext .js,.ts","test":"BABEL_ENV=test jest","build":"npm run build:types && npm run build:dual","prepack":"npm run build","lint:fix":"npm run lint -- --fix","build:dual":"babel-dual-package --out-dir dist --extensions .ts src","build:types":"tsc --emitDeclarationOnly && tsc -p ./tsconfig.cjs.json","check-types":"tsc --noEmit"},"_npmUser":{"name":"morganney","email":"morganney@gmail.com"},"deprecated":"Only ts declaration files published. Use v2.0.1 instead.","repository":{"url":"git+https://github.com/morganney/magic-comments.git","type":"git"},"_npmVersion":"9.5.1","description":"Utility for adding webpack magic comments at build time.","directories":{},"_nodeVersion":"18.16.0","dependencies":{"micromatch":"^4.0.4","schema-utils":"^4.1.0"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.6.1","eslint":"^8.42.0","prettier":"^2.8.8","@babel/cli":"^7.22.5","typescript":"5.0.4","@babel/core":"^7.22.5","@jest/globals":"^29.6.1","ts-jest-resolver":"^2.0.1","@babel/preset-env":"^7.22.5","@types/micromatch":"^4.0.2","babel-dual-package":"^1.0.0-alpha.0","eslint-plugin-jest":"^27.2.1","@babel/eslint-parser":"^7.22.5","eslint-config-prettier":"^8.8.0","eslint-plugin-prettier":"^4.2.0","@babel/preset-typescript":"^7.22.5","@typescript-eslint/parser":"^5.60.1","@typescript-eslint/eslint-plugin":"^5.60.1"},"_npmOperationalInternal":{"tmp":"tmp/magic-comments_2.0.0_1689374669173_0.28308236379685514","host":"s3://npm-registry-packages"}},"2.0.1":{"name":"magic-comments","version":"2.0.1","keywords":["webpack","magic","comments","build","utility"],"author":{"name":"Morgan Ney","email":"morganney@gmail.com"},"license":"MIT","_id":"magic-comments@2.0.1","maintainers":[{"name":"morganney","email":"morganney@gmail.com"}],"homepage":"https://github.com/morganney/magic-comments#readme","bugs":{"url":"https://github.com/morganney/magic-comments/issues"},"dist":{"shasum":"0ec4c8618d85b4f3a100d6599aeeeb1890df51d9","tarball":"https://registry.npmjs.org/magic-comments/-/magic-comments-2.0.1.tgz","fileCount":62,"integrity":"sha512-+81W+HmqEL7Nq5szNYGDWK5hGrCsfzzNHuICh9Eqy0sFRAoQq4Ytxv/v4R2m6Yf1bLvb/DjQ7O515gCYSW+fKQ==","signatures":[{"sig":"MEYCIQDhq1bFJ0yRiFYtEVYlRgkQ0Uhh9n4/vWdN1NjysGXI9AIhAMi5oPUJRLlRALxyVOWPr5Ngsm6iPnXl2bVcpJYR64jJ","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":151719},"main":"dist","type":"module","types":"./dist/index.d.ts","engines":{"node":">=12.17.0"},"exports":{".":{"import":{"types":"./dist/types.d.ts","default":"./dist/index.js"},"default":"./dist/index.js","require":{"types":"./dist/cjs/types.d.cts","default":"./dist/cjs/index.cjs"}},"./*.js":{"import":{"types":"./dist/*.d.ts","default":"./dist/*.js"},"default":"./dist/*.js","require":{"types":"./dist/cjs/*.d.cts","default":"./dist/cjs/*.cjs"}},"./package.json":"./package.json"},"gitHead":"b8f95608b30fef2273b087657479b62e4ef0ff5d","scripts":{"lint":"eslint . src __tests__ --ext .js,.ts","test":"BABEL_ENV=test jest","build":"npm run build:types && npm run build:dual","prepack":"npm run build","lint:fix":"npm run lint -- --fix","build:dual":"babel-dual-package --out-dir dist --extensions .ts src","build:types":"tsc --emitDeclarationOnly && tsc -p ./tsconfig.cjs.json","check-types":"tsc --noEmit"},"_npmUser":{"name":"morganney","email":"morganney@gmail.com"},"repository":{"url":"git+https://github.com/morganney/magic-comments.git","type":"git"},"_npmVersion":"9.6.7","description":"Utility for adding webpack magic comments at build time.","directories":{},"_nodeVersion":"20.3.1","dependencies":{"micromatch":"^4.0.4","schema-utils":"^4.1.0"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.6.1","eslint":"^8.42.0","prettier":"^2.8.8","@babel/cli":"^7.22.5","typescript":"5.0.4","@babel/core":"^7.22.5","@jest/globals":"^29.6.1","ts-jest-resolver":"^2.0.1","@babel/preset-env":"^7.22.5","@types/micromatch":"^4.0.2","babel-dual-package":"^1.0.0-alpha.0","eslint-plugin-jest":"^27.2.1","@babel/eslint-parser":"^7.22.5","eslint-config-prettier":"^8.8.0","eslint-plugin-prettier":"^4.2.0","@babel/preset-typescript":"^7.22.5","@typescript-eslint/parser":"^5.60.1","@typescript-eslint/eslint-plugin":"^5.60.1"},"_npmOperationalInternal":{"tmp":"tmp/magic-comments_2.0.1_1689375209516_0.16524057991419494","host":"s3://npm-registry-packages"}},"2.1.0":{"name":"magic-comments","version":"2.1.0","keywords":["webpack","magic","comments","build","utility"],"author":{"name":"Morgan Ney","email":"morganney@gmail.com"},"license":"MIT","_id":"magic-comments@2.1.0","maintainers":[{"name":"morganney","email":"morganney@gmail.com"}],"homepage":"https://github.com/morganney/magic-comments#readme","bugs":{"url":"https://github.com/morganney/magic-comments/issues"},"dist":{"shasum":"8e99aaa0f9511dd200020e993af6f6023a32b7c6","tarball":"https://registry.npmjs.org/magic-comments/-/magic-comments-2.1.0.tgz","fileCount":62,"integrity":"sha512-dc77uxx28thVQ1CY3dBx8rvEkUmXM4DitHeZM/RHY3+1/zvVtVBvbSd1wpldGUScseV8QSdcrHn9KNKr6G2ZLA==","signatures":[{"sig":"MEQCIDLMR4N8AoVtaaiUZmNbxu8fSxkfWCdCJfB46I0UpAXGAiAPOFR88WasTP4LjV0YHiLILGAMrHR0BBMS3sabvTYJ/Q==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":168226},"main":"dist","type":"module","types":"./dist/index.d.ts","engines":{"node":">=12.17.0"},"exports":{".":{"import":{"types":"./dist/types.d.ts","default":"./dist/index.js"},"default":"./dist/index.js","require":{"types":"./dist/cjs/types.d.cts","default":"./dist/cjs/index.cjs"}},"./*.js":{"import":{"types":"./dist/*.d.ts","default":"./dist/*.js"},"default":"./dist/*.js","require":{"types":"./dist/cjs/*.d.cts","default":"./dist/cjs/*.cjs"}},"./package.json":"./package.json"},"gitHead":"bbb130a0b9157b28da6f60341d5ce9395de0173c","scripts":{"lint":"eslint . src __tests__ --ext .js,.ts","test":"BABEL_ENV=test jest","build":"npm run build:types && npm run build:dual","prepack":"npm run build","lint:fix":"npm run lint -- --fix","build:dual":"babel-dual-package --out-dir dist --extensions .ts src","build:types":"tsc --emitDeclarationOnly && tsc -p ./tsconfig.cjs.json","check-types":"tsc --noEmit"},"_npmUser":{"name":"morganney","email":"morganney@gmail.com"},"repository":{"url":"git+https://github.com/morganney/magic-comments.git","type":"git"},"_npmVersion":"9.6.7","description":"Utility for adding webpack magic comments at build time.","directories":{},"_nodeVersion":"20.3.1","dependencies":{"micromatch":"^4.0.4","schema-utils":"^4.1.0"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.6.1","eslint":"^8.42.0","prettier":"^2.8.8","@babel/cli":"^7.22.5","typescript":"5.0.4","@babel/core":"^7.22.5","@jest/globals":"^29.6.1","ts-jest-resolver":"^2.0.1","@babel/preset-env":"^7.22.5","@types/micromatch":"^4.0.2","babel-dual-package":"^1.0.0-alpha.0","eslint-plugin-jest":"^27.2.1","@babel/eslint-parser":"^7.22.5","eslint-config-prettier":"^8.8.0","eslint-plugin-prettier":"^4.2.0","@babel/preset-typescript":"^7.22.5","@typescript-eslint/parser":"^5.60.1","@typescript-eslint/eslint-plugin":"^5.60.1"},"_npmOperationalInternal":{"tmp":"tmp/magic-comments_2.1.0_1689447631604_0.3544267641223471","host":"s3://npm-registry-packages"}},"2.1.1":{"name":"magic-comments","version":"2.1.1","keywords":["webpack","magic","comments","build","utility"],"author":{"name":"Morgan Ney","email":"morganney@gmail.com"},"license":"MIT","_id":"magic-comments@2.1.1","maintainers":[{"name":"morganney","email":"morganney@gmail.com"}],"homepage":"https://github.com/morganney/magic-comments#readme","bugs":{"url":"https://github.com/morganney/magic-comments/issues"},"dist":{"shasum":"fe94830f42364221c320beed26271fa604471b5a","tarball":"https://registry.npmjs.org/magic-comments/-/magic-comments-2.1.1.tgz","fileCount":62,"integrity":"sha512-SZvV2G8p9RqYaEuBHi7YIBO0tIH/bnUfvRl3UFUAAvh+kyvMzO9GkPBe8NURSHRKJJ9Q1kUCtaiG5jUXFjd2yg==","signatures":[{"sig":"MEYCIQDIhUyKFykA2O0JxVHuyMaNzgLA9ALcIoYO/aYB10JcAgIhAJ7W7k0sHNpBPirIjsYvz++WMAJjibIbpR4nPV2Oqun6","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":168226},"main":"dist","type":"module","types":"./dist/index.d.ts","engines":{"node":">=12.20.0"},"exports":{".":{"import":{"types":"./dist/types.d.ts","default":"./dist/index.js"},"default":"./dist/index.js","require":{"types":"./dist/cjs/types.d.cts","default":"./dist/cjs/index.cjs"}},"./*.js":{"import":{"types":"./dist/*.d.ts","default":"./dist/*.js"},"default":"./dist/*.js","require":{"types":"./dist/cjs/*.d.cts","default":"./dist/cjs/*.cjs"}},"./package.json":"./package.json"},"gitHead":"efd600f55bcdfde6d4248b9c727de741fab6a657","scripts":{"lint":"eslint . src __tests__ --ext .js,.ts","test":"BABEL_ENV=test jest","build":"npm run build:types && npm run build:dual","prepack":"npm run build","lint:fix":"npm run lint -- --fix","build:dual":"babel-dual-package --out-dir dist --extensions .ts src","build:types":"tsc --emitDeclarationOnly && tsc -p ./tsconfig.cjs.json","check-types":"tsc --noEmit"},"_npmUser":{"name":"morganney","email":"morganney@gmail.com"},"repository":{"url":"git+https://github.com/morganney/magic-comments.git","type":"git"},"_npmVersion":"9.6.7","description":"Utility for adding webpack magic comments at build time.","directories":{},"_nodeVersion":"20.3.1","dependencies":{"micromatch":"^4.0.4","schema-utils":"^4.1.0"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.6.1","eslint":"^8.42.0","prettier":"^2.8.8","@babel/cli":"^7.22.5","typescript":"5.0.4","@babel/core":"^7.22.5","@jest/globals":"^29.6.1","ts-jest-resolver":"^2.0.1","@babel/preset-env":"^7.22.5","@types/micromatch":"^4.0.2","babel-dual-package":"^1.0.0-alpha.0","eslint-plugin-jest":"^27.2.1","@babel/eslint-parser":"^7.22.5","eslint-config-prettier":"^8.8.0","eslint-plugin-prettier":"^4.2.0","@babel/preset-typescript":"^7.22.5","@typescript-eslint/parser":"^5.60.1","@typescript-eslint/eslint-plugin":"^5.60.1"},"_npmOperationalInternal":{"tmp":"tmp/magic-comments_2.1.1_1689455210716_0.5810930614350145","host":"s3://npm-registry-packages"}},"2.1.2":{"name":"magic-comments","version":"2.1.2","keywords":["webpack","magic","comments","build","utility"],"author":{"name":"Morgan Ney","email":"morganney@gmail.com"},"license":"MIT","_id":"magic-comments@2.1.2","maintainers":[{"name":"morganney","email":"morganney@gmail.com"}],"homepage":"https://github.com/morganney/magic-comments#readme","bugs":{"url":"https://github.com/morganney/magic-comments/issues"},"dist":{"shasum":"07ef76b781d15fa036d6128346a88e0a4c656304","tarball":"https://registry.npmjs.org/magic-comments/-/magic-comments-2.1.2.tgz","fileCount":62,"integrity":"sha512-yPun4H8NH2C9pXCSwU6P/xiZEMVV3AGYw1EgA/G1HPY0P7mWTNoANqrpOCdUPddS3CR+4dpS7poSxpMO1U3Y2A==","signatures":[{"sig":"MEUCIQD8Zjcr8SvHf5uBTOTTKQ96eg4EGaubZQ9G1DvFl3I0ZgIgLwV7zghVO6GhsMbieLji5gwdcmIgz8kmq7O87FpiFnA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":168183},"main":"dist","type":"module","types":"./dist/index.d.ts","engines":{"node":">=12.20.0"},"exports":{".":{"import":{"types":"./dist/types.d.ts","default":"./dist/index.js"},"default":"./dist/index.js","require":{"types":"./dist/cjs/types.d.cts","default":"./dist/cjs/index.cjs"}},"./*.js":{"import":{"types":"./dist/*.d.ts","default":"./dist/*.js"},"default":"./dist/*.js","require":{"types":"./dist/cjs/*.d.cts","default":"./dist/cjs/*.cjs"}},"./package.json":"./package.json"},"gitHead":"5261c418dea7786efcfc1f30b8a30f86834535e9","scripts":{"lint":"eslint . src __tests__ --ext .js,.ts","test":"BABEL_ENV=test jest","build":"npm run build:types && npm run build:dual","prepack":"npm run build","lint:fix":"npm run lint -- --fix","build:dual":"babel-dual-package --out-dir dist --extensions .ts src","build:types":"tsc --emitDeclarationOnly && tsc -p ./tsconfig.cjs.json","check-types":"tsc --noEmit"},"_npmUser":{"name":"morganney","email":"morganney@gmail.com"},"repository":{"url":"git+https://github.com/morganney/magic-comments.git","type":"git"},"_npmVersion":"9.6.7","description":"Utility for adding webpack magic comments at build time.","directories":{},"_nodeVersion":"20.3.1","dependencies":{"micromatch":"^4.0.4","schema-utils":"^4.1.0"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.6.1","eslint":"^8.42.0","prettier":"^2.8.8","@babel/cli":"^7.22.5","typescript":"5.0.4","@babel/core":"^7.22.5","@jest/globals":"^29.6.1","ts-jest-resolver":"^2.0.1","@babel/preset-env":"^7.22.5","@types/micromatch":"^4.0.2","babel-dual-package":"^1.0.0-alpha.1","eslint-plugin-jest":"^27.2.1","@babel/eslint-parser":"^7.22.5","eslint-config-prettier":"^8.8.0","eslint-plugin-prettier":"^4.2.0","@babel/preset-typescript":"^7.22.5","@typescript-eslint/parser":"^5.60.1","@typescript-eslint/eslint-plugin":"^5.60.1"},"_npmOperationalInternal":{"tmp":"tmp/magic-comments_2.1.2_1689531625480_0.49336218762926065","host":"s3://npm-registry-packages"}},"2.1.3":{"name":"magic-comments","version":"2.1.3","keywords":["webpack","magic","comments","build","utility"],"author":{"name":"Morgan Ney","email":"morganney@gmail.com"},"license":"MIT","_id":"magic-comments@2.1.3","maintainers":[{"name":"morganney","email":"morganney@gmail.com"}],"homepage":"https://github.com/morganney/magic-comments#readme","bugs":{"url":"https://github.com/morganney/magic-comments/issues"},"dist":{"shasum":"7bb350ed6eb22aa368a4f7327843f8ff481b40ce","tarball":"https://registry.npmjs.org/magic-comments/-/magic-comments-2.1.3.tgz","fileCount":62,"integrity":"sha512-uTHemWJGXuVdsiRzKZFUG9MOgK0o/f/pqg74789MCTy8aSXBXdYwVrLKOw/D0YnUANuDCy6y5QSXfm7emhNieg==","signatures":[{"sig":"MEUCIQCWg7RWejh5qU0aEeItw5KdmLw7JJfndbYbxNsKB/QR6wIgaGoCGOGQPn8YPPn8DEo0HZk1gWNj1ogPt4tdQRqrZfk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":168153},"main":"dist","type":"module","types":"./dist/index.d.ts","engines":{"node":">=12.20.0"},"exports":{".":{"import":{"types":"./dist/types.d.ts","default":"./dist/index.js"},"default":"./dist/index.js","require":{"types":"./dist/cjs/types.d.cts","default":"./dist/cjs/index.cjs"}},"./*.js":{"import":{"types":"./dist/*.d.ts","default":"./dist/*.js"},"default":"./dist/*.js","require":{"types":"./dist/cjs/*.d.cts","default":"./dist/cjs/*.cjs"}},"./package.json":"./package.json"},"gitHead":"9e9b806374266a6882b3bf0a26fc27e779d612e4","scripts":{"lint":"eslint . src __tests__ --ext .js,.ts","test":"BABEL_ENV=test jest","build":"npm run build:types && npm run build:dual","prepack":"npm run build","lint:fix":"npm run lint -- --fix","build:dual":"babel-dual-package --out-dir dist --extensions .ts src","build:types":"tsc --emitDeclarationOnly","check-types":"tsc --noEmit"},"_npmUser":{"name":"morganney","email":"morganney@gmail.com"},"repository":{"url":"git+https://github.com/morganney/magic-comments.git","type":"git"},"_npmVersion":"9.6.7","description":"Utility for adding webpack magic comments at build time.","directories":{},"_nodeVersion":"20.3.1","dependencies":{"micromatch":"^4.0.4","schema-utils":"^4.1.0"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.6.1","eslint":"^8.42.0","prettier":"^2.8.8","@babel/cli":"^7.22.5","typescript":"5.0.4","@babel/core":"^7.22.5","@jest/globals":"^29.6.1","ts-jest-resolver":"^2.0.1","@babel/preset-env":"^7.22.5","@types/micromatch":"^4.0.2","babel-dual-package":"^1.0.0-alpha.2","eslint-plugin-jest":"^27.2.1","@babel/eslint-parser":"^7.22.5","eslint-config-prettier":"^8.8.0","eslint-plugin-prettier":"^4.2.0","@babel/preset-typescript":"^7.22.5","@typescript-eslint/parser":"^5.60.1","@typescript-eslint/eslint-plugin":"^5.60.1"},"_npmOperationalInternal":{"tmp":"tmp/magic-comments_2.1.3_1689548197935_0.36221523475668027","host":"s3://npm-registry-packages"}},"2.1.4":{"name":"magic-comments","version":"2.1.4","keywords":["webpack","magic","comments","build","utility"],"author":{"name":"Morgan Ney","email":"morganney@gmail.com"},"license":"MIT","_id":"magic-comments@2.1.4","maintainers":[{"name":"morganney","email":"morganney@gmail.com"}],"homepage":"https://github.com/morganney/magic-comments#readme","bugs":{"url":"https://github.com/morganney/magic-comments/issues"},"dist":{"shasum":"ad2d38b9366c3efb63070cc29adcda51d1d4c96a","tarball":"https://registry.npmjs.org/magic-comments/-/magic-comments-2.1.4.tgz","fileCount":62,"integrity":"sha512-3YmvE4DbPKn5Px0ijtggT8I1RXOm3aT4PptMAIh9sWZfrU8yoUKPSHnbIEy4xZC5WzZZFdvHavItEd9GSjIniQ==","signatures":[{"sig":"MEUCIQC2Z5r89O0/He6m+dOUnDhQdIPAkzhNNGUvCCGD708E5QIgcuVaxtILYyrx0FKMydXgh0NtTCwKaRvBIuHoM9zbEiY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":168150},"main":"dist","type":"module","types":"./dist/index.d.ts","engines":{"node":">=12.20.0"},"exports":{".":{"import":{"types":"./dist/types.d.ts","default":"./dist/index.js"},"default":"./dist/index.js","require":{"types":"./dist/cjs/types.d.cts","default":"./dist/cjs/index.cjs"}},"./*.js":{"import":{"types":"./dist/*.d.ts","default":"./dist/*.js"},"default":"./dist/*.js","require":{"types":"./dist/cjs/*.d.cts","default":"./dist/cjs/*.cjs"}},"./package.json":"./package.json"},"gitHead":"ce61927e87b0e5a7334a262dcf53566573025192","scripts":{"lint":"eslint . src __tests__ --ext .js,.ts","test":"BABEL_ENV=test jest","build":"npm run build:types && npm run build:dual","prepack":"npm run build","lint:fix":"npm run lint -- --fix","build:dual":"babel-dual-package --out-dir dist --extensions .ts src","build:types":"tsc --emitDeclarationOnly","check-types":"tsc --noEmit"},"_npmUser":{"name":"morganney","email":"morganney@gmail.com"},"repository":{"url":"git+https://github.com/morganney/magic-comments.git","type":"git"},"_npmVersion":"9.6.7","description":"Utility for adding webpack magic comments at build time.","directories":{},"_nodeVersion":"20.3.1","dependencies":{"micromatch":"^4.0.4","schema-utils":"^4.1.0"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.6.1","eslint":"^8.42.0","prettier":"^2.8.8","@babel/cli":"^7.22.5","typescript":"5.0.4","@babel/core":"^7.22.5","@jest/globals":"^29.6.1","ts-jest-resolver":"^2.0.1","@babel/preset-env":"^7.22.5","@types/micromatch":"^4.0.2","babel-dual-package":"^1.0.0-rc.1","eslint-plugin-jest":"^27.2.1","@babel/eslint-parser":"^7.22.5","eslint-config-prettier":"^8.8.0","eslint-plugin-prettier":"^4.2.0","@babel/preset-typescript":"^7.22.5","@typescript-eslint/parser":"^5.60.1","@typescript-eslint/eslint-plugin":"^5.60.1"},"_npmOperationalInternal":{"tmp":"tmp/magic-comments_2.1.4_1689800656089_0.009568708398748793","host":"s3://npm-registry-packages"}},"2.1.5":{"name":"magic-comments","version":"2.1.5","keywords":["webpack","magic","comments","build","utility"],"author":{"name":"Morgan Ney","email":"morganney@gmail.com"},"license":"MIT","_id":"magic-comments@2.1.5","maintainers":[{"name":"morganney","email":"morganney@gmail.com"}],"homepage":"https://github.com/morganney/magic-comments#readme","bugs":{"url":"https://github.com/morganney/magic-comments/issues"},"dist":{"shasum":"27701fa05de75a6cbadccce4a7bbd7e5bf662605","tarball":"https://registry.npmjs.org/magic-comments/-/magic-comments-2.1.5.tgz","fileCount":62,"integrity":"sha512-MG/JjC/Pc2p4QWqfDDQareYZnCJJy3nUf7x/9o7L7E+rFezHtEl50BzxzEatVgpmxks5WuT46QO+7eALZPf9dA==","signatures":[{"sig":"MEUCIQCd9fV1wM791m/cDXLb4MiaojOcP83DHr6cmkAgK3xJcwIgJy3xSUn8EWu8JzZ8nZPDyRTes5q/b7EEVTl26zcJv6U=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":168150},"main":"dist","type":"module","types":"./dist/index.d.ts","engines":{"node":">=12.20.0"},"exports":{".":{"import":{"types":"./dist/types.d.ts","default":"./dist/index.js"},"default":"./dist/index.js","require":{"types":"./dist/cjs/types.d.cts","default":"./dist/cjs/index.cjs"}},"./*.js":{"import":{"types":"./dist/*.d.ts","default":"./dist/*.js"},"default":"./dist/*.js","require":{"types":"./dist/cjs/*.d.cts","default":"./dist/cjs/*.cjs"}},"./package.json":"./package.json"},"gitHead":"24cb436ccb0431b0d70f6af62b325bfb7562fabb","scripts":{"lint":"eslint . src __tests__ --ext .js,.ts","test":"BABEL_ENV=test jest","build":"npm run build:types && npm run build:dual","prepack":"npm run build","lint:fix":"npm run lint -- --fix","build:dual":"babel-dual-package --out-dir dist --extensions .ts src","build:types":"tsc --emitDeclarationOnly","check-types":"tsc --noEmit"},"_npmUser":{"name":"morganney","email":"morganney@gmail.com"},"repository":{"url":"git+https://github.com/morganney/magic-comments.git","type":"git"},"_npmVersion":"9.6.7","description":"Utility for adding webpack magic comments at build time.","directories":{},"_nodeVersion":"20.3.1","dependencies":{"micromatch":"^4.0.4","schema-utils":"^4.1.0"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.6.1","eslint":"^8.42.0","prettier":"^2.8.8","@babel/cli":"^7.22.5","typescript":"5.0.4","@babel/core":"^7.22.5","@jest/globals":"^29.6.1","ts-jest-resolver":"^2.0.1","@babel/preset-env":"^7.22.5","@types/micromatch":"^4.0.2","babel-dual-package":"^1.0.0-rc.2","eslint-plugin-jest":"^27.2.1","@babel/eslint-parser":"^7.22.5","eslint-config-prettier":"^8.8.0","eslint-plugin-prettier":"^4.2.0","@babel/preset-typescript":"^7.22.5","@typescript-eslint/parser":"^5.60.1","@typescript-eslint/eslint-plugin":"^5.60.1"},"_npmOperationalInternal":{"tmp":"tmp/magic-comments_2.1.5_1690131351887_0.3836929637016431","host":"s3://npm-registry-packages"}},"2.1.6":{"name":"magic-comments","version":"2.1.6","keywords":["webpack","magic","comments","build","utility"],"author":{"name":"Morgan Ney","email":"morganney@gmail.com"},"license":"MIT","_id":"magic-comments@2.1.6","maintainers":[{"name":"morganney","email":"morganney@gmail.com"}],"homepage":"https://github.com/morganney/magic-comments#readme","bugs":{"url":"https://github.com/morganney/magic-comments/issues"},"dist":{"shasum":"84aaa88452dd48f2ee65d1758cd4061a17a642e2","tarball":"https://registry.npmjs.org/magic-comments/-/magic-comments-2.1.6.tgz","fileCount":62,"integrity":"sha512-HGGWu+3fU4w7gtIngZdhtQyNaHXWrMWqeD+1EydmvunIh1UrtYuiBuw6EF/qwrVARdtheY8kB4fdxX7+9olktA==","signatures":[{"sig":"MEYCIQD3YpbpSYDGopwch60x3XDjScZrKvcmVoH/5jr7CcQSnwIhAMWAyXJnni3hoTUF/MI/rEqqRF65Ptpl1ns6pHr8pEvc","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":177373},"main":"dist","type":"module","types":"./dist/index.d.ts","engines":{"node":">=12.20.0"},"exports":{".":{"import":{"types":"./dist/types.d.ts","default":"./dist/index.js"},"default":"./dist/index.js","require":{"types":"./dist/cjs/types.d.cts","default":"./dist/cjs/index.cjs"}},"./*.js":{"import":{"types":"./dist/*.d.ts","default":"./dist/*.js"},"default":"./dist/*.js","require":{"types":"./dist/cjs/*.d.cts","default":"./dist/cjs/*.cjs"}},"./package.json":"./package.json"},"gitHead":"5c8bd59094464d7adb0c68b54d8df1e5db168863","scripts":{"lint":"eslint . src __tests__ --ext .js,.ts","test":"BABEL_ENV=test jest","build":"duel","prepack":"npm run build","lint:fix":"npm run lint -- --fix","check-types":"tsc --noEmit"},"_npmUser":{"name":"morganney","email":"morganney@gmail.com"},"repository":{"url":"git+https://github.com/morganney/magic-comments.git","type":"git"},"_npmVersion":"9.6.7","description":"Utility for adding webpack magic comments at build time.","directories":{},"_nodeVersion":"20.3.1","dependencies":{"micromatch":"^4.0.4","schema-utils":"^4.1.0"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.6.1","eslint":"^8.42.0","prettier":"^2.8.8","@babel/cli":"^7.22.5","typescript":"5.0.4","@babel/core":"^7.22.5","@jest/globals":"^29.6.1","@knighted/duel":"^1.0.0-alpha.1","ts-jest-resolver":"^2.0.1","@babel/preset-env":"^7.22.5","@types/micromatch":"^4.0.2","eslint-plugin-jest":"^27.2.1","@babel/eslint-parser":"^7.22.5","eslint-config-prettier":"^8.8.0","eslint-plugin-prettier":"^4.2.0","@babel/preset-typescript":"^7.22.5","@typescript-eslint/parser":"^5.60.1","@typescript-eslint/eslint-plugin":"^5.60.1"},"_npmOperationalInternal":{"tmp":"tmp/magic-comments_2.1.6_1690585022781_0.10048253848917144","host":"s3://npm-registry-packages"}},"2.1.7":{"name":"magic-comments","version":"2.1.7","keywords":["node","build","tool","webpack","magic comments"],"author":{"name":"Morgan Ney","email":"morganney@gmail.com"},"license":"MIT","_id":"magic-comments@2.1.7","maintainers":[{"name":"morganney","email":"morganney@gmail.com"}],"homepage":"https://github.com/morganney/magic-comments#readme","bugs":{"url":"https://github.com/morganney/magic-comments/issues"},"dist":{"shasum":"8272d0847066166d225734df46371e8ff720fcd7","tarball":"https://registry.npmjs.org/magic-comments/-/magic-comments-2.1.7.tgz","fileCount":62,"integrity":"sha512-cYQdA8ZD/qaQ22yQo8DOS+WDetiU1SwRm6K93z98OcPeWQtacRwMA6v59R+XVGTUmAEhdUr4DWIadwvujVJmmg==","signatures":[{"sig":"MEQCIDTxy5eP+K9XZCOVN8FNmZrVyjn2CWIGscw7s2nNtN3gAiASGVuvCv/KYYsF3Ows00wKeeHrS4UjHhdKj3u8KXSqQg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":173945},"main":"dist","type":"module","types":"./dist/esm/index.d.ts","engines":{"node":">=12.20.0"},"exports":{".":{"import":{"types":"./dist/esm/types.d.ts","default":"./dist/esm/index.js"},"default":"./dist/esm/index.js","require":{"types":"./dist/cjs/types.d.cts","default":"./dist/cjs/index.cjs"}},"./package.json":"./package.json"},"gitHead":"449935bfd70cc1b289f8ec8161604e7650c51463","scripts":{"lint":"eslint . src __tests__ --ext .js,.ts","test":"BABEL_ENV=test jest","build":"duel --dirs","prepack":"npm run build","lint:fix":"npm run lint -- --fix","check-types":"tsc --noEmit"},"_npmUser":{"name":"morganney","email":"morganney@gmail.com"},"repository":{"url":"git+https://github.com/morganney/magic-comments.git","type":"git"},"_npmVersion":"9.6.7","description":"Node.js tool for adding Webpack magic comments at build time.","directories":{},"_nodeVersion":"20.3.1","dependencies":{"micromatch":"^4.0.4","schema-utils":"^4.1.0"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.6.1","eslint":"^8.42.0","prettier":"^2.8.8","typescript":"5.0.4","@jest/globals":"^29.6.1","@knighted/duel":"^1.0.0-rc.2","ts-jest-resolver":"^2.0.1","@babel/preset-env":"^7.22.5","@types/micromatch":"^4.0.2","eslint-plugin-jest":"^27.2.1","eslint-config-prettier":"^8.8.0","eslint-plugin-prettier":"^4.2.0","@babel/preset-typescript":"^7.22.5","@typescript-eslint/parser":"^5.60.1","@typescript-eslint/eslint-plugin":"^5.60.1"},"_npmOperationalInternal":{"tmp":"tmp/magic-comments_2.1.7_1691031101343_0.0814647068977441","host":"s3://npm-registry-packages"}},"2.1.8":{"name":"magic-comments","version":"2.1.8","keywords":["node","build","tool","webpack","magic comments"],"author":{"name":"Morgan Ney","email":"morganney@gmail.com"},"license":"MIT","_id":"magic-comments@2.1.8","maintainers":[{"name":"morganney","email":"morganney@gmail.com"}],"homepage":"https://github.com/morganney/magic-comments#readme","bugs":{"url":"https://github.com/morganney/magic-comments/issues"},"dist":{"shasum":"9b629a9d350662725768005b29cf30b8c4e3cdf7","tarball":"https://registry.npmjs.org/magic-comments/-/magic-comments-2.1.8.tgz","fileCount":62,"integrity":"sha512-rPVr13gNZZwDSA3pGAzHFj+6uw1zcICaWyHkY5qkBCSidpw8/gRlImfi+YkIVwwbJwEw4tI9ucpWuXSGkAhGIA==","signatures":[{"sig":"MEUCIE92iApfqBQ2yDysc8kEXrke1ZtWj2V66ezNCNwzec0eAiEAtgF3Dg1SRNJzFltVFw9Bs9zqDOwg4VpsMj4k78KQjp4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":173945},"main":"dist","type":"module","types":"./dist/esm/types.d.ts","engines":{"node":">=12.20.0"},"exports":{".":{"import":{"types":"./dist/esm/types.d.ts","default":"./dist/esm/index.js"},"default":"./dist/esm/index.js","require":{"types":"./dist/cjs/types.d.cts","default":"./dist/cjs/index.cjs"}},"./package.json":"./package.json"},"gitHead":"24089530fb9865aa44ec0ed0c0c90490fe5ed652","scripts":{"lint":"eslint . src __tests__ --ext .js,.ts","test":"BABEL_ENV=test jest","build":"duel --dirs","prepack":"npm run build","lint:fix":"npm run lint -- --fix","check-types":"tsc --noEmit"},"_npmUser":{"name":"morganney","email":"morganney@gmail.com"},"repository":{"url":"git+https://github.com/morganney/magic-comments.git","type":"git"},"_npmVersion":"9.6.7","description":"Node.js tool for adding Webpack magic comments at build time.","directories":{},"_nodeVersion":"20.3.1","dependencies":{"micromatch":"^4.0.4","schema-utils":"^4.1.0"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.6.1","eslint":"^8.42.0","prettier":"^2.8.8","typescript":"5.0.4","@jest/globals":"^29.6.1","@knighted/duel":"^1.0.0-rc.2","ts-jest-resolver":"^2.0.1","@babel/preset-env":"^7.22.5","@types/micromatch":"^4.0.2","eslint-plugin-jest":"^27.2.1","eslint-config-prettier":"^8.8.0","eslint-plugin-prettier":"^4.2.0","@babel/preset-typescript":"^7.22.5","@typescript-eslint/parser":"^5.60.1","@typescript-eslint/eslint-plugin":"^5.60.1"},"_npmOperationalInternal":{"tmp":"tmp/magic-comments_2.1.8_1691073070776_0.22340887489836359","host":"s3://npm-registry-packages"}},"2.1.9":{"name":"magic-comments","version":"2.1.9","keywords":["node","build","tool","webpack","magic comments"],"author":{"name":"Morgan Ney","email":"morganney@gmail.com"},"license":"MIT","_id":"magic-comments@2.1.9","maintainers":[{"name":"morganney","email":"morganney@gmail.com"}],"homepage":"https://github.com/morganney/magic-comments#readme","bugs":{"url":"https://github.com/morganney/magic-comments/issues"},"dist":{"shasum":"433215bfa61eb5ac4827981a88e3b70114efd163","tarball":"https://registry.npmjs.org/magic-comments/-/magic-comments-2.1.9.tgz","fileCount":62,"integrity":"sha512-8ju6N7GWALOPA9J0jC7Wjsxj3wJ++u1LXjZIWEMqEt4LZWQ1uas9mCZ2AmxYfuk6P0EMhmmX9v4XfkJnwa/eKQ==","signatures":[{"sig":"MEUCIQDr4ElQ72F4Lg7rSuCJdPG9Sha443iG3j9YuTtibpY7KQIgZ+pTzgqYk27+rIxu2Z7IwIEYsM5ffySz7UmeaQzU7eo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":173945},"main":"dist","type":"module","types":"./dist/esm/types.d.ts","engines":{"node":">=12.20.0"},"exports":{".":{"import":{"types":"./dist/esm/types.d.ts","default":"./dist/esm/index.js"},"default":"./dist/esm/index.js","require":{"types":"./dist/cjs/types.d.cts","default":"./dist/cjs/index.cjs"}},"./package.json":"./package.json"},"gitHead":"29f7b8b96feab55d8d5507512d1f41214522e5a0","scripts":{"lint":"eslint . src __tests__ --ext .js,.ts","test":"BABEL_ENV=test jest","build":"duel --dirs","prepack":"npm run build","lint:fix":"npm run lint -- --fix","check-types":"tsc --noEmit"},"_npmUser":{"name":"morganney","email":"morganney@gmail.com"},"repository":{"url":"git+https://github.com/morganney/magic-comments.git","type":"git"},"_npmVersion":"9.6.7","description":"Node.js tool for adding Webpack magic comments at build time.","directories":{},"_nodeVersion":"20.3.1","dependencies":{"micromatch":"^4.0.4","schema-utils":"^4.1.0"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.6.1","eslint":"^8.42.0","prettier":"^2.8.8","typescript":"5.0.4","@jest/globals":"^29.6.1","@knighted/duel":"^1.0.0-rc.2","ts-jest-resolver":"^2.0.1","@babel/preset-env":"^7.22.5","@types/micromatch":"^4.0.2","eslint-plugin-jest":"^27.2.1","eslint-config-prettier":"^8.8.0","eslint-plugin-prettier":"^4.2.0","@babel/preset-typescript":"^7.22.5","@typescript-eslint/parser":"^5.60.1","@typescript-eslint/eslint-plugin":"^5.60.1"},"_npmOperationalInternal":{"tmp":"tmp/magic-comments_2.1.9_1697733486083_0.2180572896131736","host":"s3://npm-registry-packages"}},"2.1.10":{"name":"magic-comments","version":"2.1.10","keywords":["node","build","tool","webpack","magic comments"],"author":{"name":"Morgan Ney","email":"morganney@gmail.com"},"license":"MIT","_id":"magic-comments@2.1.10","maintainers":[{"name":"morganney","email":"morganney@gmail.com"}],"homepage":"https://github.com/morganney/magic-comments#readme","bugs":{"url":"https://github.com/morganney/magic-comments/issues"},"dist":{"shasum":"c7d00e3413250fdc39e03cd98da950ccae815ad2","tarball":"https://registry.npmjs.org/magic-comments/-/magic-comments-2.1.10.tgz","fileCount":62,"integrity":"sha512-82pzOxidhr7JHWkSh/48wrNT3PAutUqf335ksyHtpIHoJotrTBFJQEzZ3zSfhnCuawR3luUjfuncV6gJu1fuKQ==","signatures":[{"sig":"MEUCIQDNXQMqgRgyQGyxeHeLeQ+vhoTrXZ3YK9J+JdcZy4TmAQIgWD3uzeJALrTrKBu68bmssVcuD7cOYCMHYfI3szk55RA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":173941},"main":"dist","type":"module","types":"./dist/esm/types.d.ts","engines":{"node":">=12.20.0"},"exports":{".":{"import":{"types":"./dist/esm/types.d.ts","default":"./dist/esm/index.js"},"default":"./dist/esm/index.js","require":{"types":"./dist/cjs/types.d.cts","default":"./dist/cjs/index.cjs"}},"./package.json":"./package.json"},"gitHead":"bde8c68ca638d205e34e2005e56d04504be38d59","scripts":{"lint":"eslint . src __tests__ --ext .js,.ts","test":"BABEL_ENV=test jest","build":"duel --dirs","prepack":"npm run build","lint:fix":"npm run lint -- --fix","check-types":"tsc --noEmit"},"_npmUser":{"name":"morganney","email":"morganney@gmail.com"},"repository":{"url":"git+https://github.com/morganney/magic-comments.git","type":"git"},"_npmVersion":"9.6.7","description":"Node.js tool for adding Webpack magic comments at build time.","directories":{},"_nodeVersion":"20.3.1","dependencies":{"micromatch":"^4.0.4","schema-utils":"^4.1.0"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.6.1","eslint":"^8.42.0","prettier":"^2.8.8","typescript":"5.0.4","@jest/globals":"^29.6.1","@knighted/duel":"^1.0.1","ts-jest-resolver":"^2.0.1","@babel/preset-env":"^7.22.5","@types/micromatch":"^4.0.2","eslint-plugin-jest":"^27.2.1","eslint-config-prettier":"^8.8.0","eslint-plugin-prettier":"^4.2.0","@babel/preset-typescript":"^7.22.5","@typescript-eslint/parser":"^5.60.1","@typescript-eslint/eslint-plugin":"^5.60.1"},"_npmOperationalInternal":{"tmp":"tmp/magic-comments_2.1.10_1697808056960_0.32586011502592993","host":"s3://npm-registry-packages"}},"2.1.11":{"name":"magic-comments","version":"2.1.11","keywords":["node","build","tool","webpack","magic comments"],"author":{"name":"Morgan Ney","email":"morganney@gmail.com"},"license":"MIT","_id":"magic-comments@2.1.11","maintainers":[{"name":"morganney","email":"morganney@gmail.com"}],"homepage":"https://github.com/morganney/magic-comments#readme","bugs":{"url":"https://github.com/morganney/magic-comments/issues"},"dist":{"shasum":"81d6c9a261cbd093a78cb99367a5525ada98ebc4","tarball":"https://registry.npmjs.org/magic-comments/-/magic-comments-2.1.11.tgz","fileCount":62,"integrity":"sha512-jo0WAqwQjyBhns0oD/C6BN2SNchH9go8uOA7nvmF+LaTkeLn7D3woduHfaMKGhJXILgceQNWoW2UGVEdGfwMew==","signatures":[{"sig":"MEUCIQD65e9bcSTD7OpqiHz8ufMzdiZn+TdZm/iXDS59VqSfNgIgSdKWuaFEBbQr0dqgvSsd3wrhBTgpDGeLWBIna/ARmIY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":173941},"main":"dist","type":"module","types":"./dist/esm/types.d.ts","engines":{"node":">=12.20.0"},"exports":{".":{"import":{"types":"./dist/esm/types.d.ts","default":"./dist/esm/index.js"},"default":"./dist/esm/index.js","require":{"types":"./dist/cjs/types.d.cts","default":"./dist/cjs/index.cjs"}},"./package.json":"./package.json"},"gitHead":"eca37ca9f684118e1332b88a49413f4806a69ce2","scripts":{"lint":"eslint . src __tests__ --ext .js,.ts","test":"BABEL_ENV=test jest","build":"duel --dirs","prepack":"npm run build","lint:fix":"npm run lint -- --fix","check-types":"tsc --noEmit"},"_npmUser":{"name":"morganney","email":"morganney@gmail.com"},"repository":{"url":"git+https://github.com/morganney/magic-comments.git","type":"git"},"_npmVersion":"9.6.7","description":"Node.js tool for adding Webpack magic comments at build time.","directories":{},"_nodeVersion":"20.3.1","dependencies":{"micromatch":"^4.0.4","schema-utils":"^4.1.0"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.6.1","eslint":"^8.42.0","prettier":"^2.8.8","typescript":"5.0.4","@jest/globals":"^29.6.1","@knighted/duel":"^1.0.5","ts-jest-resolver":"^2.0.1","@babel/preset-env":"^7.22.5","@types/micromatch":"^4.0.2","eslint-plugin-jest":"^27.2.1","eslint-config-prettier":"^8.8.0","eslint-plugin-prettier":"^4.2.0","@babel/preset-typescript":"^7.22.5","@typescript-eslint/parser":"^5.60.1","@typescript-eslint/eslint-plugin":"^5.60.1"},"_npmOperationalInternal":{"tmp":"tmp/magic-comments_2.1.11_1705773060260_0.6784729130525067","host":"s3://npm-registry-packages"}},"2.1.12":{"name":"magic-comments","version":"2.1.12","keywords":["node","build","tool","webpack","magic comments"],"author":{"name":"Morgan Ney","email":"morganney@gmail.com"},"license":"MIT","_id":"magic-comments@2.1.12","maintainers":[{"name":"morganney","email":"morganney@gmail.com"}],"homepage":"https://github.com/morganney/magic-comments#readme","bugs":{"url":"https://github.com/morganney/magic-comments/issues"},"dist":{"shasum":"c46ed9aab3b2e589c6fb8e3ca6f62c8ac6090804","tarball":"https://registry.npmjs.org/magic-comments/-/magic-comments-2.1.12.tgz","fileCount":62,"integrity":"sha512-rsJXodcAyvg0HPZqwkcmSZy9dWet1M775dQYHsDoPLrGtMtniBxGGRjiMKL1j/avTFghRujUuByk/gQtnKormg==","signatures":[{"sig":"MEUCIG6Ba0RhuKerdNglMFJZf0p1jLr8MatvsO6u+R8BosxtAiEA3NDSNSsn8b+u+BzHd5I5pIxr/2ebsObH3UNIYuw4fv0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":174186},"main":"dist","type":"module","types":"./dist/esm/types.d.ts","engines":{"node":">=12.20.0"},"exports":{".":{"import":{"types":"./dist/esm/types.d.ts","default":"./dist/esm/index.js"},"default":"./dist/esm/index.js","require":{"types":"./dist/cjs/types.d.cts","default":"./dist/cjs/index.cjs"}},"./package.json":"./package.json"},"gitHead":"109882c0290370efb3f2e00a9341ecd515a7897b","scripts":{"lint":"eslint . src __tests__ --ext .js,.ts","test":"BABEL_ENV=test jest","build":"duel --dirs","prepack":"npm run build","prettier":"prettier ./src ./__tests__ -w","check-types":"tsc --noEmit"},"_npmUser":{"name":"morganney","email":"morganney@gmail.com"},"prettier":{"semi":false,"printWidth":90,"singleQuote":true,"trailingComma":"none"},"repository":{"url":"git+https://github.com/morganney/magic-comments.git","type":"git"},"_npmVersion":"10.2.4","description":"Node.js tool for adding Webpack magic comments at build time.","directories":{},"_nodeVersion":"20.11.0","dependencies":{"micromatch":"^4.0.4","schema-utils":"^4.1.0"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.6.1","eslint":"^8.42.0","prettier":"^3.2.4","typescript":"5.0.4","@jest/globals":"^29.6.1","@knighted/duel":"^1.0.6","ts-jest-resolver":"^2.0.1","@babel/preset-env":"^7.22.5","@types/micromatch":"^4.0.2","eslint-plugin-jest":"^27.2.1","@babel/preset-typescript":"^7.22.5","@typescript-eslint/parser":"^5.60.1","@typescript-eslint/eslint-plugin":"^5.60.1"},"_npmOperationalInternal":{"tmp":"tmp/magic-comments_2.1.12_1706296782574_0.5870881035461177","host":"s3://npm-registry-packages"}},"2.1.13":{"name":"magic-comments","version":"2.1.13","keywords":["node","build","tool","webpack","magic comments"],"author":{"name":"Morgan Ney","email":"morganney@gmail.com"},"license":"MIT","_id":"magic-comments@2.1.13","maintainers":[{"name":"morganney","email":"morganney@gmail.com"}],"homepage":"https://github.com/morganney/magic-comments#readme","bugs":{"url":"https://github.com/morganney/magic-comments/issues"},"dist":{"shasum":"06623c9d835cb648728cc6382979107ebe1084b1","tarball":"https://registry.npmjs.org/magic-comments/-/magic-comments-2.1.13.tgz","fileCount":63,"integrity":"sha512-vP2ng9czplz/tSEH/4BTYEHTs91za3aofmyeOx36M2AbTCIx9fdZGqrxfFGSay9wKJCJZXeP/ARjyzUnIrE2bw==","signatures":[{"sig":"MEQCIGxUccs7rcQ1CMAKi9M3mNaPmd3O5CNQ54b+PlKrHnIVAiBMtL4m7swqt09kVro1UCfWPQ6u3+LjkNQ6GqOD6M35yg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":175321},"main":"dist","type":"module","types":"./dist/esm/types.d.ts","engines":{"node":">=12.20.0"},"exports":{".":{"import":{"types":"./dist/esm/types.d.ts","default":"./dist/esm/index.js"},"default":"./dist/esm/index.js","require":{"types":"./dist/cjs/types.d.cts","default":"./dist/cjs/index.cjs"}},"./package.json":"./package.json"},"gitHead":"0f7b10bebc17cc02abdc817211fcc536feee5305","scripts":{"lint":"eslint . src __tests__ --ext .js,.ts","test":"BABEL_ENV=test jest","build":"duel --dirs","prepack":"npm run build","prettier":"prettier ./src ./__tests__ -w","check-types":"tsc --noEmit"},"_npmUser":{"name":"morganney","email":"morganney@gmail.com"},"prettier":{"semi":false,"printWidth":90,"singleQuote":true,"trailingComma":"none"},"overrides":{"@babel/preset-env":{"@babel/core":"^7.26.10"}},"repository":{"url":"git+https://github.com/morganney/magic-comments.git","type":"git"},"_npmVersion":"10.2.4","description":"Node.js tool for adding Webpack magic comments at build time.","directories":{},"_nodeVersion":"20.11.0","dependencies":{"micromatch":"^4.0.8","schema-utils":"^4.1.0"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.6.1","eslint":"^8.42.0","prettier":"^3.2.4","typescript":"^5.8.2","@jest/globals":"^29.6.1","@knighted/duel":"^2.1.0","ts-jest-resolver":"^2.0.1","@babel/preset-env":"^7.26.9","@types/micromatch":"^4.0.9","eslint-plugin-jest":"^28.11.0","@babel/preset-typescript":"^7.27.0","@typescript-eslint/parser":"^8.28.0","@typescript-eslint/eslint-plugin":"^8.28.0"},"_npmOperationalInternal":{"tmp":"tmp/magic-comments_2.1.13_1743343706496_0.9074661058175051","host":"s3://npm-registry-packages-npm-production"}},"3.0.0":{"name":"magic-comments","version":"3.0.0","description":"Node.js tool for adding Webpack magic comments at build time.","type":"module","main":"dist","exports":{".":{"import":{"types":"./dist/esm/types.d.ts","default":"./dist/esm/index.js"},"require":{"types":"./dist/cjs/types.d.cts","default":"./dist/cjs/index.cjs"},"default":"./dist/esm/index.js"},"./package.json":"./package.json"},"types":"./dist/esm/types.d.ts","engines":{"node":">=22.21.1"},"engineStrict":true,"scripts":{"check-types":"tsc --noEmit","build":"duel --dirs","lint":"eslint . src __tests__ --ext .js,.ts","prettier":"prettier ./src ./__tests__ -w","test":"BABEL_ENV=test jest","prepack":"npm run build"},"dependencies":{"micromatch":"^4.0.8","schema-utils":"^4.1.0"},"devDependencies":{"@babel/preset-env":"^7.29.0","@babel/preset-typescript":"^7.28.5","@eslint/js":"^9.39.2","@jest/globals":"^30.2.0","@knighted/duel":"^4.0.0","@types/micromatch":"^4.0.9","eslint":"^9.39.2","eslint-plugin-jest":"^29.12.2","globals":"^17.3.0","jest":"^30.2.0","prettier":"^3.2.4","typescript":"^5.9.3","typescript-eslint":"^8.54.0"},"prettier":{"printWidth":90,"semi":false,"singleQuote":true,"trailingComma":"none"},"repository":{"type":"git","url":"git+https://github.com/morganney/magic-comments.git"},"bugs":{"url":"https://github.com/morganney/magic-comments/issues"},"keywords":["node","build","tool","webpack","magic comments"],"author":{"name":"Morgan Ney","email":"morganney@gmail.com"},"license":"MIT","gitHead":"c3f4ede23e2a3c9fc9238ffe8da2ea5455b58b75","_id":"magic-comments@3.0.0","homepage":"https://github.com/morganney/magic-comments#readme","_nodeVersion":"24.13.0","_npmVersion":"11.6.2","dist":{"integrity":"sha512-Air+qjA2K/xjzwne0wRs/BQd5DgPLfcIfWOLsg4/28QnXtxWuOUim8Rc6jzHPOjgLUYNJxbQ5JSHb4b1LOnCgg==","shasum":"4b300c18e271334eff76f6caa222116266a0c4e8","tarball":"https://registry.npmjs.org/magic-comments/-/magic-comments-3.0.0.tgz","fileCount":63,"unpackedSize":175219,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/magic-comments@3.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIDtmNyR+JLCWd10vQo+d5jSaCm79e8DRWk2RbCOwOXYJAiEA7GqM4urGUm+FpBGBRWwI9l9jRFnAliTY1kOxlkUeq/g="}]},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:4b654979-0b51-4ebb-97eb-52ff9b9a76bf"}},"directories":{},"maintainers":[{"name":"morganney","email":"morganney@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/magic-comments_3.0.0_1770491661734_0.48851115735796546"},"_hasShrinkwrap":false}},"time":{"created":"2023-06-30T18:10:03.647Z","modified":"2026-02-07T19:14:22.174Z","1.0.0-alpha.0":"2023-06-30T18:10:03.790Z","1.0.0-rc.0":"2023-07-01T20:13:14.147Z","1.0.0":"2023-07-01T23:40:52.143Z","2.0.0":"2023-07-14T22:44:29.373Z","2.0.1":"2023-07-14T22:53:29.754Z","2.1.0":"2023-07-15T19:00:31.760Z","2.1.1":"2023-07-15T21:06:50.915Z","2.1.2":"2023-07-16T18:20:25.644Z","2.1.3":"2023-07-16T22:56:38.163Z","2.1.4":"2023-07-19T21:04:16.257Z","2.1.5":"2023-07-23T16:55:52.072Z","2.1.6":"2023-07-28T22:57:02.930Z","2.1.7":"2023-08-03T02:51:41.504Z","2.1.8":"2023-08-03T14:31:10.979Z","2.1.9":"2023-10-19T16:38:06.349Z","2.1.10":"2023-10-20T13:20:57.154Z","2.1.11":"2024-01-20T17:51:00.453Z","2.1.12":"2024-01-26T19:19:42.719Z","2.1.13":"2025-03-30T14:08:26.675Z","3.0.0":"2026-02-07T19:14:21.882Z"},"bugs":{"url":"https://github.com/morganney/magic-comments/issues"},"author":{"name":"Morgan Ney","email":"morganney@gmail.com"},"license":"MIT","homepage":"https://github.com/morganney/magic-comments#readme","keywords":["node","build","tool","webpack","magic comments"],"repository":{"type":"git","url":"git+https://github.com/morganney/magic-comments.git"},"description":"Node.js tool for adding Webpack magic comments at build time.","maintainers":[{"name":"morganney","email":"morganney@gmail.com"}],"readme":"# ✨ [`magic-comments`](https://www.npmjs.com/package/magic-comments)\n\n![CI](https://github.com/morganney/magic-comments/actions/workflows/ci.yml/badge.svg)\n[![codecov](https://codecov.io/gh/morganney/magic-comments/branch/main/graph/badge.svg?token=5O23HMHBKG)](https://codecov.io/gh/morganney/magic-comments)\n[![NPM version](https://img.shields.io/npm/v/magic-comments.svg)](https://www.npmjs.com/package/magic-comments)\n\nTooling utility to add configurable webpack [magic comments](https://webpack.js.org/api/module-methods/#magic-comments) to dynamic `import()` expressions at build time.\n\nUseful when working with:\n\n* [Babel plugins](https://babeljs.io/docs/plugins)\n* [Webpack loaders](https://webpack.js.org/loaders/)\n* [Vite plugins](https://vitejs.dev/guide/api-plugin.html)\n* Anywhere you want to add magic comments to your source code before running through webpack.\n\n## Getting Started\n\nFirst install `magic-comments`:\n\n```\nnpm install magic-comments\n```\n\nNext, for each file processed provide the following **required** information for every `import()` found:\n\n* The absolute filename of the file being processed (`modulePath`).\n* The dynamic import's specifier (`importPath`).\n\nThen pass those values to `getMagicComment()` to generate a magic comment that can be inserted into the corresponding `import()`:\n\n**src/file.js**\n\n```js\nconst mod = import('./folder/module.js')\n```\n\n**tooling**\n```js\nimport { resolve } from 'node:path'\nimport { readFileSync } from 'node:fs'\nimport { parse } from 'acorn' // Or another parser\nimport { getMagicComment } from 'magic-comments'\nimport { traverseForImportSpecifier } from './utils.js'\n\nconst filename = resolve(cwd, './src/file.js')\nconst code = readFileSync(filename)\nconst ast = parse(code)\nconst dynamicImports = traverseForImportSpecifiers(ast)\n\ndynamicImports.forEach(({ specifier }) => {\n  const magicComment = getMagicComment({\n    modulePath: filename,\n    importPath: specifier,\n    // The options are names of webpack magic comments\n    options: {\n      webpackChunkName: true,\n      webpackFetchPriority: (modulePath, importPath) => {\n        if (importPath.endsWith('important.js')) {\n          return 'high'\n        }\n      }\n    }\n  })\n\n  console.log(magicComment)\n  // /* webpackChunkName: \"module-important\", webpackFetchPriority: \"high\" */\n})\n```\n\n## `getMagicComment()`\n\nGenerates a webpack magic comment.\n\n```js\ngetMagicComment(ctx: MagicCommentsContext) => string\n```\n\nThe only parameter is an object with the following properties.\n\n```ts\ninterface MagicCommentsContext {\n  importPath: string\n  modulePath: string\n  match?: 'module' | 'import'\n  open?: boolean\n  options?: MagicComments\n}\n```\n\n### `MagicCommentsContext`\n\nThe only required properties are `modulePath` and `importPath`:\n\n* [`modulePath`](#modulepath)\n* [`importPath`](#importpath)\n* [`open`](#open)\n* [`match`](#match)\n* [`options`](#options)\n\n### `modulePath`\n\n**required**<sup>*</sup>\n\nThe absolute path to the file with the dynamic imports.\n\n### `importPath`\n\n**required**<sup>*</sup>\n\nThe specifier from the dynamic import. For example, for `import('./specifier.js')` the `importPath` would be `./specifier.js`.\n\n### `open`\n\n**default** `false`\n\nWhether the returned comment should be surrounded by `/*` and `*/`, for example, `/* comment */` vs ``  comment  ``.\n\n### `match`\n\n**default** `'module'`\n\nSets how globs are matched, either the module file path, or the `import()` specifier.\n\n### `options`\n\nAn object with properties corresponding to [magic comments supported by webpack](https://webpack.js.org/api/module-methods/#magic-comments). \n\nAll options can be defined with a [`CommentFunc`](#commentfunc) or a [`CommentConfig`](#commentconfig) to support overrides of [`CommentOptions`](#commentoptions). Options that support globs use [`micromatch`](https://github.com/micromatch/micromatch) for pattern matching, where `type Glob = string | string[]`.\n\n* [`webpackChunkName`](#webpackchunkname)\n* [`webpackFetchPriority`](#webpackfetchpriority)\n* [`webpackMode`](#webpackmode)\n* [`webpackPrefetch`](#webpackprefetch)\n* [`webpackPreload`](#webpackpreload)\n* [`webpackInclude`](#webpackinclude)\n* [`webpackExclude`](#webpackexclude)\n* [`webpackExports`](#webpackexports)\n* [`webpackIgnore`](#webpackignore)\n\n#### `CommentFunc`\n\nAll options can be defined as a function to dynamically determine their value, or turn on and off.\n\n```ts\ninterface CommentFunc<T> {\n  (modulePath: string, importPath: string): T\n}\n```\n\nThe exact shape of `T` is determined by the magic comment the option is associated with, similar to `CommentOptions`.\n\n#### `CommentConfig`\n\nTo allow overrides based on module or import paths, all options can be defined with an object having the following interface:\n\n```ts\ninterface CommentConfig<T extends CommentOptions> {\n  options: T\n  overrides?: Array<{\n    files: string | string[]\n    options: T\n  }>\n}\n```\n\n#### `CommentOptions`\n\nThe exact shape defining `options` is determined by the magic comment it is associated with, but the interface always extends `CommentOptions`:\n\n```ts\ninterface CommentOptions {\n  active?: boolean | ((modulePath: string, importPath: string): boolean)\n}\n```\n\nThe `active` property turns the option on or off. Each particular magic comment extends this interface in their own way, adding additional properties relevant to their functioning.\n\nFor example, `webpackChunkName` adds a couple additional properties for adjusting the chunk name used:\n\n```ts\ninterface WebpackChunkNameOptions extends CommentOptions {\n  /**\n   * Use the basename of the import specifier as the chunk name.\n   */\n  basename?: boolean\n  /**\n   * Provide a custom chunk name for all dynamic imports or\n   * those matching a particular override glob.\n   */\n  name?: string\n}\n```\n\nYou can skip to the [overrides example](#overrides) to get a better sense of how this all works.\n\n\n#### `webpackChunkName`\n\n**type**\n\n```ts\nboolean\n| Glob\n| CommentFunc<string | false>\n| CommentConfig<WebpackChunkNameOptions>\n```\n\n**default** `true`\n\nAdds `webpackChunkName` magic comments. The assumption is that this is the most popular webpack magic comment, so **it will be enabled by default when `options` is empty of falsy**.\n\nWhen using a [`CommentConfig`](#commentconfig) the following comment options are supported:\n\n```ts\n{\n  // Use the basename of the import specifier as the chunk name.\n  basename?: boolean\n  // If overrides are not used, this will apply to ALL dynamic imports.\n  name?: string\n}\n```\n\nPossible values:\n* `true` - Adds `webpackChunkName` comments to **all** dynamic imports using the derived path from the import specifier in kebab-case as the chunk name. This is the default.\n* `false` - Disables adding the `webpackChunkName` comment globally.\n* `string | string[]` - When the glob(s) match a path from a [`match`](#match) path, a `webpackChunkName` comment is added using the derived path from the import specifier in kebab-case as the chunk name.\n* `(modulePath: string, importPath: string) => string | false` - Return a string to be used as the chunk name. Returning a falsy value will skip adding the comment.\n* `options.basename`:\n  * `true` - Use only the [basename](https://nodejs.org/api/path.html#pathbasenamepath-suffix) from the import specifier as the chunk name. Might result in name collisions. Use in areas where you know the basenames are unique.\n  * `false` - Use the full derived path from the import specifier in kebab-case as the chunk name, same as the default behavior.\n* `options.name`:\n  * `string` - Set a fixed string to be used for all dynamic imports, or based on overrides.\n* `options.active`:\n  * `true` - Disable the comment.\n  * `false` - Enable the comment.\n\n### `webpackFetchPriority`\n\n**type**\n\n```ts\nboolean\n| FetchPriority\n| CommentFunc<false | FetchPriority>\n| CommentConfig<WebpackFetchPriorityOptions>\n```\n\n**default** None\n\nAdds `webpackFetchPriority` magic comments.\n\n`FetchPriority` is an enum:\n\n```ts\nenum FetchPriority {\n  AUTO = 'auto',\n  HIGH = 'high',\n  LOW = 'low'\n}\n```\n\nWhen using a [`CommentConfig`](#commentconfig) the following comment options are supported:\n\n```ts\n{\n  fetchPriority?: FetchPriority | CommentFunc<false | FetchPriority>\n}\n```\n\nPossible values:\n* `false` - Disables the comment globally. This is the default behavior.\n* `true` - Add `webpackFetchPriority` magic comments to **all** dynamic imports with the default value of `'auto'`.\n* `string` - Add `webpackFetchPriority` magic comments to **all** dynamic imports with the provided string value as the priority. If the string is not `'high'`, `'low'`, or `'auto'` the comment will **not** be added.\n* `(modulePath: string, importPath: string) => FetchPriority | false` - Return a string to be used as the priority. Returning a falsy value or an unsupported string will **not** add the comment.\n* `options.fetchPriority`:\n  * `FetchPriority` - Sets the fetch priority to the provided value when adding the comment.\n  * `(modulePath: string, importPath: string) => FetchPriority | false` - Same as using a function for the value.\n* `options.active`:\n  * `true` - Disable the comment.\n  * `false` - Enable the comment.\n\n### `webpackMode`\n\n**type**\n\n```ts\nboolean\n| Mode\n| CommentFunc<false | Mode>\n| CommentConfig<WebpackModeOptions>\n```\n\n**default** None\n\nAdds `webpackMode` magic comments.\n\n`Mode` is an enum:\n\n```ts\nenum Mode {\n  LAZY = 'lazy',\n  LAZY_ONCE = 'lazy-once',\n  EAGER = 'eager',\n  WEAK = 'weak'\n}\n```\n\nWhen using a [`CommentConfig`](#commentconfig) the following comment options are supported:\n```ts\n{\n  mode?: Mode | CommentFunc<false | Mode>\n}\n```\n\nPossible values:\n* `false` - Disables the comment globally. This is the default behavior.\n* `true` - Add `webpackMode` magic comments to **all** dynamic imports with the default value of `'lazy'`.\n* `string` - Add `webpackMode` magic comments to **all** dynamic imports with the provided string value as the mode. If the string is not `'lazy'`, `'lazy-once'`, `'eager'`, or `'weak'` the comment will **not** be added.\n* `(modulePath: string, importPath: string) => Mode | false` - Return a string to be used as the mode. Returning a falsy value or an unsupported string will **not** add the comment.\n* `options.mode`:\n  * `Mode` - Sets the chunk loading mode to the provided value when adding the comment.\n  * `(modulePath: string, importPath: string) => Mode | false` - Same as using a function for the value.\n* `options.active`:\n  * `true` - Disable the comment.\n  * `false` - Enable the comment.\n\n### [`webpackPrefetch`](https://webpack.js.org/guides/code-splitting/#prefetchingpreloading-modules)\n\n**type**\n\n```ts\nboolean\n| Glob\n| CommentFunc<boolean>\n| CommentConfig<CommentOptions>\n```\n\n**default** None\n\nAdds `webpackPrefetch` magic comments.\n\nWhen using a [`CommentConfig`](#commentconfig) this option **does not add additional properties** to [`CommentOptions`](#commentoptions).\n\nPossible values:\n* `false` - Disables the comment globally. This is the default behavior.\n* `true` - Add `webpackPrefetch` magic comments with a value of `true` to **all** dynamic imports. \n* `string | string[]` - Add `webpackPrefetch` comment with a value of `true` when the glob(s) match a path from a [`match`](#match) path.\n* `(modulePath: string, importPath: string) => boolean` - Returning `false` will disable adding the comment, otherwise it will be added.\n* `options.active`:\n  * `true` - Disable the comment.\n  * `false` - Enable the comment.\n\n### [`webpackPreload`](https://webpack.js.org/guides/code-splitting/#prefetchingpreloading-modules)\n\n**type**\n\n```ts\nboolean\n| Glob\n| CommentFunc<boolean>\n| CommentConfig<CommentOptions>\n```\n\n**default** None\n\nAdds `webpackPreload` magic comments.\n\nWhen using a [`CommentConfig`](#commentconfig) this option **does not add additional properties** to [`CommentOptions`](#commentoptions).\n\nPossible values:\n* `false` - Disables the comment globally. This is the default behavior.\n* `true` - Add `webpackPreload` magic comments with a value of `true` to **all** dynamic imports. \n* `string | string[]` - Add `webpackPreload` comment with a value of `true` when the glob(s) match a path from a [`match`](#match) path.\n* `(modulePath: string, importPath: string) => boolean` - Returning `false` will disable adding the comment, otherwise it will be added.\n* `options.active`:\n  * `true` - Disable the comment.\n  * `false` - Enable the comment.\n\n### `webpackInclude`\n\n**type**\n\n```ts\nRegExp\n| CommentFunc<RegExp>\n| CommentConfig<WebpackIncludeOptions>\n```\n\n**default** None\n\nAdds `webpackInclude` magic comments.\n\nWhen using a [`CommentConfig`](#commentconfig) the following comment options are supported:\n```ts\n{\n  include?: RegExp | CommentFunc<RegExp>\n}\n```\n\nPossible values:\n*  `RegExp` - Adds a `webpackInclude` comment to **all** dynamic imports using the provided regular expression.\n*  `(modulePath: string, importPath: string) => RegExp` - Adds a `webpackInclude` comment using the provided regular expression. Returning anything other than a regular expression does **not** add the comment.\n*  `options.include`:\n   * `RegExp` - Adds a `webpackInclude` comment to **all** dynamic imports, or only those matching a path from the [`match`](#match) path if using overrides.\n   * `(modulePath: string, importPath: string) => RegExp` - Same as using a function for the value.\n* `options.active`:\n  * `true` - Disable the comment.\n  * `false` - Enable the comment.\n\n### `webpackExclude`\n\n**type**\n\n```ts\nRegExp\n| CommentFunc<RegExp>\n| CommentConfig<WebpackExcludeOptions>\n```\n\n**default** None\n\nAdds `webpackExclude` magic comments.\n\nWhen using a [`CommentConfig`](#commentconfig) the following comment options are supported:\n```ts\n{\n  exclude?: RegExp | CommentFunc<RegExp>\n}\n```\n\nPossible values:\n*  `RegExp` - Adds a `webpackExclude` comment to **all** dynamic imports using the provided regular expression.\n*  `(modulePath: string, importPath: string) => RegExp` - Adds a `webpackExclude` comment using the provided regular expression. Returning anything other than a regular expression does **not** add the comment.\n*  `options.exclude`:\n   * `RegExp` - Adds a `webpackExclude` comment to **all** dynamic imports, or only those matching a path from the [`match`](#match) path if using overrides.\n   * `(modulePath: string, importPath: string) => RegExp` - Same as using a function for the value.\n* `options.active`:\n  * `true` - Disable the comment.\n  * `false` - Enable the comment.\n\n### `webpackExports`\n\n**type**\n\n```ts\nCommentFunc<string[]> | CommentConfig<WebpackExportsOptions>\n```\n\n**default** None\n\nAdds `webpackExports` magic comments.\n\nWhen using a [`CommentConfig`](#commentconfig) the following comment options are supported:\n```ts\n{\n  exports?: CommentFunc<string[]>\n}\n```\n\nPossible values:\n* `(modulePath: string, importPath: string) => string[]` - Adds a `webpackExports` comment using the strings in the returned array as the export names. Returning anything other than an array will **not** add the comment.\n* `options.exports`:\n  * `(modulePath: string, importPath: string) => string[]` - Same as using a function for the value.\n* `options.active`:\n  * `true` - Disable the comment.\n  * `false` - Enable the comment.\n\n\n### `webpackIgnore`\n\n**type**\n\n```ts\nboolean\n| Glob\n| CommentFunc<boolean>\n| CommentConfig<CommentOptions>\n```\n\n**default** None\n\nAdds `webpackIgnore` magic comments.\n\nWhen using a [`CommentConfig`](#commentconfig) this option **does not add additional properties** to [`CommentOptions`](#commentoptions).\n\nPossible values:\n* `false` - Disables the comment globally. This is the default behavior.\n* `true` - Add `webpackIgnore` magic comments with a value of `true` to **all** dynamic imports. Effectively, opt-out of webpack code-splitting for dynamic imports. \n* `string | string[]` - Add `webpackIgnore` comment with a value of `true` when the glob(s) match a path from a [`match`](#match) path.\n* `(modulePath: string, importPath: string) => boolean` - Returning `false` will **not** add the comment, otherwise it will be added.\n* `options.active`:\n  * `true` - Disable the comment.\n  * `false` - Enable the comment.\n\n## Examples\n\nBelow are some examples. Consult one of the [used by](#used-by) packages, or the unit tests in this repo for something more comprehensive. Particularly, the [loader specification from `magic-comments-loader`](https://github.com/morganney/magic-comments-loader/blob/main/__tests__/loader.spec.js).\n\n\n### Multiple\n\nSince [`options`](#options) is an object, you can define more than one type of a webpack magic comment.\n\n```js\nimport { getMagicComment, Mode } from 'magic-comments'\n\nconst magicComment = getMagicComment({\n  modulePath: '/path/file.js',\n  importPath: './import/module.js',\n  options: {\n    webpackMode: Mode.EAGER,\n    webpackPreload: (modulePath, importPath) => {\n      return importPath.includes('module')\n    }\n  }\n})\n\nconsole.log(magicComment) // /* webpackMode: \"eager\", webpackPreload: true */\n```\n\n### Overrides\n\nWhen using a [`CommentConfig<T>`](#commentconfig) object, you can override the configuration passed in the `options` property by defining `overrides`. It is an array of objects that look like:\n\n```ts\nArray<{\n  files: string | string[];\n  options: T;\n}>\n```\n\nWhere the generic `T` is related to the magic comment the options are associated with. The `files` and `options` properties are both **required**, where the former is a glob string, or an array thereof, and the latter is the associated magic comment's [`CommentOptions`](#commentoptions).\n\nHere's a more complete example of how overrides can be applied.\n\n```js\nimport  { getMagicComment } from 'magic-comments'\n\nconst comment = getMagicComment({\n  modulePath: '/file/module.js',\n  importPath: './dynamic/import.js',\n  options: {\n    webpackChunkName: {\n      options: { active: false },\n      overrides: [\n        {\n          files: '**/file/*.js',\n          options: {\n            active: true,\n            name: 'override'\n          }\n        }\n      ]\n    }\n  }\n})\n\nconsole.log(comment) // /* webpackChunkName: \"override\" */\n```\n\nHere, [`match`](#match) is set to `import`, so the glob used in the override will **not match**.\n\n```js\nconst comment = getMagicComment({\n  match: 'import',\n  modulePath: '/file/module.js',\n  importPath: './dynamic/import.js',\n  options: {\n    webpackChunkName: {\n      options: { active: true },\n      overrides: [\n        {\n          files: '**/file/*.js',\n          options: {\n            basename: true\n          }\n        }\n      ]\n    }\n  }\n})\n\nconsole.log(comment) // /* webpackChunkName: \"dynamic-import\" */\n```\n\nChanging the glob to `**/dynamic/*.js` will then match, and the override options will be used.\n\n```js\nconsole.log(comment) // /* webpackChunkName: \"import\" */\n```\n\n## Used by\n\n* [`magic-comments-loader`](https://github.com/morganney/magic-comments-loader)\n* [`babel-plugin-magic-comments`](https://github.com/morganney/babel-plugin-magic-comments)\n","readmeFilename":"README.md"}