Skip to content

Commit

Permalink
Change output files
Browse files Browse the repository at this point in the history
  • Loading branch information
jedrzejchalubek committed Dec 27, 2017
1 parent cf88ee7 commit 3f47af3
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion build/esm.modular.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import build from './build'
export default Object.assign(build, {
input: 'entry/entry-modular.js',
output: Object.assign(build.output, {
file: 'dist/glide.esm.modular.js',
file: 'dist/glide.modular.js',
format: 'es'
})
})
2 changes: 1 addition & 1 deletion dist/glide.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
typeof define === 'function' && define.amd ? define(factory) :
(global.Glide = factory());
(global.glidejs = factory());
}(this, (function () { 'use strict';

var defaults = {
Expand Down
2 changes: 1 addition & 1 deletion dist/glide.min.js

Large diffs are not rendered by default.

File renamed without changes.
16 changes: 8 additions & 8 deletions entry/entry-modular.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,6 @@ import Controls from '../src/components/controls'
import Keyboard from '../src/components/keyboard'
import Autoplay from '../src/components/autoplay'

export { Swipe }
export { Height }
export { Images }
export { Anchors }
export { Controls }
export { Keyboard }
export { Autoplay }

const COMPONENTS = {
Html,
Translate,
Expand All @@ -40,6 +32,14 @@ const COMPONENTS = {
Run
}

export { Swipe }
export { Height }
export { Images }
export { Anchors }
export { Controls }
export { Keyboard }
export { Autoplay }

export default class extends Glide {
mount (extensions) {
super.mount(Object.assign(extensions, COMPONENTS))
Expand Down

0 comments on commit 3f47af3

Please sign in to comment.