diff --git a/src/index.js b/src/index.js index c083f01..e8348ef 100644 --- a/src/index.js +++ b/src/index.js @@ -42,10 +42,10 @@ export default function loader(src) { } // Normalize the fallback. - const { loader: fallbackLoader, query: fallbackQuery } = normalizeFallback( - options.fallback, - options - ); + const { + loader: fallbackLoader, + options: fallbackOptions, + } = normalizeFallback(options.fallback, options); // Require the fallback. const fallback = require(fallbackLoader); @@ -53,7 +53,7 @@ export default function loader(src) { // Call the fallback, passing a copy of the loader context. The copy has the query replaced. This way, the fallback // loader receives the query which was intended for it instead of the query which was intended for url-loader. const fallbackLoaderContext = Object.assign({}, this, { - query: fallbackQuery, + query: fallbackOptions, }); return fallback.call(fallbackLoaderContext, src); diff --git a/src/utils/normalizeFallback.js b/src/utils/normalizeFallback.js index 164ff93..33fdf87 100644 --- a/src/utils/normalizeFallback.js +++ b/src/utils/normalizeFallback.js @@ -1,46 +1,27 @@ -function normalizeFallbackString(fallbackString, originalOptions) { - const index = fallbackString.indexOf('?'); - if (index >= 0) { - return { - loader: fallbackString.substr(0, index), - query: fallbackString.substr(index), - }; - } +import loaderUtils from 'loader-utils'; - // To remain consistent with version 1.0.1, pass any other options which were provided to url-loader to the fallback loader. - const { fallback, limit, mimetype, ...otherOptions } = originalOptions; +export default function normalizeFallback(fallback, originalOptions) { + let loader = 'file-loader'; + let options = {}; - return { - loader: fallbackString, - query: otherOptions, - }; -} + if (typeof fallback === 'string') { + loader = fallback; -function normalizeFallbackObject(fallbackObject) { - return { - loader: fallbackObject.loader, - query: fallbackObject.options, - }; -} + const index = fallback.indexOf('?'); -/** - * Converts the fallback option, which can be a string or an object, to an object with a loader and a query. The result - * has this form: - * { - * loader: 'file-loader', - * query: '?name=[name].[ext]' - * } - * Note that the returned query can be either a string or an object. - */ -export default function normalizeFallback(fallback, originalOptions) { - // If no fallback was provided, use file-loader. - if (!fallback) { - return normalizeFallbackString('file-loader', originalOptions); + if (index >= 0) { + loader = fallback.substr(0, index); + options = loaderUtils.parseQuery(fallback.substr(index)); + } } - if (typeof fallback === 'string') { - return normalizeFallbackString(fallback, originalOptions); + if (fallback !== null && typeof fallback === 'object') { + ({ loader, options } = fallback); } - return normalizeFallbackObject(fallback); + options = Object.assign({}, originalOptions, options); + + delete options.fallback; + + return { loader, options }; } diff --git a/test/__snapshots__/fallback-option.test.js.snap b/test/__snapshots__/fallback-option.test.js.snap new file mode 100644 index 0000000..968b386 --- /dev/null +++ b/test/__snapshots__/fallback-option.test.js.snap @@ -0,0 +1,9 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`fallback option {Object} 1`] = `"module.exports={\\"limit\\":-9007199254740991,\\"name\\":\\"fallback-[hash].[ext]\\",\\"unknown\\":\\"fallback-other-value\\"}"`; + +exports[`fallback option {String} (with query) 1`] = `"module.exports={\\"limit\\":-9007199254740991,\\"name\\":\\"fallback-[hash].[ext]\\",\\"unknown\\":\\"fallback-value\\"}"`; + +exports[`fallback option {String} 1`] = `"module.exports={\\"limit\\":-9007199254740991,\\"name\\":\\"[name].[hash].[ext]\\",\\"unknown\\":\\"value\\"}"`; + +exports[`fallback option {undefined} 1`] = `"module.exports = \\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJYAAACWCAYAAAA8AXHiAAAAAXNSR0IArs4c6QAAGjNJREFUeAHtnQewFMXWx/uSxZxRUTGAAcyYnwpiJhgRFRCM6GeBZaklopaUWoUo9cwIqPhhAjGAWRQTRjAgijnnLOqnAgL3fv3rR+/r29uzO7t3e3Z2t0/V1uzM9Mx0n/nP6dPnnD4tRKDAgcCBwIFK4UCdq6JDhw5dZeHChRfKc4c2NDR0kNtWrnLhWE1woKGuru4X2dKX5fbym2666aU4rc4C1pAhQ/ZetmzZ7RJQG8W5QShTOxyQwKqXuPj3hhtueN7IkSPrc7W8uXny1FNPXa++vv55eXE783j4HziwnAMIoj3+T9Ibb7zxci6uNDNPSkk1VoJqdfNY+B84YHNAYuQyKYQ2s4+b+xlgyYJrSVHXxzwZ/gcORHCgjezZjos4pw630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tkgo6lsICF33ScOxqgaWZjAAYzSFBECXQiG3V/TCNAHIAB/KOEo6PwCHrsZLR5mnW+LHPRidASaAVSxRN4DEPbhntVBNAEu/LF4i4OKH5AJk/AAPynFcZVrfrylbQAqY+FGvaqOaApb58lCg0WP4ATL0LiQVW/ZLTVriIZWQeJU0wiuGFzULLJNZgExLMo4DLN0F6i3dIe4ZO2Oevo+WOtwLEOktijj71Q4kzQe9DcDSnDC2gIJfFAEw/QNQtQaaKL6YxwOwTG7E/A+YtISKeUnNFUttBGnNvYkqa3AAVpW90LQ0JwArLW+iyuoRgFVlLzQtzQnASsubqLJ6mMDKSg6A8zZXsH+V8SI0x8EB7Hbkj7BJjor/tI+Z+xlzg/RXvS+D/eulfSYDNkDFrORAgQM2ByTgPraPmfsZEMnkEz9JUD1ongz/AwciOLBYLvrwUMQ5dTgDLPaktfl/pIhbkOuCcC5wQLq5rlqwYMFXuTjRCFgTJkz4ToLrMAmuL3NdFM7VJgckLuqlz/QWOa/zf/NxoBGwKCwnhM6S+tY28iZXyt+H8tA/+W4Szlc1Bxpk636VatLTsvs7Ti5acIX0jXIsJ+UNBJJJU9vKmKX2Oe8STgYOLOeABN2fcqb3t1kSy+aQnAoeJJbNlLAfyQE5WlzMybzAevbZZ5dKMfhX5J3CicCB5Rygi5Sx/soemhdYXCOnff8gA9bqAwcDB3JxQALrF7lEoOrh8upY+kboWtKA2k5Kr4xRVZ8L28ABGW69QE4U/lkO+JRiHxtYsK5v377N5chgDRm6u5L8tQzsrG0OSAzUSym1UM7h/FVKqoW1zY3Q+sCBwIHK5cD/A4bJawZvxvyKAAAAAElFTkSuQmCC\\""`; diff --git a/test/__snapshots__/limit-option.test.js.snap b/test/__snapshots__/limit-option.test.js.snap new file mode 100644 index 0000000..f0578d2 --- /dev/null +++ b/test/__snapshots__/limit-option.test.js.snap @@ -0,0 +1,9 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`limit option {Number} (big) 1`] = `"module.exports = \\"data:image/png;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eUX89ttvZeX1L7/8Ip544gn1A1gAbNdddxVItmqmqgIW3dsjjzwi3nnnnZK8M3QprbBrRX7JkiVF3/vrr79WYb7333+/2G233cQhhxwiqrWrrApgzZ8/XwHqo48+Kuilr7zyyir8GgV83XXXVUo42xVXXFEp6DI6Mut+KP3oZnIGVCOln0EAOlwcvQ0d7YUXXlBStWvXrqJnz55igw02yHpWJR+oaGB99dVX4o477hCffPJJrHfASM5UrIvReWQ4rmjbtq36AcLtttsu82xA9+mnnyq9jkEC/wFRFDHqRB979dVXlQSTQXJilVVWiSpeUccrEljYlqZPny6efvppp0nAfAOYB7bddlul22yzzTYCYPgi7t2xY0f169Onj5BpChRoGDzkkqYMMvQA47DDDhPdu3cXLmnpq94+7ltxwOLrnjJlimD0lYvWW2890aNHD7Hzzjurri1XWV/nkJB77723+mGaYEDxzDPPqG7U9UxGrXfddZfqJgcNGiQ23nhjV7GKOFYxwEJ5vvPOO8WLL76Yk7FMWUMpZojv+urpPuX0cPHWW28pSXbooYfmvF+pTmI4RYrJCQfiueeeEzNmzIgcsaKrjRo1Shx55JFi//33L1UVEr1PRQAL88G4ceME2yhC+T3qqKME3Z1N2vzw+uuvi59++ilzGqU9acI1BFjo7lDgH3jgAacEQze7++67xQcffCBOOOGEskndYvmTemChe6CgR422MAcgCfbbbz/B5EqTGC0++eSTjcwPzO7eYYcdlERDkS8XofvJCZ+qq542bZqYNWuWU1988803xSWXXCJOO+00sckmm5SrugU/N9XAevjhh5WSHtUqhurHHHNMo9naKMLoMnQ1WsIBPgyTu+yyi9hss82cXWTUM3wfx7QxYMAAseeee6oP6Isvvsh6JEbWMWPGKHC5JHLWBSk4kEpgAY7JkyerUZ+LRxgueRm77757o9MYSLkOPQpaY401lAKPAo0inWZCGo0YMUJgPMVSDw9MQmJff/31AqWejyTtlDpgYQuSWePEa6+95uQduhTdAqM+TXzR99xzT+YaFOXDDz9cdTN296ivSeMWcwW2LLroiRMnij///LNRNeHNrbfeqnSyAw88sNG5tO2kClh8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KmKX2Oe8STgYOLOeABN2fcqb3t1kSy+aQnAoeJJbNlLAfyQE5WlzMybzAevbZZ5dKMfhX5J3CicCB5Rygi5Sx/soemhdYXCOnff8gA9bqAwcDB3JxQALrF7lEoOrh8upY+kboWtKA2k5Kr4xRVZ8L28ABGW69QE4U/lkO+JRiHxtYsK5v377N5chgDRm6u5L8tQzsrG0OSAzUSym1UM7h/FVKqoW1zY3Q+sCBwIHK5cD/A4bJawZvxvyKAAAAAElFTkSuQmCC\\""`; + +exports[`limit option {Number} (less) 1`] = `"module.exports = __webpack_public_path__ + \\"9c87cbf3ba33126ffd25ae7f2f6bbafb.png\\";"`; + +exports[`limit option {String} (big) 1`] = `"module.exports = \\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJYAAACWCAYAAAA8AXHiAAAAAXNSR0IArs4c6QAAGjNJREFUeAHtnQewFMXWx/uSxZxRUTGAAcyYnwpiJhgRFRCM6GeBZaklopaUWoUo9cwIqPhhAjGAWRQTRjAgijnnLOqnAgL3fv3rR+/r29uzO7t3e3Z2t0/V1uzM9Mx0n/nP6dPnnD4tRKDAgcCBwIFK4UCdq6JDhw5dZeHChRfKc4c2NDR0kNtWrnLhWE1woKGuru4X2dKX5fbym2666aU4rc4C1pAhQ/ZetmzZ7RJQG8W5QShTOxyQwKqXuPj3hhtueN7IkSPrc7W8uXny1FNPXa++vv55eXE783j4HziwnAMIoj3+T9Ibb7zxci6uNDNPSkk1VoJqdfNY+B84YHNAYuQyKYQ2s4+b+xlgyYJrSVHXxzwZ/gcORHCgjezZjos4pw630Cdlwa0kEjNA4/hqq60mLrzwQrXV5cK2tjggcSGmTp0qZs6caTe8s33A3DeBtLJ5gv8bbbRRAJXNlBrbb9asmejcORtDUm1q161bt8333XffDfr27buCzRYTWPa5sB84kJMDzZs3bybVpxV//fXXDQ8++OC1ZY+XsTIEYOVkXTgZlwP//PPP6gcddFBm4BeAFZdzoVxeDkh9bE3ZLSpjegBWXnaFAnE5IIFVJ7tFpasH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u62luAiK80bbYpu5659qsWWDQavYQXjHLcQdrA0IuIHNCKNrNciPNCukVZvnMxT5+je8OdwkgNswZgigoT1te4tkgo6lsICF33ScOxqgaWZjAAYzSFBECXQiG3V/TCNAHIAB/KOEo6PwCHrsZLR5mnW+LHPRidASaAVSxRN4DEPbhntVBNAEu/LF4i4OKH5AJk/AAPynFcZVrfrylbQAqY+FGvaqOaApb58lCg0WP4ATL0LiQVW/ZLTVriIZWQeJU0wiuGFzULLJNZgExLMo4DLN0F6i3dIe4ZO2Oevo+WOtwLEOktijj71Q4kzQe9DcDSnDC2gIJfFAEw/QNQtQaaKL6YxwOwTG7E/A+YtISKeUnNFUttBGnNvYkqa3AAVpW90LQ0JwArLW+iyuoRgFVlLzQtzQnASsubqLJ6mMDKSg6A8zZXsH+V8SI0x8EB7Hbkj7BJjor/tI+Z+xlzg/RXvS+D/eulfSYDNkDFrORAgQM2ByTgPraPmfsZEMnkEz9JUD1ongz/AwciOLBYLvrwUMQ5dTgDLPaktfl/pIhbkOuCcC5wQLq5rlqwYMFXuTjRCFgTJkz4ToLrMAmuL3NdFM7VJgckLuqlz/QWOa/zf/NxoBGwKCwnhM6S+tY28iZXyt+H8tA/+W4Szlc1Bxpk636VatLTsvs7Ti5acIX0jXIsJ+UNBJJJU9vKmKX2Oe8STgYOLOeABN2fcqb3t1kSy+aQnAoeJJbNlLAfyQE5WlzMybzAevbZZ5dKMfhX5J3CicCB5Rygi5Sx/soemhdYXCOnff8gA9bqAwcDB3JxQALrF7lEoOrh8upY+kboWtKA2k5Kr4xRVZ8L28ABGW69QE4U/lkO+JRiHxtYsK5v377N5chgDRm6u5L8tQzsrG0OSAzUSym1UM7h/FVKqoW1zY3Q+sCBwIHK5cD/A4bJawZvxvyKAAAAAElFTkSuQmCC\\""`; diff --git a/test/__snapshots__/mimetype-option.test.js.snap b/test/__snapshots__/mimetype-option.test.js.snap new file mode 100644 index 0000000..46d736e --- /dev/null +++ b/test/__snapshots__/mimetype-option.test.js.snap @@ -0,0 +1,5 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`mimetype option {String} 1`] = `"module.exports = \\"data:image/x-custom;base64,iVBORw0KGgoAAAANSUhEUgAAAJYAAACWCAYAAAA8AXHiAAAAAXNSR0IArs4c6QAAGjNJREFUeAHtnQewFMXWx/uSxZxRUTGAAcyYnwpiJhgRFRCM6GeBZaklopaUWoUo9cwIqPhhAjGAWRQTRjAgijnnLOqnAgL3fv3rR+/r29uzO7t3e3Z2t0/V1uzM9Mx0n/nP6dPnnD4tRKDAgcCBwIFK4UCdq6JDhw5dZeHChRfKc4c2NDR0kNtWrnLhWE1woKGuru4X2dKX5fbym2666aU4rc4C1pAhQ/ZetmzZ7RJQG8W5QShTOxyQwKqXuPj3hhtueN7IkSPrc7W8uXny1FNPXa++vv55eXE783j4HziwnAMIoj3+T9Ibb7zxci6uNDNPSkk1VoJqdfNY+B84YHNAYuQyKYQ2s4+b+xlgyYJrSVHXxzwZ/gcORHCgjezZjos4pw630Cdlwa0kEjNA4/hqq60mLrzwQrXV5cK2tjggcSGmTp0qZs6caTe8s33A3DeBtLJ5gv8bbbRRAJXNlBrbb9asmejcORtDUm1q161bt8333XffDfr27buCzRYTWPa5sB84kJMDzZs3bybVpxV//fXXDQ8++OC1ZY+XsTIEYOVkXTgZlwP//PPP6gcddFBm4BeAFZdzoVxeDkh9bE3ZLSpjegBWXnaFAnE5IIFVJ7tFpasHYMXlWigXiwNS2W9NwQCsWOwKheJyoHXr1kqBD8CKy7FQriAOBGAVxK5QOC4HArDiciqUK4gDAVgFsSsUjsuBAKy4nArlCuJAAFZB7AqF43IgE90Q94JaKifdFGLRokVi6dKlolWrVqJNmzaiRYvAsjgYqFkuSe+8+OGHH8T333/f6LdgwQIFpsWLFwtCRmwCWNJWI1ZYYQWx1lpriXbt2jX6cSyQEDUDLOl5F19++aV4//331e/DDz8UgKdQQnrx++uvv8TPP/+s7mXeY9VVVxVbbLGF2HLLLdVvnXXWMU/XzP+qBhZgeu+998TLL78s5s2bJ/7++2/vL/b3338Xc+bMUT8etuaaa4qddtpJ7LHHHqJ9+/ben5+WB1QlsL799lvx0ksviVdeeUX89ttvZeX1L7/8Ip544gn1A1gAbNdddxVItmqmqgIW3dsjjzwi3nnnnZK8M3QprbBrRX7JkiVF3/vrr79WYb7333+/2G233cQhhxwiqrWrrApgzZ8/XwHqo48+Kuilr7zyyir8GgV83XXXVUo42xVXXFEp6DI6Mut+KP3oZnIGVCOln0EAOlwcvQ0d7YUXXlBStWvXrqJnz55igw02yHpWJR+oaGB99dVX4o477hCffPJJrHfASM5UrIvReWQ4rmjbtq36AcLtttsu82xA9+mnnyq9jkEC/wFRFDHqRB979dVXlQSTQXJilVVWiSpeUccrEljYlqZPny6efvppp0nAfAOYB7bddlul22yzzTYCYPgi7t2xY0f169Onj5BpChRoGDzkkqYMMvQA47DDDhPdu3cXLmnpq94+7ltxwOLrnjJlimD0lYvWW2890aNHD7Hzzjurri1XWV/nkJB77723+mGaYEDxzDPPqG7U9UxGrXfddZfqJgcNGiQ23nhjV7GKOFYxwEJ5vvPOO8WLL76Yk7FMWUMpZojv+urpPuX0cPHWW28pSXbooYfmvF+pTmI4RYrJCQfiueeeEzNmzIgcsaKrjRo1Shx55JFi//33L1UVEr1PRQAL88G4ceME2yhC+T3qqKME3Z1N2vzw+uuvi59++ilzGqU9acI1BFjo7lDgH3jgAacEQze7++67xQcffCBOOOGEskndYvmTemChe6CgR422MAcgCfbbbz/B5EqTGC0++eSTjcwPzO7eYYcdlERDkS8XofvJCZ+qq542bZqYNWuWU1988803xSWXXCJOO+00sckmm5SrugU/N9XAevjhh5WSHtUqhurHHHNMo9naKMLoMnQ1WsIBPgyTu+yyi9hss82cXWTUM3wfx7QxYMAAseeee6oP6Isvvsh6JEbWMWPGKHC5JHLWBSk4kEpgAY7JkyerUZ+LRxgueRm77757o9MYSLkOPQpaY401lAKPAo0inWZCGo0YMUJgPMVSDw9MQmJff/31AqWejyTtlDpgYQuSWePEa6+95uQ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/zf/NxoBGwKCwnhM6S+tY28iZXyt+H8tA/+W4Szlc1Bxpk636VatLTsvs7Ti5acIX0jXIsJ+UNBJJJU9vKmKX2Oe8STgYOLOeABN2fcqb3t1kSy+aQnAoeJJbNlLAfyQE5WlzMybzAevbZZ5dKMfhX5J3CicCB5Rygi5Sx/soemhdYXCOnff8gA9bqAwcDB3JxQALrF7lEoOrh8upY+kboWtKA2k5Kr4xRVZ8L28ABGW69QE4U/lkO+JRiHxtYsK5v377N5chgDRm6u5L8tQzsrG0OSAzUSym1UM7h/FVKqoW1zY3Q+sCBwIHK5cD/A4bJawZvxvyKAAAAAElFTkSuQmCC\\""`; + +exports[`mimetype option {undefined} 1`] = `"module.exports = \\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJYAAACWCAYAAAA8AXHiAAAAAXNSR0IArs4c6QAAGjNJREFUeAHtnQewFMXWx/uSxZxRUTGAAcyYnwpiJhgRFRCM6GeBZaklopaUWoUo9cwIqPhhAjGAWRQTRjAgijnnLOqnAgL3fv3rR+/r29uzO7t3e3Z2t0/V1uzM9Mx0n/nP6dPnnD4tRKDAgcCBwIFK4UCdq6JDhw5dZeHChRfKc4c2NDR0kNtWrnLhWE1woKGuru4X2dKX5fbym2666aU4rc4C1pAhQ/ZetmzZ7RJQG8W5QShTOxyQwKqXuPj3hhtueN7IkSPrc7W8uXny1FNPXa++vv55eXE783j4HziwnAMIoj3+T9Ibb7zxci6uNDNPSkk1VoJqdfNY+B84YHNAYuQyKYQ2s4+b+xlgyYJrSVHXxzwZ/gcORHCgjezZjos4pw630Cdlwa0kEjNA4/hqq60mLrzwQrXV5cK2tjggcSGmTp0qZs6caTe8s33A3DeBtLJ5gv8bbbRRAJXNlBrbb9asmejcORtDUm1q161bt8333XffDfr27buCzRYTWPa5sB84kJMDzZs3bybVpxV//fXXDQ8++OC1ZY+XsTIEYOVkXTgZlwP//PPP6gcddFBm4BeAFZdzoVxeDkh9bE3ZLSpjegBWXnaFAnE5IIFVJ7t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kzQe9DcDSnDC2gIJfFAEw/QNQtQaaKL6YxwOwTG7E/A+YtISKeUnNFUttBGnNvYkqa3AAVpW90LQ0JwArLW+iyuoRgFVlLzQtzQnASsubqLJ6mMDKSg6A8zZXsH+V8SI0x8EB7Hbkj7BJjor/tI+Z+xlzg/RXvS+D/eulfSYDNkDFrORAgQM2ByTgPraPmfsZEMnkEz9JUD1ongz/AwciOLBYLvrwUMQ5dTgDLPaktfl/pIhbkOuCcC5wQLq5rlqwYMFXuTjRCFgTJkz4ToLrMAmuL3NdFM7VJgckLuqlz/QWOa/zf/NxoBGwKCwnhM6S+tY28iZXyt+H8tA/+W4Szlc1Bxpk636VatLTsvs7Ti5acIX0jXIsJ+UNBJJJU9vKmKX2Oe8STgYOLOeABN2fcqb3t1kSy+aQnAoeJJbNlLAfyQE5WlzMybzAevbZZ5dKMfhX5J3CicCB5Rygi5Sx/soemhdYXCOnff8gA9bqAwcDB3JxQALrF7lEoOrh8upY+kboWtKA2k5Kr4xRVZ8L28ABGW69QE4U/lkO+JRiHxtYsK5v377N5chgDRm6u5L8tQzsrG0OSAzUSym1UM7h/FVKqoW1zY3Q+sCBwIHK5cD/A4bJawZvxvyKAAAAAElFTkSuQmCC\\""`; diff --git a/test/cjs.test.js b/test/cjs.test.js new file mode 100644 index 0000000..8cad587 --- /dev/null +++ b/test/cjs.test.js @@ -0,0 +1,8 @@ +import loader from '../src'; +import CJSLoader from '../src/cjs'; + +describe('CJS', () => { + it('should exported loader', () => { + expect(CJSLoader).toEqual(loader); + }); +}); diff --git a/test/fallback-option.test.js b/test/fallback-option.test.js new file mode 100644 index 0000000..1da8ccb --- /dev/null +++ b/test/fallback-option.test.js @@ -0,0 +1,108 @@ +/* eslint-disable + prefer-destructuring, +*/ +import path from 'path'; + +import webpack from '@webpack-contrib/test-utils'; + +describe('fallback option', () => { + test('{undefined}', async () => { + const config = { + rules: [ + { + test: /\.png$/, + use: { + loader: path.join(__dirname, '../src'), + options: {}, + }, + }, + ], + }; + + const stats = await webpack('fixture.js', config); + const { source } = stats.toJson().modules[0]; + + expect(source).toMatchSnapshot(); + }); + + test('{String}', async () => { + const config = { + rules: [ + { + test: /\.png$/, + use: { + loader: path.join(__dirname, '../src'), + options: { + limit: Number.MIN_SAFE_INTEGER, + name: '[name].[hash].[ext]', + unknown: 'value', + fallback: path.join(__dirname, 'fixtures/x-custom-loader'), + }, + }, + }, + ], + }; + + const stats = await webpack('fixture.js', config); + const { source } = stats.toJson().modules[0]; + + expect(source).toMatchSnapshot(); + }); + + test('{String} (with query)', async () => { + const config = { + rules: [ + { + test: /\.png$/, + use: { + loader: path.join(__dirname, '../src'), + options: { + limit: Number.MIN_SAFE_INTEGER, + name: '[name].[hash].[ext]', + unknown: 'value', + fallback: `${path.join( + __dirname, + 'fixtures/x-custom-loader' + )}?name=fallback-[hash].[ext]&unknown=fallback-value`, + }, + }, + }, + ], + }; + + const stats = await webpack('fixture.js', config); + const { source } = stats.toJson().modules[0]; + + expect(source).toMatchSnapshot(); + }); + + test('{Object}', async () => { + const config = { + rules: [ + { + test: /\.png$/, + use: { + loader: path.join(__dirname, '../src'), + options: { + limit: Number.MIN_SAFE_INTEGER, + name: '[name].[hash].[ext]', + unknown: 'value', + fallback: { + loader: path.join(__dirname, 'fixtures/x-custom-loader'), + options: { + name: 'fallback-[hash].[ext]', + unknown: 'fallback-other-value', + }, + }, + }, + }, + }, + ], + }; + + const stats = await webpack('fixture.js', config); + const { source } = stats.toJson().modules[0]; + + expect(source).toMatchSnapshot(); + }); +}); diff --git a/test/fixtures/x-custom-loader/index.js b/test/fixtures/x-custom-loader/index.js new file mode 100644 index 0000000..7f2eeeb --- /dev/null +++ b/test/fixtures/x-custom-loader/index.js @@ -0,0 +1,7 @@ +const utils = require('loader-utils'); + +module.exports = function loader() { + const options = utils.getOptions(this); + + return `module.exports=${JSON.stringify(options)}`; +}; diff --git a/test/limit-option.test.js b/test/limit-option.test.js new file mode 100644 index 0000000..5e75298 --- /dev/null +++ b/test/limit-option.test.js @@ -0,0 +1,68 @@ +/* eslint-disable + prefer-destructuring, +*/ +import webpack from '@webpack-contrib/test-utils'; + +describe('limit option', () => { + test('{undefined}', async () => { + const config = { + loader: { + test: /\.png$/, + options: {}, + }, + }; + + const stats = await webpack('fixture.js', config); + const { source } = stats.toJson().modules[0]; + + expect(source).toMatchSnapshot(); + }); + + test('{Number} (big)', async () => { + const config = { + loader: { + test: /\.png$/, + options: { + limit: Number.MAX_SAFE_INTEGER, + }, + }, + }; + + const stats = await webpack('fixture.js', config); + const { source } = stats.toJson().modules[0]; + + expect(source).toMatchSnapshot(); + }); + + test('{Number} (less)', async () => { + const config = { + loader: { + test: /\.png$/, + options: { + limit: Number.MIN_SAFE_INTEGER, + }, + }, + }; + + const stats = await webpack('fixture.js', config); + const { source } = stats.toJson().modules[0]; + + expect(source).toMatchSnapshot(); + }); + + test('{String} (big)', async () => { + const config = { + loader: { + test: /\.png$/, + options: { + limit: '8192', + }, + }, + }; + + const stats = await webpack('fixture.js', config); + const { source } = stats.toJson().modules[0]; + + expect(source).toMatchSnapshot(); + }); +}); diff --git a/test/mimetype-option.test.js b/test/mimetype-option.test.js new file mode 100644 index 0000000..2326ac6 --- /dev/null +++ b/test/mimetype-option.test.js @@ -0,0 +1,36 @@ +/* eslint-disable + prefer-destructuring, +*/ +import webpack from '@webpack-contrib/test-utils'; + +describe('mimetype option', () => { + test('{undefined}', async () => { + const config = { + loader: { + test: /\.png$/, + options: {}, + }, + }; + + const stats = await webpack('fixture.js', config); + const { source } = stats.toJson().modules[0]; + + expect(source).toMatchSnapshot(); + }); + + test('{String}', async () => { + const config = { + loader: { + test: /\.png$/, + options: { + mimetype: 'image/x-custom', + }, + }, + }; + + const stats = await webpack('fixture.js', config); + const { source } = stats.toJson().modules[0]; + + expect(source).toMatchSnapshot(); + }); +}); diff --git a/test/options/__snapshots__/fallback.test.js.snap b/test/options/__snapshots__/fallback.test.js.snap deleted file mode 100644 index 89eb6ee..0000000 --- a/test/options/__snapshots__/fallback.test.js.snap +++ /dev/null @@ -1,11 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`Options fallback {String} 1`] = `"module.exports = __webpack_public_path__ + \\"9c87cbf3ba33126ffd25ae7f2f6bbafb.png\\";"`; - -exports[`Options fallback {String} 2`] = `"module.exports = __webpack_public_path__ + \\"file.png\\";"`; - -exports[`Options fallback {String} 3`] = `"module.exports = __webpack_public_path__ + \\"name-for-file-loader.png\\";"`; - -exports[`Options fallback {String} 4`] = `"module.exports = __webpack_public_path__ + \\"name-for-file-loader.png\\";"`; - -exports[`Options fallback {undefined} 1`] = `"module.exports = __webpack_public_path__ + \\"name-for-url-loader.png\\";"`; diff --git a/test/options/__snapshots__/limit.test.js.snap b/test/options/__snapshots__/limit.test.js.snap deleted file mode 100644 index 34455f7..0000000 --- a/test/options/__snapshots__/limit.test.js.snap +++ /dev/null @@ -1,5 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`Options limit {Number} 1`] = `"module.exports = \\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJYAAACWCAYAAAA8AXHiAAAAAXNSR0IArs4c6QAAGjNJREFUeAHtnQewFMXWx/uSxZxRUTGAAcyYnwpiJhgRFRCM6GeBZaklopaUWoUo9cwIqPhhAjGAWRQTRjAgijnnLOqnAgL3fv3rR+/r29uzO7t3e3Z2t0/V1uzM9Mx0n/nP6dPnnD4tRKDAgcCBwIFK4UCdq6JDhw5dZeHChRfKc4c2NDR0kNtWrnLhWE1woKGuru4X2dKX5fbym2666aU4rc4C1pAhQ/ZetmzZ7RJQG8W5QShTOxyQwKqXuPj3hhtueN7IkSPrc7W8uXny1FNPXa++vv55eXE783j4HziwnAMIoj3+T9Ibb7zxci6uNDNPSkk1VoJqdfNY+B84YHNAYuQyKYQ2s4+b+xlgyYJrSVHXxzwZ/gcORHCgjezZjos4pw630Cdlwa0kEjNA4/hqq60mLrzwQrXV5cK2tjggcSGmTp0qZs6caTe8s33A3De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+oaGB99dVX4o477hCffPJJrHfASM5UrIvReWQ4rmjbtq36AcLtttsu82xA9+mnnyq9jkEC/wFRFDHqRB979dVXlQSTQXJilVVWiSpeUccrEljYlqZPny6efvppp0nAfAOYB7bddlul22yzzTYCYPgi7t2xY0f169Onj5BpChRoGDzkkqYMMvQA47DDDhPdu3cXLmnpq94+7ltxwOLrnjJlimD0lYvWW2890aNHD7Hzzjurri1XWV/nkJB77723+mGaYEDxzDPPqG7U9UxGrXfddZfqJgcNGiQ23nhjV7GKOFYxwEJ5vvPOO8WLL76Yk7FMWUMpZojv+urpPuX0cPHWW28pSXbooYfmvF+pTmI4RYrJCQfiueeeEzNmzIgcsaKrjRo1Shx55JFi//33L1UVEr1PRQAL88G4ceME2yhC+T3qqKME3Z1N2vzw+uuvi59++ilzGqU9acI1BFjo7lDgH3jgAacEQze7++67xQcffCBOOOGEskndYvmTemChe6CgR422MAcgCfbbbz/B5EqTGC0++eSTjcwPzO7eYYcdlERDkS8XofvJCZ+qq542bZqYNWuWU1988803xSWXXCJOO+00sckmm5SrugU/N9XAevjhh5WSHtUqhurHHHNMo9naKMLoMnQ1WsIBPgyTu+yyi9hss82cXWTUM3wfx7QxYMAAseeee6oP6Isvvsh6JEbWMWPGKHC5JHLWBSk4kEpgAY7JkyerUZ+LRxgueRm77757o9MYSLkOPQpaY401lAKPAo0inWZCGo0YMUJgPMVSDw9MQmJff/31AqWejyTtlDpgYQuSWePEa6+95uQduhTdAqM+TXzR99xzT+YaFOXDDz9cdTN296ivSeMWcwW2LLroiRMnij///LNRNeHNrbfeqnSyAw88sNG5tO2kClh8pTfeeKNAr3AREur4448XLVu2zJx+/vnnlZRi1IgkY0QI0ys5bgq728UXXyxuuOEG8fnnn2fayh94xEeEcVXmS2h0Lk07qQLWbbfdFgkqmMjwWxPGx0mTJmWkFL43vvZqce6uvvrq4txzzxVjx45tNPjQ7b/vvvuUlR7dLI2UGmAxMkL62IQtql+/fmrUp8/hKhk/frygC0R3QophCK02QgIPGz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h/FVKqoW1zY3Q+sCBwIHK5cD/A4bJawZvxvyKAAAAAElFTkSuQmCC\\""`; diff --git a/test/options/__snapshots__/mimetype.test.js.snap b/test/options/__snapshots__/mimetype.test.js.snap deleted file mode 100644 index 9aeccfa..0000000 --- a/test/options/__snapshots__/mimetype.test.js.snap +++ /dev/null @@ -1,3 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`Options mimetype {String} 1`] = `"module.exports = \\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJYAAACWCAYAAAA8AXHiAAAAAXNSR0IArs4c6QAAGjNJREFUeAHtnQewFMXWx/uSxZxRUTGAAcyYnwpiJhgRFRCM6GeBZaklopaUWoUo9cwIqPhhAjGAWRQTRjAgijnnLOqnAgL3fv3rR+/r29uzO7t3e3Z2t0/V1uzM9Mx0n/nP6dPnnD4tRKDAgcCBwIFK4UCdq6JDhw5dZeHChRfKc4c2NDR0kNtWrnLhWE1woKGuru4X2dKX5fbym2666aU4rc4C1pAhQ/ZetmzZ7RJQG8W5QShTOxyQwKqXuPj3hhtueN7IkSPrc7W8uXny1FNPXa++vv55eXE783j4HziwnAMIoj3+T9Ibb7zxci6uNDNPSkk1VoJqdfNY+B84YHNAYuQyKYQ2s4+b+xlgyYJrSVHXxzwZ/gcORHCgjezZjos4pw630Cdlwa0kEjNA4/hqq60mLrzwQrXV5cK2tjggcSGmTp0qZs6caTe8s33A3DeBtLJ5gv8bbbRRAJXNlBrbb9asmejcORtDUm1q161bt8333XffDfr27buCzRYTWPa5sB84kJMDzZs3bybVpxV//fXXDQ8++OC1ZY+XsTIEYOVkXTgZlwP//PPP6gcddFBm4BeAFZdzoVxeDkh9bE3ZLSpjegBWXnaFAnE5IIFVJ7tFpasHYMXlWigXiwNS2W9NwQCsWOwKheJyoHXr1kqBD8CKy7FQriAOBGAVxK5QOC4HArDiciqUK4gDAVgFsSsUjsuBAKy4nArlCuJAAFZB7AqF43IgE90Q94JaKifdFGLRokVi6dKlolWrVqJNmzaiRYvAsjgYqFkuSe+8+OGHH8T333/f6LdgwQIFpsWLFwtCRmwCWNJWI1ZYYQWx1lpriXbt2jX6cSyQEDUDLOl5F19++aV4//331e/DDz8UgKdQQnrx++uvv8TPP/+s7mXeY9VVVxVbbLGF2HLLLdVvnXXWMU/XzP+qBhZgeu+998TLL78s5s2bJ/7++2/vL/b3338Xc+bMUT8etuaaa4qddtpJ7LHHHqJ9+/ben5+WB1QlsL799lvx0ksviVdeeUX89ttvZeX1L7/8Ip544gn1A1gAbNdddxVItmqmqgIW3dsjjzwi3nnnnZK8M3QprbBrRX7JkiVF3/vrr79WYb7333+/2G233cQhhxwiqrWrrApgzZ8/XwHqo48+Kuilr7zyyir8GgV83XXXVUo42xVXXFEp6DI6Mut+KP3oZnIGVCOln0EAOlwcvQ0d7YUXXlBStWvXrqJnz55igw02yHpWJR+oaGB99dVX4o477hCffPJJrHfASM5UrIvReWQ4rmjbtq36AcLtttsu82xA9+mnnyq9jkEC/wFRFDHqRB979dVXlQSTQXJilVVWiSpeUccrEljYlqZPny6efvppp0nAfAOYB7bddlul22yzzTYCYPgi7t2xY0f169Onj5BpChRoGDzkkqYMMvQA47DDDhPdu3cXLmnpq94+7ltxwOLrnjJlimD0lYvWW2890aNHD7Hzzjurri1XWV/nkJB77723+mGaYEDxzDPPqG7U9UxGrXfddZfqJgcNGiQ23nhjV7GKOFYxwEJ5vvPOO8WLL76Yk7FMWUMpZojv+urpPuX0cPHWW28pSXbooYfmvF+pTmI4RYrJCQfiueeeEzNmzIgcsaKrjRo1Shx55JFi//33L1UVEr1PRQAL88G4ceME2yhC+T3qqKME3Z1N2vzw+uuvi59++ilzGqU9acI1BFjo7lDgH3jgAacEQze7++67xQcffCBOOOGEskndYvmTemChe6CgR422MAcgCfbbbz/B5EqTGC0++eSTjcwPzO7eYYcdlERDkS8XofvJCZ+qq542bZqYNWuWU1988803xSWXXCJOO+00sckmm5SrugU/N9XAevjhh5WSHtUqhurHHHNMo9naKMLoMn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B7Hbkj7BJjor/tI+Z+xlzg/RXvS+D/eulfSYDNkDFrORAgQM2ByTgPraPmfsZEMnkEz9JUD1ongz/AwciOLBYLvrwUMQ5dTgDLPaktfl/pIhbkOuCcC5wQLq5rlqwYMFXuTjRCFgTJkz4ToLrMAmuL3NdFM7VJgckLuqlz/QWOa/zf/NxoBGwKCwnhM6S+tY28iZXyt+H8tA/+W4Szlc1Bxpk636VatLTsvs7Ti5acIX0jXIsJ+UNBJJJU9vKmKX2Oe8STgYOLOeABN2fcqb3t1kSy+aQnAoeJJbNlLAfyQE5WlzMybzAevbZZ5dKMfhX5J3CicCB5Rygi5Sx/soemhdYXCOnff8gA9bqAwcDB3JxQALrF7lEoOrh8upY+kboWtKA2k5Kr4xRVZ8L28ABGW69QE4U/lkO+JRiHxtYsK5v377N5chgDRm6u5L8tQzsrG0OSAzUSym1UM7h/FVKqoW1zY3Q+sCBwIHK5cD/A4bJawZvxvyKAAAAAElFTkSuQmCC\\""`; diff --git a/test/options/fallback.test.js b/test/options/fallback.test.js deleted file mode 100644 index 6b48f8f..0000000 --- a/test/options/fallback.test.js +++ /dev/null @@ -1,103 +0,0 @@ -/* eslint-disable - prefer-destructuring, -*/ -import webpack from '@webpack-contrib/test-utils'; - -describe('Options', () => { - describe('fallback', () => { - test('{String}', async () => { - const config = { - loader: { - test: /\.png$/, - options: { - limit: 100, - fallback: 'file-loader', - }, - }, - }; - - const stats = await webpack('fixture.js', config); - const { source } = stats.toJson().modules[0]; - - expect(source).toMatchSnapshot(); - }); - - test('{undefined}', async () => { - const config = { - loader: { - test: /\.png$/, - options: { - limit: 100, - name: 'name-for-url-loader.[ext]', - }, - }, - }; - - const stats = await webpack('fixture.js', config); - const { source } = stats.toJson().modules[0]; - - expect(source).toMatchSnapshot(); - }); - - // Version 1.0.1 passes options provided to url-loader to the fallback as well, so make sure that still works. - test('{String}', async () => { - const config = { - loader: { - test: /\.png$/, - options: { - limit: 100, - fallback: 'file-loader', - name: '[name].[ext]', - }, - }, - }; - - const stats = await webpack('fixture.js', config); - const { source } = stats.toJson().modules[0]; - - expect(source).toMatchSnapshot(); - }); - - // Test passing explicitly provided options to the fallback loader. - test('{String}', async () => { - const config = { - loader: { - test: /\.png$/, - options: { - limit: 100, - name: 'name-for-url-loader.[ext]', - fallback: { - loader: 'file-loader', - options: { - name: 'name-for-file-loader.[ext]', - }, - }, - }, - }, - }; - - const stats = await webpack('fixture.js', config); - const { source } = stats.toJson().modules[0]; - - expect(source).toMatchSnapshot(); - }); - - test('{String}', async () => { - const config = { - loader: { - test: /\.png$/, - options: { - limit: 100, - name: 'name-for-url-loader.[ext]', - fallback: 'file-loader?name=name-for-file-loader.[ext]', - }, - }, - }; - - const stats = await webpack('fixture.js', config); - const { source } = stats.toJson().modules[0]; - - expect(source).toMatchSnapshot(); - }); - }); -}); diff --git a/test/options/limit.test.js b/test/options/limit.test.js deleted file mode 100644 index 2516bb7..0000000 --- a/test/options/limit.test.js +++ /dev/null @@ -1,40 +0,0 @@ -/* eslint-disable - prefer-destructuring, -*/ -import webpack from '@webpack-contrib/test-utils'; - -describe('Options', () => { - describe('limit', () => { - test('{Number}', async () => { - const config = { - loader: { - test: /\.png$/, - options: { - limit: 100000, - }, - }, - }; - - const stats = await webpack('fixture.js', config); - const { source } = stats.toJson().modules[0]; - - expect(source).toMatchSnapshot(); - }); - - test('{String}', async () => { - const config = { - loader: { - test: /\.png$/, - options: { - limit: '100000', - }, - }, - }; - - const stats = await webpack('fixture.js', config); - const { source } = stats.toJson().modules[0]; - - expect(source).toMatchSnapshot(); - }); - }); -}); diff --git a/test/options/mimetype.test.js b/test/options/mimetype.test.js deleted file mode 100644 index 4bfa457..0000000 --- a/test/options/mimetype.test.js +++ /dev/null @@ -1,24 +0,0 @@ -/* eslint-disable - prefer-destructuring, -*/ -import webpack from '@webpack-contrib/test-utils'; - -describe('Options', () => { - describe('mimetype', () => { - test('{String}', async () => { - const config = { - loader: { - test: /\.png$/, - options: { - mimetype: 'image/png', - }, - }, - }; - - const stats = await webpack('fixture.js', config); - const { source } = stats.toJson().modules[0]; - - expect(source).toMatchSnapshot(); - }); - }); -}); diff --git a/test/utils/__snapshots__/normalizeFallback.test.js.snap b/test/utils/__snapshots__/normalizeFallback.test.js.snap index 34d1c77..142b0cd 100644 --- a/test/utils/__snapshots__/normalizeFallback.test.js.snap +++ b/test/utils/__snapshots__/normalizeFallback.test.js.snap @@ -3,14 +3,18 @@ exports[`normalizeFallback object 1`] = ` Object { "loader": "file-loader", - "query": undefined, + "options": Object { + "limit": 8192, + "name": "name-for-url-loader.[ext]", + }, } `; exports[`normalizeFallback object-with-options 1`] = ` Object { "loader": "file-loader", - "query": Object { + "options": Object { + "limit": 8192, "name": "name-for-file-loader.[ext]", }, } @@ -19,7 +23,8 @@ Object { exports[`normalizeFallback string 1`] = ` Object { "loader": "file-loader", - "query": Object { + "options": Object { + "limit": 8192, "name": "name-for-url-loader.[ext]", }, } @@ -28,14 +33,18 @@ Object { exports[`normalizeFallback string-with-query 1`] = ` Object { "loader": "file-loader", - "query": "?name=name-for-file-loader.[ext]", + "options": Object { + "limit": 8192, + "name": "name-for-file-loader.[ext]", + }, } `; exports[`normalizeFallback undefined 1`] = ` Object { "loader": "file-loader", - "query": Object { + "options": Object { + "limit": 8192, "name": "name-for-url-loader.[ext]", }, } diff --git a/test/utils/normalizeFallback.test.js b/test/utils/normalizeFallback.test.js index 1ea984b..3df1170 100644 --- a/test/utils/normalizeFallback.test.js +++ b/test/utils/normalizeFallback.test.js @@ -5,6 +5,7 @@ import normalizeFallback from '../../src/utils/normalizeFallback'; describe('normalizeFallback', () => { test('undefined', () => { + // eslint-disable-next-line no-undefined const result = normalizeFallback(undefined, { limit: 8192, name: 'name-for-url-loader.[ext]',