You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"file":"main-eff34b73.js","sourceRoot":"/source/","sourcesContent":["/**\n * Cookie plugin\n *\n * Copyright (c) 2006 Klaus Hartl (stilbuero.de)\n * Dual licensed under the MIT and GPL licenses:\n * http://www.opensource.org/licenses/mit-license.php\n * http://www.gnu.org/licenses/gpl.html\n *\n */\n\njQuery.cookie = function(name, value, options) {\n if (typeof value != 'undefined') { // name and value given, set cookie\n options = options || {};\n if (value === null) {\n value = '';\n options.expires = -1;\n }\n var expires = '';\n if (options.expires && (typeof options.expires == 'number' || options.expires.toUTCString)) {\n var date;\n if (typeof options.expires == 'number') {\n date = new Date();\n date.setTime(date.getTime() + (options.expires * 24 * 60 * 60 * 1000));\n } else {\n date = options.expires;\n }\n expires = '; expires=' + date.toUTCString(); // use expires attribute, max-age is not supported by IE\n }\n // CAUTION: Needed to parenthesize options.path and options.domain\n // in the following expressions, otherwise they evaluate to undefined\n // in the packed version for some reason...\n var path = options.path ? '; path=' + (options.path) : '';\n var domain = options.domain ? '; domain=' + (options.domain) : '';\n var secure = options.secure ? '; secure' : '';\n document.cookie = [name, '=', encodeURIComponent(value), expires, path, domain, secure].join('');\n } else { // only name given, get cookie\n var cookieValue = null;\n if (document.cookie && document.cookie != '') {\n var cookies = document.cookie.split(';');\n for (var i = 0; i < cookies.length; i++) {\n var cookie = jQuery.trim(cookies[i]);\n // Does this cookie string begin with the name we want?\n if (cookie.substring(0, name.length + 1) == (name + '=')) {\n cookieValue = decodeURIComponent(cookie.substring(name.length + 1));\n break;\n }\n }\n }\n return cookieValue;\n }\n};"]}
My temporary solution is to make a copy of the file and remove the comments, which works, but is obviously not ideal.
The text was updated successfully, but these errors were encountered:
For example, jQuery Cookie always has the author comment block at the top of the file, even in the minified version.
When this is passed to the bundler it seems to misinterpret this and output the file as a source file instead in the source mapping:
and further down:
My temporary solution is to make a copy of the file and remove the comments, which works, but is obviously not ideal.
The text was updated successfully, but these errors were encountered: