Skip to content

Commit 2b039b7

Browse files
committed
feat: implement native ES module support via rollup
close #298
1 parent 4eae465 commit 2b039b7

10 files changed

+1048
-21
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
node_modules/
2+
yarn.lock
3+
package-lock.json

lib/ElementQueries.d.ts

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
export declare class ElementQueries {
2+
/**
3+
* Attaches to DOMLoadContent
4+
*/
5+
static listen(): void;
6+
7+
/**
8+
* Parses all available CSS and attach ResizeSensor to those elements which have rules attached.
9+
* Make sure this is called after 'load' event, because CSS files are not ready when domReady is fired.
10+
*/
11+
static init(): void;
12+
}
13+
14+
export default ElementQueries;

0 commit comments

Comments
 (0)