@regru/webpack-babel-multi-target-plugin
Version:
A Webpack plugin that works with Babel to allow deployment of ES2015 builds targeted to modern browsers, with an ES5 fallback for legacy browsers.
13 lines • 475 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
let devServerClientPath;
const DEV_SERVER_CLIENT_RELPATH = 'webpack-dev-server/client/index';
try {
devServerClientPath = require.resolve(DEV_SERVER_CLIENT_RELPATH, { paths: [process.cwd()] });
}
catch (err) {
// webpack-dev-server is not installed
devServerClientPath = DEV_SERVER_CLIENT_RELPATH;
}
exports.DEV_SERVER_CLIENT = devServerClientPath;
//# sourceMappingURL=constants.js.map