From f9f63e7aba64099989672b1b813b130461b16507 Mon Sep 17 00:00:00 2001 From: Darren Mackintosh Date: Thu, 14 Mar 2019 11:23:12 +0000 Subject: [PATCH] Fix for the webpack issue export choices as a class to circumvent the webpack issue --- src/scripts/choices.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/scripts/choices.js b/src/scripts/choices.js index f334638..a8430d1 100644 --- a/src/scripts/choices.js +++ b/src/scripts/choices.js @@ -43,7 +43,7 @@ import { * Choices * @author Josh Johnson */ -class Choices { +export class Choices { constructor(element = '[data-choice]', userConfig = {}) { if (isType('String', element)) { const elements = Array.from(document.querySelectorAll(element)); @@ -2083,5 +2083,3 @@ class Choices { } Choices.userDefaults = {}; -// We cannot export default here due to Webpack: https://github.com/webpack/webpack/issues/3929 -module.exports = Choices;