* Adds one or multiple entry points. If the parameter is not an object the * entry point(s) will be added to the default chunk named `main`. * * @param {object|string[]|string} entry * @see https://webpack.github.io/docs/configuration.html#entry
(entry)
| 75 | * @see https://webpack.github.io/docs/configuration.html#entry |
| 76 | */ |
| 77 | function entryPoint(entry) { |
| 78 | return (context, util) => |
| 79 | util.merge({ |
| 80 | entry: normalizeEntry(entry) |
| 81 | }) |
| 82 | } |
| 83 | |
| 84 | function normalizeEntry(entry) { |
| 85 | if (Array.isArray(entry)) { |
no test coverage detected
searching dependent graphs…