babel-plugin-dom-selector
v1.2.3
Published
transform custom DOM selector to native DOM selector
Downloads
56
Readme
babel-plugin-dom-selector
usage
npm i babel-plugin-dom-selector -D
before
getDOM('#container');
getDOM('.className');
getDOM('span');
###after
document.getElementById('container');
document.getElementsByClassName('className');
document.getElementsByTagName('span')