mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-17 10:41:13 +08:00
chore: internal import updates to improve bundling (#21400)
* chore: internal import updates to improve bundling - Rename keyboard.ts so it has a good filename after custom element bundling - Import util fns directly instead of from top level index - Do not export with * * chore(angular): bump ng-packagr Co-authored-by: Mike Hartington <mikehartington@gmail.com>
This commit is contained in:
@ -1,5 +1,7 @@
|
||||
import { AnimationKeyFrames } from './animation-interface';
|
||||
|
||||
let animationPrefix: string | undefined;
|
||||
|
||||
/**
|
||||
* Web Animations requires hyphenated CSS properties
|
||||
* to be written in camelCase when animating
|
||||
@ -33,8 +35,6 @@ const convertCamelCaseToHypen = (str: string) => {
|
||||
return str.replace(/([a-z0-9])([A-Z])/g, '$1-$2').toLowerCase();
|
||||
};
|
||||
|
||||
let animationPrefix: string | undefined;
|
||||
|
||||
export const getAnimationPrefix = (el: HTMLElement): string => {
|
||||
if (animationPrefix === undefined) {
|
||||
const supportsUnprefixed = (el.style as any).animationName !== undefined;
|
||||
|
Reference in New Issue
Block a user