Skip to content

Commit 934a99d

Browse files
committed
use minimal property-information modules
1 parent e249661 commit 934a99d

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

rollup.config.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,9 @@ export default {
1616
babelrc: false,
1717
}),
1818
],
19-
external: ['property-information', 'web-namespaces'],
19+
external: [
20+
'property-information/find',
21+
'property-information/html',
22+
'web-namespaces',
23+
],
2024
};

src/index.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import ns from 'web-namespaces';
2-
import info from 'property-information';
2+
import find from 'property-information/find';
3+
import schema from 'property-information/html';
34

45
function transform(node, options) {
56
switch (node.type) {
@@ -103,7 +104,7 @@ function element(node, options) {
103104
commaSeparated,
104105
// `spaceSeparated`,
105106
// `commaOrSpaceSeparated`,
106-
} = info.find(info.html, key);
107+
} = find(schema, key);
107108

108109
let value = properties[key];
109110

0 commit comments

Comments
 (0)