Webpack: disable fullySpecified resolving

v1.x.x
Alex Gleason 2021-09-15 22:32:40 -05:00
rodzic eee0b92313
commit 3a784bc436
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 7211D1F99744FBB7
1 zmienionych plików z 9 dodań i 0 usunięć

Wyświetl plik

@ -6,12 +6,21 @@ const css = require('./css');
const assets = require('./assets');
const nodeModules = require('./node_modules');
// https://github.com/webpack/webpack/issues/11467
const disableFullySpecified = {
test: /\.m?js/,
resolve: {
fullySpecified: false,
},
};
// Webpack loaders are processed in reverse order
// https://webpack.js.org/concepts/loaders/#loader-features
// Lastly, process static files using file loader
module.exports = [
...assets,
css,
disableFullySpecified,
nodeModules,
babel,
git,