UNPKG
babel-plugin-const-enum
Version:
latest (1.2.0)
1.2.0
1.1.0
1.0.1
1.0.0
0.0.5
0.0.4
0.0.3
0.0.2
0.0.1
0.0.0
Transform TypeScript `const` enums
dosentmatter/babel-plugin-const-enum
babel-plugin-const-enum
/
lib
/
remove-const.js
15 lines
(13 loc)
•
250 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
"use strict"
;
Object
.
defineProperty
(
exports
,
"__esModule"
, {
value
:
true
});
exports
.
default
=
void
0
;
var
_default = {
TSEnumDeclaration
(path) {
if
(path.
node
.
const
) { path.
node
.
const
=
false
; } } };
exports
.
default
= _default;