sdk(astro,nextjs): add astro sdk and ensure window.op always first on nextjs
This commit is contained in:
7
packages/sdks/astro/src/asto-utils.ts
Normal file
7
packages/sdks/astro/src/asto-utils.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
const BLACKLISTED_PROPS = ['class'];
|
||||
|
||||
export function filterProps(props: Record<string, unknown>) {
|
||||
return Object.fromEntries(
|
||||
Object.entries(props).filter(([key]) => !BLACKLISTED_PROPS.includes(key)),
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user