Skip to content

Commit d9eeff0

Browse files
committed
Removed overkill unique id generation
1 parent 4dbacd7 commit d9eeff0

File tree

2 files changed

+1
-30
lines changed

2 files changed

+1
-30
lines changed

src/index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
import postcss from 'postcss';
2-
import uniqid from './uniqid';
32

43
export default postcss.plugin('postcss-filter-plugins', ({
54
template = ({postcssPlugin}) => `Found duplicate plugin: ${postcssPlugin}`,
65
silent = false,
76
exclude = [],
87
direction = 'both',
98
} = {}) => {
10-
const id = uniqid();
9+
const id = Math.random().toString();
1110
let prev, next, both;
1211

1312
switch (direction) {

src/uniqid.js

Lines changed: 0 additions & 28 deletions
This file was deleted.

0 commit comments

Comments
 (0)