Skip to content

Commit

Permalink
Support multiple calls to onINP() with different config options (#583)
Browse files Browse the repository at this point in the history
* Move the interactions logic into a reusable class

* Rename the interactions.ts file to match symbol

* Add basic test for INP

* Add tests for LCP

* Add tests for CLS

* Add tests for FCP

* Add tests for TTFB

* Add stricter comparison tests

* Switch from $ to _
  • Loading branch information
philipwalton authored Jan 10, 2025
1 parent b4e84bd commit 06df5a7
Show file tree
Hide file tree
Showing 18 changed files with 864 additions and 446 deletions.
10 changes: 9 additions & 1 deletion rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,16 @@ const configurePlugins = ({module}) => {
}),
terser({
module,
mangle: true,
compress: true,
mangle: {
properties: {
// Any object properties beginning with the '_' character will be
// mangled. Use this prefix for any object properties that are not
// part of the public API and do that not match an existing build-in
// API names (e.g. `.id` or `.entries`).
regex: /^_/,
},
},
}),
];
};
Expand Down
Loading

0 comments on commit 06df5a7

Please sign in to comment.