Files
30-seconds-of-code/node_modules/gatsby/dist/utils/webpack-helpers.js
2019-08-20 15:52:05 +02:00

13 lines
285 B
JavaScript

"use strict";
const path = require(`path`);
exports.chunkNamer = chunk => {
if (chunk.name) return chunk.name;
let n = [];
chunk.forEachModule(m => {
n.push(path.relative(m.context, m.userRequest));
});
return n.join(`_`);
};
//# sourceMappingURL=webpack-helpers.js.map