source: frontend/node_modules/@pmmmwh/react-refresh-webpack-plugin/lib/utils/getIntegrationEntry.js

Last change on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 13 days ago

Fix frontend appearance

  • Property mode set to 100644
File size: 606 bytes
RevLine 
[9af201e]1/**
2 * Gets entry point of a supported socket integration.
3 * @param {'wds' | 'whm' | 'wps' | string} integrationType A valid socket integration type or a path to a module.
4 * @returns {string | undefined} Path to the resolved integration entry point.
5 */
6function getIntegrationEntry(integrationType) {
7 let resolvedEntry;
8 switch (integrationType) {
9 case 'whm': {
10 resolvedEntry = 'webpack-hot-middleware/client';
11 break;
12 }
13 case 'wps': {
14 resolvedEntry = 'webpack-plugin-serve/client';
15 break;
16 }
17 }
18
19 return resolvedEntry;
20}
21
22module.exports = getIntegrationEntry;
Note: See TracBrowser for help on using the repository browser.