We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1ba4e57 commit 6c26276Copy full SHA for 6c26276
lib/index.js
@@ -1,8 +1,8 @@
1
-const qs = require('query-string')
2
-const isUrl = require('is-url-superb')
3
-const matchHelper = require('posthtml-match-helper')
+import qs from 'query-string'
+import isUrl from 'is-url-superb'
+import matchHelper from 'posthtml-match-helper'
4
5
-module.exports = (config = {}) => tree => {
+const plugin = (config = {}) => tree => {
6
config.strict = typeof config.strict === 'boolean' ? config.strict : true
7
8
const process = node => {
@@ -49,3 +49,5 @@ module.exports = (config = {}) => tree => {
49
resolve(tree)
50
})
51
}
52
+
53
+export default plugin
0 commit comments