Skip to content

Commit 203201a

Browse files
authored
fix: Don't use global URL in plugin (#80)
* fix: import URL explicitly to work in node 8 * fix: rely on error code, add node 8 to travis * fix: always suppress the error
1 parent 27ceacf commit 203201a

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ cache: npm
44
notifications:
55
email: false
66
node_js:
7+
- '8'
78
- '10'
89
- '12'
910
install: npm install

src/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { URL } from 'url';
12
import visit from 'unist-util-visit';
23

34
import { defaultTransformers } from './transformers';

0 commit comments

Comments
 (0)