app/code/Magento/Theme/view/base/requirejs-config.js
Copied!
Original file line number Diff line number Diff line change
@@ -69,7 +69,6 @@ var config = {
'jquery/validate': 'jquery/jquery.validate',
'jquery/file-uploader': 'jquery/fileUploader/jquery.fileuploader',
'prototype': 'legacy-build.min',
- 'jquery/jquery.cookie': 'js-cookie/cookie-wrapper',
'jquery/jquery-storageapi': 'js-storage/storage-wrapper',
'text': 'mage/requirejs/text',
'domReady': 'requirejs/domReady',---------
------------
lib/web/jquery/jquery.cookie.js
Copied!
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
define([
'jquery',
'js-cookie/cookie-wrapper'
], function () {
});
---------------
lib/web/js-storage/js.storage.js
Original file line number Diff line number Diff line change
@@ -14,7 +14,7 @@
(function (factory) {
var registeredInModuleLoader = false;
if (typeof define === 'function' && define.amd) {
- define(['jquery', 'js-cookie/cookie-wrapper'], factory);
+ define(['jquery', 'jquery/jquery.cookie'], factory);
registeredInModuleLoader = true;
}
if (typeof exports === 'object') {