From f00a04fa7503ffe775e483ad4eaa77ce7d6b9d4f Mon Sep 17 00:00:00 2001 From: Jeffrey Way Date: Wed, 25 Jan 2017 12:07:34 -0500 Subject: [PATCH] Don't store autoload on the JS object. --- setup/webpack.config.js | 2 +- src/index.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/setup/webpack.config.js b/setup/webpack.config.js index 4bb09bb07..fb5e2147f 100644 --- a/setup/webpack.config.js +++ b/setup/webpack.config.js @@ -235,7 +235,7 @@ module.exports.devServer = { */ module.exports.plugins = (module.exports.plugins || []).concat([ - new webpack.ProvidePlugin(Mix.js.autoload || { + new webpack.ProvidePlugin(Mix.autoload || { jQuery: 'jquery', $: 'jquery', jquery: 'jquery', diff --git a/src/index.js b/src/index.js index 46a32f64a..3b23fd5c1 100644 --- a/src/index.js +++ b/src/index.js @@ -68,7 +68,7 @@ module.exports.autoload = (libs) => { }); }); - Mix.js.autoload = aliases; + Mix.autoload = aliases; return this; };