diff --git a/src/scripts/choices.js b/src/scripts/choices.js index 57233fc..f334638 100644 --- a/src/scripts/choices.js +++ b/src/scripts/choices.js @@ -1,4 +1,3 @@ -/* eslint-disable import/prefer-default-export */ import Fuse from 'fuse.js'; import merge from 'deepmerge'; @@ -44,7 +43,7 @@ import { * Choices * @author Josh Johnson */ -export class Choices { +class Choices { constructor(element = '[data-choice]', userConfig = {}) { if (isType('String', element)) { const elements = Array.from(document.querySelectorAll(element)); @@ -2084,3 +2083,5 @@ export class Choices { } Choices.userDefaults = {}; +// We cannot export default here due to Webpack: https://github.com/webpack/webpack/issues/3929 +module.exports = Choices;