{"_id":"babel-plugin-const-enum","_rev":"3175957","name":"babel-plugin-const-enum","description":"Transform TypeScript `const` enums","dist-tags":{"latest":"1.2.0"},"maintainers":[{"name":"dosentmatter","email":""}],"time":{"modified":"2023-12-06T08:34:07.000Z","created":"2019-07-07T23:11:52.825Z","1.2.0":"2021-11-06T16:27:57.589Z","1.1.0":"2021-07-03T02:02:25.830Z","1.0.1":"2020-04-15T08:04:19.523Z","1.0.0":"2020-04-12T10:00:10.137Z","0.0.5":"2019-12-09T16:09:54.700Z","0.0.4":"2019-11-10T06:31:39.176Z","0.0.3":"2019-10-23T07:08:28.138Z","0.0.2":"2019-07-08T01:04:19.573Z","0.0.1":"2019-07-07T23:28:51.427Z","0.0.0":"2019-07-07T23:11:52.825Z"},"users":{},"author":{"name":"Kevin Lau"},"repository":{"type":"git","url":"https://github.com/dosentmatter/babel-plugin-const-enum"},"versions":{"1.2.0":{"name":"babel-plugin-const-enum","version":"1.2.0","description":"Transform TypeScript `const` enums","repository":{"type":"git","url":"https://github.com/dosentmatter/babel-plugin-const-enum"},"author":{"name":"Kevin Lau"},"license":"MIT","main":"lib/index.js","keywords":["babel-plugin","typescript","const","enum","terser","uglify","minify","compress"],"scripts":{"build":"babel src --out-dir lib","prepublishOnly":"yarn run build","test":"jest","lint-fix":"eslint --fix 'src/**/*.js' '__tests__/**/*.js'","prettier-fix":"prettier --write 'src/**/*.js' '__tests__/**/*.js'"},"peerDependencies":{"@babel/core":"^7.0.0-0"},"dependencies":{"@babel/helper-plugin-utils":"^7.0.0","@babel/plugin-syntax-typescript":"^7.3.3","@babel/traverse":"^7.16.0"},"devDependencies":{"@babel/cli":"^7.5.0","@babel/core":"^7.5.0","@babel/plugin-transform-typescript":"^7.9.4","@babel/preset-env":"^7.5.0","babel-jest":"^27.0.6","eslint":"^7.7.0","jest":"^27.0.6","prettier":"^2.0.4"},"licenseText":"MIT License\n\nCopyright (c) 2019 Kevin Lau\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"babel-plugin-const-enum@1.2.0","dist":{"shasum":"3d25524106f68f081e187829ba736b251c289861","size":4761,"noattachment":false,"key":"/babel-plugin-const-enum/-/babel-plugin-const-enum-1.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/babel-plugin-const-enum/download/babel-plugin-const-enum-1.2.0.tgz"},"_npmUser":{"name":"dosentmatter","email":"dosentmatter.public+npm@gmail.com"},"directories":{},"maintainers":[{"name":"dosentmatter","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/babel-plugin-const-enum_1.2.0_1636216077413_0.8452529944045672"},"_hasShrinkwrap":false,"publish_time":1636216077589,"_cnpm_publish_time":1636216077589,"_cnpmcore_publish_time":"2021-12-17T00:37:28.854Z"},"1.1.0":{"name":"babel-plugin-const-enum","version":"1.1.0","description":"Transform TypeScript `const` enums","repository":{"type":"git","url":"git+https://github.com/dosentmatter/babel-plugin-const-enum.git"},"author":{"name":"Kevin Lau"},"license":"MIT","main":"lib/index.js","keywords":["babel-plugin","typescript","const","enum","terser","uglify","minify","compress"],"scripts":{"build":"babel src --out-dir lib","prepublishOnly":"yarn run build","test":"jest","lint-fix":"eslint --fix 'src/**/*.js' '__tests__/**/*.js'","prettier-fix":"prettier --write 'src/**/*.js' '__tests__/**/*.js'"},"peerDependencies":{"@babel/core":"^7.0.0-0"},"dependencies":{"@babel/generator":"^7.5.0","@babel/helper-plugin-utils":"^7.0.0","@babel/plugin-syntax-typescript":"^7.3.3"},"devDependencies":{"@babel/cli":"^7.5.0","@babel/core":"^7.5.0","@babel/plugin-transform-typescript":"^7.9.4","@babel/preset-env":"^7.5.0","babel-jest":"^27.0.6","eslint":"^7.7.0","jest":"^27.0.6","prettier":"^2.0.4"},"gitHead":"7a818fe3fb4d754a41b13903a43ab896dcaebd24","bugs":{"url":"https://github.com/dosentmatter/babel-plugin-const-enum/issues"},"homepage":"https://github.com/dosentmatter/babel-plugin-const-enum#readme","_id":"babel-plugin-const-enum@1.1.0","_nodeVersion":"14.15.0","_npmVersion":"6.14.8","dist":{"shasum":"c0be36335bdc8504fc1d95d1161c82a6eea9047e","size":4162,"noattachment":false,"key":"/babel-plugin-const-enum/-/babel-plugin-const-enum-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/babel-plugin-const-enum/download/babel-plugin-const-enum-1.1.0.tgz"},"_npmUser":{"name":"dosentmatter","email":"dosentmatter.public+npm@gmail.com"},"directories":{},"maintainers":[{"name":"dosentmatter","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/babel-plugin-const-enum_1.1.0_1625277745614_0.404109362182564"},"_hasShrinkwrap":false,"publish_time":1625277745830,"_cnpm_publish_time":1625277745830,"_cnpmcore_publish_time":"2021-12-17T00:37:29.186Z"},"1.0.1":{"name":"babel-plugin-const-enum","version":"1.0.1","description":"Transform TypeScript `const` enums","repository":{"type":"git","url":"git+https://github.com/dosentmatter/babel-plugin-const-enum.git"},"author":{"name":"Kevin Lau"},"license":"MIT","main":"lib/index.js","keywords":["babel-plugin","typescript","const","enum","terser","uglify","minify","compress"],"scripts":{"build":"babel src --out-dir lib","prepublishOnly":"yarn run build","test":"jest","prettier-fix":"prettier --write src/**/*.js __tests__/**/*.js"},"peerDependencies":{"@babel/core":"^7.0.0-0"},"dependencies":{"@babel/helper-plugin-utils":"^7.0.0","@babel/plugin-syntax-typescript":"^7.3.3"},"devDependencies":{"@babel/cli":"^7.5.0","@babel/core":"^7.5.0","@babel/generator":"^7.5.0","@babel/plugin-transform-typescript":"^7.9.4","@babel/preset-env":"^7.5.0","babel-jest":"^25.2.6","jest":"^25.2.7","prettier":"^2.0.4"},"gitHead":"4fe48a1687493b66c01e2fbaa7fe31397b0f078d","bugs":{"url":"https://github.com/dosentmatter/babel-plugin-const-enum/issues"},"homepage":"https://github.com/dosentmatter/babel-plugin-const-enum#readme","_id":"babel-plugin-const-enum@1.0.1","_nodeVersion":"13.8.0","_npmVersion":"6.13.6","dist":{"shasum":"0d742faf9731be4f213c4d01d61fc4e93c44d159","size":4073,"noattachment":false,"key":"/babel-plugin-const-enum/-/babel-plugin-const-enum-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/babel-plugin-const-enum/download/babel-plugin-const-enum-1.0.1.tgz"},"maintainers":[{"name":"dosentmatter","email":""}],"_npmUser":{"name":"dosentmatter","email":"kelau1993+npm@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/babel-plugin-const-enum_1.0.1_1586937859353_0.4439664489739108"},"_hasShrinkwrap":false,"publish_time":1586937859523,"_cnpm_publish_time":1586937859523,"_cnpmcore_publish_time":"2021-12-17T00:37:29.507Z"},"1.0.0":{"name":"babel-plugin-const-enum","version":"1.0.0","description":"Transform TypeScript `const` enums","repository":{"type":"git","url":"git+https://github.com/dosentmatter/babel-plugin-const-enum.git"},"author":{"name":"Kevin Lau"},"license":"MIT","main":"lib/index.js","keywords":["babel-plugin","typescript","const","enum","terser","uglify","minify","compress"],"scripts":{"build":"babel src --out-dir lib","prepublishOnly":"yarn run build","test":"jest","prettier-fix":"prettier --write src/**/*.js __tests__/**/*.js"},"peerDependencies":{"@babel/core":"^7.0.0-0"},"dependencies":{"@babel/helper-plugin-utils":"^7.0.0","@babel/plugin-syntax-typescript":"^7.3.3"},"devDependencies":{"@babel/cli":"^7.5.0","@babel/core":"^7.5.0","@babel/generator":"^7.5.0","@babel/preset-env":"^7.5.0","babel-jest":"^25.2.6","jest":"^25.2.7","prettier":"^2.0.4"},"gitHead":"a4771818d47a8a6c2cf8a69db6e1161edab22bd3","bugs":{"url":"https://github.com/dosentmatter/babel-plugin-const-enum/issues"},"homepage":"https://github.com/dosentmatter/babel-plugin-const-enum#readme","_id":"babel-plugin-const-enum@1.0.0","_nodeVersion":"13.8.0","_npmVersion":"6.13.6","dist":{"shasum":"32f613ce47be8e1963c02ddaf94b3b1064b26519","size":4016,"noattachment":false,"key":"/babel-plugin-const-enum/-/babel-plugin-const-enum-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/babel-plugin-const-enum/download/babel-plugin-const-enum-1.0.0.tgz"},"maintainers":[{"name":"dosentmatter","email":""}],"_npmUser":{"name":"dosentmatter","email":"kelau1993+npm@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/babel-plugin-const-enum_1.0.0_1586685610004_0.4120341836724093"},"_hasShrinkwrap":false,"publish_time":1586685610137,"_cnpm_publish_time":1586685610137,"_cnpmcore_publish_time":"2021-12-17T00:37:29.921Z"},"0.0.5":{"name":"babel-plugin-const-enum","version":"0.0.5","description":"Transform TypeScript `const` enums","repository":{"type":"git","url":"https://github.com/dosentmatter/babel-plugin-const-enum"},"author":{"name":"Kevin Lau"},"license":"MIT","main":"lib/index.js","keywords":["babel-plugin","typescript","const","enum","terser","uglify","minify","compress"],"scripts":{"build":"babel src --out-dir lib","prepublishOnly":"yarn run build","test":"jest","prettier-fix":"prettier --write src/**/*.js __tests__/**/*.js"},"peerDependencies":{"@babel/core":"^7.0.0-0"},"dependencies":{"@babel/helper-plugin-utils":"^7.0.0","@babel/plugin-syntax-typescript":"^7.3.3"},"devDependencies":{"@babel/cli":"^7.5.0","@babel/core":"^7.5.0","@babel/generator":"^7.5.0","@babel/preset-env":"^7.5.0","babel-jest":"^24.8.0","jest":"^24.8.0","prettier":"^1.18.2"},"licenseText":"MIT License\n\nCopyright (c) 2019 Kevin Lau\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"babel-plugin-const-enum@0.0.5","dist":{"shasum":"1e807d52572bb193a0df60130ed06b07a59b04b3","size":4050,"noattachment":false,"key":"/babel-plugin-const-enum/-/babel-plugin-const-enum-0.0.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/babel-plugin-const-enum/download/babel-plugin-const-enum-0.0.5.tgz"},"maintainers":[{"name":"dosentmatter","email":""}],"_npmUser":{"name":"dosentmatter","email":"kelau1993+npm@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/babel-plugin-const-enum_0.0.5_1575907794567_0.7930262412994802"},"_hasShrinkwrap":false,"publish_time":1575907794700,"_cnpm_publish_time":1575907794700,"_cnpmcore_publish_time":"2021-12-17T00:37:30.109Z"},"0.0.4":{"name":"babel-plugin-const-enum","version":"0.0.4","description":"Transform TypeScript `const` enums","repository":{"type":"git","url":"git+https://github.com/dosentmatter/babel-plugin-const-enum.git"},"author":{"name":"Kevin Lau"},"license":"MIT","main":"lib/index.js","keywords":["babel-plugin","typescript","const","enum","terser","uglify","minify","compress"],"scripts":{"build":"babel src --out-dir lib","prepublishOnly":"yarn run build","test":"jest","prettier-fix":"prettier --write src/**/*.js"},"peerDependencies":{"@babel/core":"^7.0.0-0"},"dependencies":{"@babel/helper-plugin-utils":"^7.0.0","@babel/plugin-syntax-typescript":"^7.3.3"},"devDependencies":{"@babel/cli":"^7.5.0","@babel/core":"^7.5.0","@babel/generator":"^7.5.0","@babel/preset-env":"^7.5.0","babel-jest":"^24.8.0","jest":"^24.8.0","prettier":"^1.18.2"},"gitHead":"9e43a6eb40f8d5f644095513b5c4d2738d1000b8","bugs":{"url":"https://github.com/dosentmatter/babel-plugin-const-enum/issues"},"homepage":"https://github.com/dosentmatter/babel-plugin-const-enum#readme","_id":"babel-plugin-const-enum@0.0.4","_npmVersion":"6.5.0","_nodeVersion":"11.9.0","_npmUser":{"name":"dosentmatter","email":"kelau1993+npm@gmail.com"},"dist":{"shasum":"9149144638b85ec165afbbbd3ba0c9e1c5954624","size":3699,"noattachment":false,"key":"/babel-plugin-const-enum/-/babel-plugin-const-enum-0.0.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/babel-plugin-const-enum/download/babel-plugin-const-enum-0.0.4.tgz"},"maintainers":[{"name":"dosentmatter","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/babel-plugin-const-enum_0.0.4_1573367499028_0.18612939365882508"},"_hasShrinkwrap":false,"publish_time":1573367499176,"_cnpm_publish_time":1573367499176,"_cnpmcore_publish_time":"2021-12-17T00:37:30.601Z"},"0.0.3":{"name":"babel-plugin-const-enum","version":"0.0.3","description":"Transform TypeScript `const` enums","repository":{"type":"git","url":"git+https://github.com/dosentmatter/babel-plugin-const-enum.git"},"author":{"name":"Kevin Lau"},"license":"MIT","main":"lib/index.js","keywords":["babel-plugin","typescript","const","enum","terser","uglify","minify","compress"],"scripts":{"build":"babel src --out-dir lib","prepublishOnly":"yarn run build","test":"jest","prettier-fix":"prettier --write src/**/*.js"},"peerDependencies":{"@babel/core":"^7.0.0-0","@babel/generator":"^7.0.0-0"},"dependencies":{"@babel/helper-plugin-utils":"^7.0.0","@babel/plugin-syntax-typescript":"^7.3.3"},"devDependencies":{"@babel/cli":"^7.5.0","@babel/core":"^7.5.0","@babel/generator":"^7.5.0","@babel/preset-env":"^7.5.0","babel-jest":"^24.8.0","jest":"^24.8.0","prettier":"^1.18.2"},"gitHead":"3aee1d87c5ebecbe40dd26347feb015a87ede89d","bugs":{"url":"https://github.com/dosentmatter/babel-plugin-const-enum/issues"},"homepage":"https://github.com/dosentmatter/babel-plugin-const-enum#readme","_id":"babel-plugin-const-enum@0.0.3","_npmVersion":"6.5.0","_nodeVersion":"11.9.0","_npmUser":{"name":"dosentmatter","email":"kelau1993+npm@gmail.com"},"dist":{"shasum":"9d1c65f8a509b6a200664582987cedbcacb94404","size":3705,"noattachment":false,"key":"/babel-plugin-const-enum/-/babel-plugin-const-enum-0.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/babel-plugin-const-enum/download/babel-plugin-const-enum-0.0.3.tgz"},"maintainers":[{"name":"dosentmatter","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/babel-plugin-const-enum_0.0.3_1571814508005_0.7417067968245281"},"_hasShrinkwrap":false,"publish_time":1571814508138,"_cnpm_publish_time":1571814508138,"_cnpmcore_publish_time":"2021-12-17T00:37:30.821Z"},"0.0.2":{"name":"babel-plugin-const-enum","version":"0.0.2","description":"Transform TypeScript `const` enums","repository":{"type":"git","url":"git+https://github.com/dosentmatter/babel-plugin-const-enum.git"},"author":{"name":"Kevin Lau"},"license":"MIT","main":"lib/index.js","keywords":["babel-plugin","typescript","const","enum","terser","uglify","minify","compress"],"scripts":{"build":"babel src --out-dir lib","prepublishOnly":"npm run build","test":"jest"},"peerDependencies":{"@babel/core":"^7.0.0-0","@babel/generator":"^7.0.0-0"},"dependencies":{"@babel/helper-plugin-utils":"^7.0.0","@babel/plugin-syntax-typescript":"^7.3.3"},"devDependencies":{"@babel/cli":"^7.5.0","@babel/core":"^7.5.0","@babel/generator":"^7.5.0","@babel/helper-plugin-test-runner":"^7.1.0","@babel/preset-env":"^7.5.0","babel-jest":"^24.8.0","jest":"^24.8.0"},"gitHead":"4278bbd49ed89c95193c742300d787a961e68f73","bugs":{"url":"https://github.com/dosentmatter/babel-plugin-const-enum/issues"},"homepage":"https://github.com/dosentmatter/babel-plugin-const-enum#readme","_id":"babel-plugin-const-enum@0.0.2","_npmVersion":"6.4.1","_nodeVersion":"10.15.3","_npmUser":{"name":"dosentmatter","email":"kelau1993+npm@gmail.com"},"dist":{"shasum":"ace63825bdb4caafbb1e3bc441361463e45ec824","size":3139,"noattachment":false,"key":"/babel-plugin-const-enum/-/babel-plugin-const-enum-0.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/babel-plugin-const-enum/download/babel-plugin-const-enum-0.0.2.tgz"},"maintainers":[{"name":"dosentmatter","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/babel-plugin-const-enum_0.0.2_1562547859447_0.3861444708070203"},"_hasShrinkwrap":false,"publish_time":1562547859573,"_cnpm_publish_time":1562547859573,"_cnpmcore_publish_time":"2021-12-17T00:37:31.043Z"},"0.0.1":{"name":"babel-plugin-const-enum","version":"0.0.1","description":"Transform TypeScript `const` enums","repository":{"type":"git","url":"git+https://github.com/dosentmatter/babel-plugin-const-enum.git"},"author":{"name":"Kevin Lau"},"license":"MIT","main":"lib/index.js","keywords":["babel-plugin","typescript","const","enum","terser","uglify","minify","compress"],"scripts":{"build":"babel src --out-dir lib","prepublishOnly":"npm run build","test":"jest"},"peerDependencies":{"@babel/core":"^7.0.0-0","@babel/generator":"^7.0.0-0"},"dependencies":{"@babel/helper-plugin-utils":"^7.0.0","@babel/plugin-syntax-typescript":"^7.3.3"},"devDependencies":{"@babel/cli":"^7.5.0","@babel/core":"^7.5.0","@babel/generator":"^7.5.0","@babel/helper-plugin-test-runner":"^7.1.0","@babel/preset-env":"^7.5.0","babel-jest":"^24.8.0","jest":"^24.8.0"},"gitHead":"277601263a7394546fb7fe7ee62f267b5f580046","bugs":{"url":"https://github.com/dosentmatter/babel-plugin-const-enum/issues"},"homepage":"https://github.com/dosentmatter/babel-plugin-const-enum#readme","_id":"babel-plugin-const-enum@0.0.1","_npmVersion":"6.4.1","_nodeVersion":"10.15.3","_npmUser":{"name":"dosentmatter","email":"kelau1993+npm@gmail.com"},"dist":{"shasum":"c89a47d7cee0f62fb3aec4362fa47eda40129f0e","size":3130,"noattachment":false,"key":"/babel-plugin-const-enum/-/babel-plugin-const-enum-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/babel-plugin-const-enum/download/babel-plugin-const-enum-0.0.1.tgz"},"maintainers":[{"name":"dosentmatter","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/babel-plugin-const-enum_0.0.1_1562542131285_0.6772984753189715"},"_hasShrinkwrap":false,"publish_time":1562542131427,"_cnpm_publish_time":1562542131427,"_cnpmcore_publish_time":"2021-12-17T00:37:31.246Z"},"0.0.0":{"name":"babel-plugin-const-enum","version":"0.0.0","description":"Transform TypeScript `const` enums","repository":{"type":"git","url":"git+https://github.com/dosentmatter/babel-plugin-const-enum.git"},"author":{"name":"Kevin Lau"},"license":"MIT","main":"lib/index.js","keywords":["babel-plugin","typescript","const","enum","terser","uglify","minify","compress"],"scripts":{"build":"babel src --out-dir lib","prepublishOnly":"npm run build","test":"jest"},"peerDependencies":{"@babel/core":"^7.0.0-0","@babel/generator":"^7.0.0-0"},"dependencies":{"@babel/helper-plugin-utils":"^7.0.0","@babel/plugin-syntax-typescript":"^7.3.3"},"devDependencies":{"@babel/cli":"^7.5.0","@babel/core":"^7.5.0","@babel/generator":"^7.5.0","@babel/helper-plugin-test-runner":"^7.1.0","@babel/preset-env":"^7.5.0","babel-jest":"^24.8.0","jest":"^24.8.0"},"gitHead":"705bde9a39c54c5fa968a98161d31e629ef910af","bugs":{"url":"https://github.com/dosentmatter/babel-plugin-const-enum/issues"},"homepage":"https://github.com/dosentmatter/babel-plugin-const-enum#readme","_id":"babel-plugin-const-enum@0.0.0","_npmVersion":"6.4.1","_nodeVersion":"10.15.3","_npmUser":{"name":"dosentmatter","email":"kelau1993+npm@gmail.com"},"dist":{"shasum":"df415f0e033f5a254a9a83a1541be2c62035013f","size":2073,"noattachment":false,"key":"/babel-plugin-const-enum/-/babel-plugin-const-enum-0.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/babel-plugin-const-enum/download/babel-plugin-const-enum-0.0.0.tgz"},"maintainers":[{"name":"dosentmatter","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/babel-plugin-const-enum_0.0.0_1562541112682_0.6627362028002504"},"_hasShrinkwrap":false,"publish_time":1562541112825,"_cnpm_publish_time":1562541112825,"_cnpmcore_publish_time":"2021-12-17T00:37:31.495Z"}},"readme":"# babel-plugin-const-enum &middot; [![npm version](https://img.shields.io/npm/v/babel-plugin-const-enum.svg?style=flat)](https://www.npmjs.com/package/babel-plugin-const-enum) [![npm downloads](https://img.shields.io/npm/dm/babel-plugin-const-enum.svg?style=flat)](https://www.npmjs.com/package/babel-plugin-const-enum)\n\n> Transform TypeScript `const` enums\n\n## Install\n\nUsing npm:\n\n```sh\nnpm install --save-dev babel-plugin-const-enum\n```\n\nor using yarn:\n\n```sh\nyarn add babel-plugin-const-enum --dev\n```\n\n## Usage\n\nYou are most likely using\n[`@babel/preset-typescript`](https://babeljs.io/docs/en/babel-preset-typescript)\nor\n[`@babel/plugin-transform-typescript`](https://babeljs.io/docs/en/babel-plugin-transform-typescript)\nalong with this plugin.\n\nIf you are using `@babel/preset-typescript`, then nothing special needs to be\ndone since\n[plugins run before presets](https://babeljs.io/docs/en/plugins/#plugin-ordering).\n\nIf you are using `@babel/plugin-transform-typescript`, then make sure that\n`babel-plugin-const-enum` comes before\n`@babel/plugin-transform-typescript` in the plugin array so that\n`babel-plugin-const-enum` [runs first](https://babeljs.io/docs/en/plugins/#plugin-ordering).\nThis plugin needs to run first to transform the `const enum`s into code that\n`@babel/plugin-transform-typescript` allows.\n\n`.babelrc`\n\n```json\n{\n  \"plugins\": [\"const-enum\", \"@babel/transform-typescript\"]\n}\n```\n\n### `transform: removeConst` (default)\n\nRemoves the `const` keyword to use regular `enum`.\nCan be used in a slower dev build to allow `const`, while prod still uses `tsc`.\nSee [babel#6476](https://github.com/babel/babel/issues/6476).\n\n```ts\n// Before:\nconst enum MyEnum {\n  A = 1,\n  B = A,\n  C,\n  D = C,\n  E = 1,\n  F,\n  G = A * E,\n  H = A ** B ** C,\n  I = A << 20\n}\n\n// After:\nenum MyEnum {\n  A = 1,\n  B = A,\n  C,\n  D = C,\n  E = 1,\n  F,\n  G = A * E,\n  H = A ** B ** C,\n  I = A << 20\n}\n```\n\n`.babelrc`\n```json\n{\n  \"plugins\": [\n    \"const-enum\"\n  ]\n}\n```\n\nOr Explicitly:\n\n`.babelrc`\n```json\n{\n  \"plugins\": [\n    [\n      \"const-enum\",\n      {\n        \"transform\": \"removeConst\"\n      }\n    ]\n  ]\n}\n```\n\n### `transform: constObject`\n\nTransforms into a `const` object literal.\nCan be further compressed using Uglify/Terser to inline `enum` access.\nSee [babel#8741](https://github.com/babel/babel/issues/8741).\n\n```ts\n// Before:\nconst enum MyEnum {\n  A = 1,\n  B = A,\n  C,\n  D = C,\n  E = 1,\n  F,\n  G = A * E,\n  H = A ** B ** C,\n  I = A << 20\n}\n\n// After:\nconst MyEnum = {\n  A: 1,\n  B: 1,\n  C: 2,\n  D: 2,\n  E: 1,\n  F: 2,\n  G: 1,\n  H: 1,\n  I: 1048576\n};\n```\n\n`.babelrc`\n```json\n{\n  \"plugins\": [\n    [\n      \"const-enum\",\n      {\n        \"transform\": \"constObject\"\n      }\n    ]\n  ]\n}\n```\n\n## Troubleshooting\n\n### `SyntaxError`\n\nYou may be getting a `SyntaxError` because you are running this plugin on\nnon-TypeScript source. You might have run into this problem in `react-native`,\nsee:<br>\n[babel-plugin-const-enum#2](https://github.com/dosentmatter/babel-plugin-const-enum/issues/2)<br>\n[babel-plugin-const-enum#3](https://github.com/dosentmatter/babel-plugin-const-enum/issues/3)\n\nThis seems to be caused by `react-native` transpiling\n[`flow`](https://flow.org/) code in `node_modules`.\nTo fix this issue, please use\n[`babel-preset-const-enum`](https://github.com/dosentmatter/babel-preset-const-enum)\nto only run `babel-plugin-const-enum` on TypeScript files.\nIf you wish to fix the issue manually, check out the\n[solution in babel-plugin-const-enum#2](https://github.com/dosentmatter/babel-plugin-const-enum/issues/2#issuecomment-542859348).\n","_attachments":{},"license":"MIT"}