1.0.12 • Published 7 years ago

babel-plugin-decomma v1.0.12

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

babel-plugin-decomma

Removes comma expressions.

Example

Input:

const val = (0, a.func)();
const nested = (1, (2, (3, NaN)));
if ((0, b.bar)()) {
}

Output:

0;
const val = a.func();
1;
2;
3;
const nested = NaN;
0;
if (b.bar()) {
}

Currently no optimization is performed, like removing the constant values that are not assigned to anything. This is on the TODO list.

1.0.12

7 years ago

1.0.11

7 years ago

1.0.10

7 years ago

1.0.9

7 years ago

1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago