Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update package to es6 module syntax #1306

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

jbloomstrom-wac
Copy link

Modernize Flickity Codebase to ES6 Modules

Overview:
This PR modernizes the Flickity codebase by converting it from CommonJS to ES6 module syntax. The following changes have been made to improve the maintainability and future-proofing of the codebase:

Changes:

  1. Convert to ES6 Modules:

    • Replaced all require statements with import statements.
    • Used export default for module exports.
  2. Updated Individual Module Files:

    • core.js: Updated to use ES6 syntax and exports.
    • drag.js: Converted the module to ES6 syntax, ensuring all functionality remains intact.
    • prev-next-button.js: Refactored using ES6 classes and modules.
    • page-dots.js: Refactored using ES6 classes and modules.
    • player.js: Refactored using ES6 classes and modules.
    • add-remove-cell.js: Updated to ES6 syntax.
    • lazyload.js: Updated to ES6 syntax.
    • imagesloaded.js: Updated to ES6 syntax.
  3. Main Entry File:

    • Converted the main entry point to use ES6 imports and export the Flickity module.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant