"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); const InterpolateHtmlPlugin_1 = __importDefault(require("react-dev-utils/InterpolateHtmlPlugin")); const env_1 = require("../env"); /** * Add variables to the `index.html`. * * @category plugins */ class InterpolateHtmlPlugin extends InterpolateHtmlPlugin_1.default { } exports.default = InterpolateHtmlPlugin; InterpolateHtmlPlugin.fromEnv = (env, htmlWebpackPlugin) => { var _a, _b; const config = env.config || (0, env_1.getConfig)(env); const { publicPath } = (0, env_1.getPublicPaths)(env); // @ts-ignore return new InterpolateHtmlPlugin(htmlWebpackPlugin, { WEB_PUBLIC_URL: publicPath, // @ts-ignore Type 'string | undefined' is not assignable to type 'string'. WEB_TITLE: (_a = config.web) === null || _a === void 0 ? void 0 : _a.name, LANG_ISO_CODE: (_b = config.web) === null || _b === void 0 ? void 0 : _b.lang, // These are for legacy ejected web/index.html files NO_SCRIPT: `
`, ROOT_ID: 'root', }); }; //# sourceMappingURL=ExpoInterpolateHtmlPlugin.js.map