Files
scrypted/plugins/homekit/webpack.nodejs.config.js
George Talusan 3e94bdeb9a fix(homekit): bump to latest @homebridge/hap-nodejs and @homebridge/ciao to catch the loopback sender packet leak (#2029)
* fix(homekit): bump to latest @homebridge/hap-nodejs and @homebridge/ciao to catch the loopback sender packet leak

* remove dead .gitmodules
2026-06-01 15:40:41 -07:00

13 lines
507 B
JavaScript

const path = require('path');
const defaultConfig = require(process.env.SCRYPTED_DEFAULT_WEBPACK_CONFIG);
// @homebridge/hap-nodejs uses readFileSync(require.resolve('package.json'))
// transform it to a plain require() which webpack handles correctly.
defaultConfig.module.rules.push({
test: /node_modules\/@homebridge\/hap-nodejs\/dist\/lib\/model\/AccessoryInfo\.js$/,
loader: path.resolve(__dirname, 'webpack-accessory-info-loader.js'),
enforce: 'pre',
});
module.exports = defaultConfig;