From 2826e87ac1cbee1b6ed5b0e6ce139a10e967daa4 Mon Sep 17 00:00:00 2001 From: Steve Le Roy Harris Date: Wed, 18 Jan 2017 18:32:56 +0000 Subject: [PATCH 1/2] Initial ES6 support --- addStyles.js | 48 +++++++++++++++++++++++++++++++----------------- index.js | 22 +++++++++++++++++----- 2 files changed, 48 insertions(+), 22 deletions(-) diff --git a/addStyles.js b/addStyles.js index 8d452779..afd03ef8 100644 --- a/addStyles.js +++ b/addStyles.js @@ -20,7 +20,7 @@ var stylesInDom = {}, singletonCounter = 0, styleElementsInsertedAtTop = []; -module.exports = function(list, options) { +module.exports = function(object, options) { if(typeof DEBUG !== "undefined" && DEBUG) { if(typeof document !== "object") throw new Error("The style-loader cannot be used in a non-browser environment"); } @@ -33,10 +33,10 @@ module.exports = function(list, options) { // By default, add