mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-13 07:04:53 +09:00
Make the config and link libraries compatible with packing for web with webpack. This would fail due to ws not being web compatible and config using a node function not available in the web shim for util.
8 lines
212 B
JavaScript
8 lines
212 B
JavaScript
"use strict";
|
|
// eslint-disable-next-line no-process-env
|
|
if (process.env.APP_ENV === "browser") {
|
|
module.exports = require("fast-deep-equal/es6");
|
|
} else {
|
|
module.exports = require("util").isDeepStrictEqual;
|
|
}
|