Skip to content

Commit

Permalink
@slidy/core - add plugins to iife
Browse files Browse the repository at this point in the history
  • Loading branch information
Valexr committed Sep 18, 2022
1 parent 9b2fb4c commit f8b0442
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions packages/core/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
href="assets/apple-touch-icon-precomposed.png" />
<link rel="icon" type="image/png" href="assets/favicon.png" />
<link rel="stylesheet" href="dev.css" />
<script src="build/index.js"></script>

<title id="title"></title>

Expand Down
7 changes: 4 additions & 3 deletions packages/core/src/iife.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
export { slidy as core } from './slidy';
export * as animation from '@slidy/animation/src/index';
export * as easing from '@slidy/easing/src/index';
export { media } from '@slidy/media/src/index';
export * as animation from '@slidy/animation/src';
export * as easing from '@slidy/easing/src';
export { media } from '@slidy/media/src';
export * as plugin from '@slidy/plugins/src';
export type { Options, EasingFunc, AnimationFunc, AnimationArgs } from './types';
2 changes: 1 addition & 1 deletion packages/plugins/src/utils/env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,6 @@ function listen(node: HTMLElement, events: EventMap, on = true): void {

function dispatch(node: HTMLElement, event: string) {
return node.dispatchEvent(new CustomEvent(event));
};
}

export { timer, type TimerInstace, listen, dispatch }

0 comments on commit f8b0442

Please sign in to comment.