mirror of
https://github.com/home-assistant/frontend.git
synced 2026-05-18 14:09:05 +01:00
103861bf71
Co-authored-by: Cursor <cursoragent@cursor.com>
13 lines
576 B
JavaScript
13 lines
576 B
JavaScript
/* global module */
|
|
// Browser-only replacement for core-js/internals/get-built-in-node-module.
|
|
// The original helper evaluates `Function('return require("...")')()`
|
|
// when it detects a Node environment, which causes a runtime
|
|
// ReferenceError on browsers (notably Safari 14) if environment
|
|
// detection mis-classifies the page. Since browser bundles never need to
|
|
// access Node built-in modules, return undefined unconditionally.
|
|
//
|
|
// Wired up via rspack `NormalModuleReplacementPlugin` in build-scripts/rspack.cjs.
|
|
module.exports = function () {
|
|
return undefined;
|
|
};
|