Refactor exports
Export rules: * All default exports as named exports * Default export wherever it makes sense
This commit is contained in:
parent
7be7cf0210
commit
3b3e6467c8
2 changed files with 2 additions and 1 deletions
|
@ -14,7 +14,7 @@ class ChildObserver extends MutationObserver {
|
|||
|
||||
const childObserver = new ChildObserver()
|
||||
|
||||
const lense = (methods, extra) => {
|
||||
export const lense = (methods, extra) => {
|
||||
if (extra) return lense(extra)(methods)
|
||||
|
||||
const traps = {
|
||||
|
|
|
@ -184,6 +184,7 @@ const nameSpacedProxy = (options={}) => new Proxy(Window, {
|
|||
|
||||
export const html = nameSpacedProxy({nameFilter: name => name.replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase()})
|
||||
export const svg = nameSpacedProxy({xmlns: "http://www.w3.org/2000/svg"})
|
||||
export default html
|
||||
|
||||
// Other utility exports
|
||||
|
||||
|
|
Loading…
Reference in a new issue