webpack/test/configCases/asset-modules/url-prefetch-preload-fetchp.../generate-warnings.js

9 lines
322 B
JavaScript

"use strict";
// This file is used to generate expected warnings during compilation
// Invalid fetchPriority value - should generate warning
const invalidPriorityUrl = new URL(/* webpackPrefetch: true */ /* webpackFetchPriority: "invalid" */ "./assets/images/priority-invalid.png", import.meta.url);
export default {};