I recently updated to Webpack 5 from Webpack 4, earlier I had a function on window object in index.js
such that it looked something like
index.js
window.someFunction = function (...arguments) {
// function body
}
when this index.js
gets bundled I can find this same function in mon.bundle.js
file.
and my index.html
looks something like this
index.html
<head>
// rest of the head stuff
<script src="./dist/mon.bundle.js"></script>
</head>
<body>
<script type="text/javascript">
someFunction(); // calling someFunction from the window object
// Also tried using window.someFunction() still doesn't work
</script>
</body>
In console I get ReferenceError: someFunction is not defined
and I am not able to print the function defination in chrome console when I type window.someFunction
which was working in Webpack 4 as expected.
How do I attach my functions to window object in Webpack 5, and how do I go about accessing it?
webpack.config.js
const path = require("path");
const webpack = require("webpack");
module.exports = (env) => {
return {
mode: "development",
devtool: "source-map",
entry: {
mon: "./index.js",
},
output: {
pathinfo: true,
path: path.join(__dirname, "dist"),
filename: "[name].bundle.js",
},
plugins: [
new webpack.DefinePlugin({
"process.env.NODE_ENV": JSON.stringify("development"),
}),
],
module: {
rules: [
{
test: /\.(js|jsx)$/,
exclude: /(node_modules|bower_ponents)/,
use: {
loader: "babel-loader",
options: {
cacheDirectory: true,
babelrc: false,
presets: [
[
"@babel/env",
{
modules: false,
loose: true,
targets: {
browsers: [">0.25%", "not ie 11", "not op_mini all"],
},
},
],
"@babel/react",
],
plugins: [
[
"@babel/plugin-proposal-class-properties",
{
loose: true,
},
],
["@babel/plugin-transform-runtime"],
],
},
},
},
{
test: /\.css$/,
include: /node_modules/,
use: [{ loader: "style-loader" }, { loader: "css-loader" }],
},
],
},
resolve: {
extensions: [".js", ".jsx"],
modules: [path.resolve(__dirname, "node_modules")],
fallback: {
buffer: false,
fs: false,
tls: false,
net: false,
path: false,
zlib: false,
http: false,
https: false,
stream: false,
crypto: false,
},
},
optimization: {
// namedModules: true,
// namedChunks: true,
minimize: false,
// minimizer: [new TerserPlugin()],
runtimeChunk: "single",
moduleIds: "deterministic",
chunkIds: "deterministic",
nodeEnv: "development",
flagIncludedChunks: false,
concatenateModules: false,
splitChunks: {
hidePathInfo: false,
minSize: 20000,
maxAsyncRequests: Infinity,
maxInitialRequests: Infinity,
chunks: "all",
// maxSize: 0,
minChunks: 1,
automaticNameDelimiter: "~",
cacheGroups: {
mons: {
test: /[\\/]node_modules[\\/]/,
name: "other.bundle",
chunks: "all",
minChunks: 2,
},
defaultVendors: {
test: /[\\/]node_modules[\\/]/,
priority: -10,
},
default: {
minChunks: 2,
priority: -20,
reuseExistingChunk: true,
},
},
},
emitOnErrors: true,
checkWasmTypes: false,
removeAvailableModules: false,
},
performance: {
hints: "warning",
},
stats: {
all: false,
assets: true,
builtAt: true,
cachedAssets: false,
cachedModules: true,
chunkGroups: true,
colors: true,
env: true,
errors: true,
hash: true,
logging: "info",
timings: true,
modules: true,
outputPath: true,
performance: true,
errorsCount: true,
warnings: false,
warningsCount: true,
publicPath: true,
reasons: true,
ids: true,
version: true,
},
cache: {
type: "filesystem",
version: "1.0.0",
store: "pack",
name: "AppBuildCache",
maxMemoryGenerations: 1,
idleTimeout: 60000,
idleTimeoutAfterLargeChanges: 1000,
idleTimeoutForInitialStore: 0,
hashAlgorithm: "md4",
cacheLocation: path.resolve(__dirname, ".cache"),
},
externals: [
{
react: "React",
"react-dom": "ReactDOM",
jquery: "jQuery",
},
],
};
};
I recently updated to Webpack 5 from Webpack 4, earlier I had a function on window object in index.js
such that it looked something like
index.js
window.someFunction = function (...arguments) {
// function body
}
when this index.js
gets bundled I can find this same function in mon.bundle.js
file.
and my index.html
looks something like this
index.html
<head>
// rest of the head stuff
<script src="./dist/mon.bundle.js"></script>
</head>
<body>
<script type="text/javascript">
someFunction(); // calling someFunction from the window object
// Also tried using window.someFunction() still doesn't work
</script>
</body>
In console I get ReferenceError: someFunction is not defined
and I am not able to print the function defination in chrome console when I type window.someFunction
which was working in Webpack 4 as expected.
How do I attach my functions to window object in Webpack 5, and how do I go about accessing it?
webpack.config.js
const path = require("path");
const webpack = require("webpack");
module.exports = (env) => {
return {
mode: "development",
devtool: "source-map",
entry: {
mon: "./index.js",
},
output: {
pathinfo: true,
path: path.join(__dirname, "dist"),
filename: "[name].bundle.js",
},
plugins: [
new webpack.DefinePlugin({
"process.env.NODE_ENV": JSON.stringify("development"),
}),
],
module: {
rules: [
{
test: /\.(js|jsx)$/,
exclude: /(node_modules|bower_ponents)/,
use: {
loader: "babel-loader",
options: {
cacheDirectory: true,
babelrc: false,
presets: [
[
"@babel/env",
{
modules: false,
loose: true,
targets: {
browsers: [">0.25%", "not ie 11", "not op_mini all"],
},
},
],
"@babel/react",
],
plugins: [
[
"@babel/plugin-proposal-class-properties",
{
loose: true,
},
],
["@babel/plugin-transform-runtime"],
],
},
},
},
{
test: /\.css$/,
include: /node_modules/,
use: [{ loader: "style-loader" }, { loader: "css-loader" }],
},
],
},
resolve: {
extensions: [".js", ".jsx"],
modules: [path.resolve(__dirname, "node_modules")],
fallback: {
buffer: false,
fs: false,
tls: false,
net: false,
path: false,
zlib: false,
http: false,
https: false,
stream: false,
crypto: false,
},
},
optimization: {
// namedModules: true,
// namedChunks: true,
minimize: false,
// minimizer: [new TerserPlugin()],
runtimeChunk: "single",
moduleIds: "deterministic",
chunkIds: "deterministic",
nodeEnv: "development",
flagIncludedChunks: false,
concatenateModules: false,
splitChunks: {
hidePathInfo: false,
minSize: 20000,
maxAsyncRequests: Infinity,
maxInitialRequests: Infinity,
chunks: "all",
// maxSize: 0,
minChunks: 1,
automaticNameDelimiter: "~",
cacheGroups: {
mons: {
test: /[\\/]node_modules[\\/]/,
name: "other.bundle",
chunks: "all",
minChunks: 2,
},
defaultVendors: {
test: /[\\/]node_modules[\\/]/,
priority: -10,
},
default: {
minChunks: 2,
priority: -20,
reuseExistingChunk: true,
},
},
},
emitOnErrors: true,
checkWasmTypes: false,
removeAvailableModules: false,
},
performance: {
hints: "warning",
},
stats: {
all: false,
assets: true,
builtAt: true,
cachedAssets: false,
cachedModules: true,
chunkGroups: true,
colors: true,
env: true,
errors: true,
hash: true,
logging: "info",
timings: true,
modules: true,
outputPath: true,
performance: true,
errorsCount: true,
warnings: false,
warningsCount: true,
publicPath: true,
reasons: true,
ids: true,
version: true,
},
cache: {
type: "filesystem",
version: "1.0.0",
store: "pack",
name: "AppBuildCache",
maxMemoryGenerations: 1,
idleTimeout: 60000,
idleTimeoutAfterLargeChanges: 1000,
idleTimeoutForInitialStore: 0,
hashAlgorithm: "md4",
cacheLocation: path.resolve(__dirname, ".cache"),
},
externals: [
{
react: "React",
"react-dom": "ReactDOM",
jquery: "jQuery",
},
],
};
};
Share
Improve this question
edited Jan 15, 2022 at 15:22
Miraaj Kadam
asked Aug 24, 2021 at 8:42
Miraaj KadamMiraaj Kadam
792 silver badges5 bronze badges
4
-
1
How did you generate the
index.html
? Do you usehtml-webpack-plugin
? – Lin Du Commented Aug 24, 2021 at 10:23 -
@slideshowp2 no the index.html isn't generated, The
index.html
resides in the root with thescript
with src pointing to the generatedmon.bundle.js
. – Miraaj Kadam Commented Aug 24, 2021 at 11:29 - Can't reproduce the issue. Can you create a minimal, reproducible example? – Lin Du Commented Aug 24, 2021 at 11:32
- I have added the steps to reproduce, however, I am not able to reproduce the issue that I am encountering in the real project in the example files, everything seems to be working fine. Will check again and update. – Miraaj Kadam Commented Aug 24, 2021 at 13:03
5 Answers
Reset to default 2Try to add node.global: true to your config:
node: {
global: true
}
DoneDel0's ment was the correct solution for me.
node: {
global: true
}
The reasoning behind this is webpack 5 does no longer include a polyfills for node modules, so you have to manually set each.
https://webpack.js/configuration/node/#nodeglobal
However its good to note that the docs does suggest using ProvidePlugin instead of global.
Thank you for the answers, the issue turned out exactly to be due to missing polyfills for node core modules.
In my case the I had to provide polyfill for process
using ProvidePlugin
.
I did the same by adding below to my config
new webpack.ProvidePlugin({
process: "process/browser",
})
node: {(window.webpackJsonp=window.webpackJsonp||[]).push([[7],{1099:function(e,a,t){"use strict";var n=t(3)._register("cs"),o=function(e){var a=String(e).split("."),t=a[0],n=!a[1];return 1==e&&n?"one":t>=2&&t<=4&&n?"few":n?"other":"many"};function r(e,a,t,n,r){switch(o(e)){case"one":return a;case"few":return t;case"many":return n;default:return r}}function i(e,a){for(var t=0;t<a.length;t++){var n=a[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}n("bd4c3d18","St\xe1hnout znovu"),n("dae57baa","vypl\u0148te tento formul\xe1\u0159"),n("h213e37d",function(e){return"Dobr\xfd den @"+e.userName+","}),n("adac1d25","Zde jsou informace z va\u0161eho archivu, kter\xe9 by pro v\xe1s mohly b\xfdt neju\u017eite\u010dn\u011bj\u0161\xed."),n("e792ed49","Data o hlavn\xed str\xe1nce se nepoda\u0159ilo na\u010d\xedst"),n("db5927dc","Rychl\xe9 statistick\xe9 p\u0159ehledy"),n("d3c63555","Zde je stru\u010dn\xfd pohled na p\xe1r \u010d\xedsel z va\u0161eho archivu:"),n("f0472206","README"),n("jfd00c34","tuto slo\u017eku"),n("c4f8ac47","Tweety"),n("b5f11b36","V\u010detn\u011b upraven\xfdch verz\xed"),n("fbffbecb","Lajky"),n("ecdaf192","Blokovan\xe9 \xfa\u010dty"),n("e5c608f9","Skryt\xe9 \xfa\u010dty"),n("df98e6d9","Seznamy"),n("d183def2","Okam\u017eiky"),n("dad4c74b","Zobrazit"),n("ie98573b","Informace nelze zobrazit. Pokud je chcete zobrazit, znovu rozbalte archiv."),n("e2c00a0e",function(e){return"\u24b8 "+e.year+" Twitter, Inc."}),n("a6aeafeb","Centrum Twitteru pro ochranu soukrom\xed"),n("i3cb94db","V\u017edy byste m\u011bli v\u011bd\u011bt, jak\xe1 data od v\xe1s Twitter shroma\u017e\u010fuje a jak je pou\u017e\xedv\xe1."),n("fd7d9019","Dal\u0161\xed informace"),n("cd09a3c2","Mo\u017enosti ochrany soukrom\xed"),n("ic7e322d","M\xe1te k dispozici \u0161irokou \u0159adu nastaven\xed soukrom\xed, aby pro v\xe1s pou\u017e\xedv\xe1n\xed Twitteru bylo co nejp\u0159\xedjemn\u011bj\u0161\xed."),n("deff5ed4","Jazyk"),n("e2dfe155","Zm\u011bnit jazyk zobrazen\xed"),n("c586bb24","Vyberte si up\u0159ednost\u0148ovan\xfd jazyk nadpis\u016f, tla\u010d\xedtek a dal\u0161\xedho textu na Twitteru pro tento \xfa\u010det. Toto nastaven\xed nezm\u011bn\xed jazyk obsahu zobrazen\xe9ho na va\u0161\xed \u010dasov\xe9 ose."),n("ef35dfbf","Jazyk zobrazen\xed"),n("e4cb8f8f","Ulo\u017eit"),n("b363cf17",function(e){return"Jeliko\u017e mno\u017estv\xed dat ve va\u0161em archivu p\u0159esahuje "+e.size+" GB, toto zobrazen\xed nen\xed k dispozici. Archiv st\xe1le m\u016f\u017eete zobrazit ve slo\u017ece s daty."}),n("g0619214","V\xe1\u0161 archiv je p\u0159\xedli\u0161 velk\xfd na to, aby ho zde bylo mo\u017en\xe9 zobrazit."),n("bd550e36","slo\u017ece s daty"),n("ab73e5d3",function(e){return e.size+" KB"}),n("fe25ac98",function(e){return e.size+" MB"}),n("dd55750a","V\xe1\u0161 archiv obsahuje v\u0161echna data o \xfa\u010dtu vytvo\u0159en\xe1 a\u017e do okam\u017eiku vygenerov\xe1n\xed archivu."),n("j58dfe39","Datum vygenerov\xe1n\xed"),n("b09970bd","Odhadovan\xe1 velikost"),n("b3b293a1","Skr\xfdt nab\xeddku"),n("bacb0ed2","Hlavn\xed str\xe1nka"),n("b747cc48","\xda\u010det"),n("fc594176","Soukrom\xe9 zpr\xe1vy"),n("b4d1578d","Zabezpe\u010den\xed"),n("a03760ff","P\u0159izp\u016fsoben\xed"),n("b449308c","Reklamy"),n("b0fc166e","Odpov\u011bdi"),n("f2017ac5","Retweety"),n("ec451555","Komunitn\xed tweety"),n("e6580b36","Dal\u0161\xed"),n("g4c9627f","P\u0159edchoz\xed"),n("ec6e8853","Zp\u011bt"),n("fdfb88b8","Hledat tweety"),n("f12ed169","Prohledat filtry"),n("ce97ada1","Vymazat filtry"),n("e511b066","V\u0161echny tweety"),n("bcfc167d","Pouze m\xe9dia"),n("a38c92f2","Pouze text"),n("cb360050","Od nejnov\u011bj\u0161\xedch"),n("f5228b07","Od nejstar\u0161\xedch"),n("ed5d96a0","Uk\xe1zat"),n("ecd8d7d3","Se\u0159adit podle data"),n("bea20d4d","Data"),n("fdb1297d","Od "),n("gd4ddeb4","Do "),n("cf93fb1b","P\u016fvodn\xed"),n("i2d95dbe","ID"),n("c4002702","Nejnov\u011bj\u0161\xed"),n("e407cf47",function(e){return"U\u017eivatel "+e.displayName+" tento Tweet upravil"}),n("efc5dd77","Zobrazit na Twitteru"),n("f3aabb50","Zat\xedm jste nic netweetnuli."),n("af9c4c44","P\u0159ehr\xe1t video"),n("db70b04a","Obecn\xe9 informace"),n("b22ba8dc","Profil"),n("a0d100f8","Propojen\xe9 aplikace"),n("haf26e7a","Kontakty"),n("h1ab74c0","Relace"),n("eb4f1c12","Historie p\u0159\xedstupu k \xfa\u010dtu"),n("ac6543d2",function(e){return"Vytvo\u0159eno pomoc\xed "+e.createdVia}),n("f5539b09",function(e){return"Zm\u011bna "+e.changedAt}),n("d79553fc","Chr\xe1nit"),n("a38009bb","P\u0159estat chr\xe1nit"),n("ebb5550a","Akce: "),n("a450ed39","Toto jsou obecn\xe9 informace souvisej\xedc\xed s va\u0161\xedm \xfa\u010dtem."),n("a6368dcb","Nebyla nalezena \u017e\xe1dn\xe1 data."),n("gc611216","Vytvo\u0159en\xed \xfa\u010dtu"),n("b858720c","ID \xfa\u010dtu"),n("jddcdfb5","\u010casov\xe9 p\xe1smo"),n("f562baf9","IP adresa vytvo\u0159en\xed u\u017eivatele"),n("d0a2cd65","E-mail"),n("ca948b38","Telefonn\xed \u010d\xedslo"),n("a0b1619f","Informace o v\u011bku"),n("h75fecfe","Ov\u011b\u0159eno"),n("a97eb7e8","Ano"),n("a6adcbe2","Ne"),n("d0c13b0f","Zm\u011bny e-mailu"),n("f3b7e4c1","Chr\xe1n\u011bn\xe1 historie"),n("i47fd245","\u017d\xe1dn\xe1 data"),n("ea80569b"," do "),n("ge84fa17","Organizace"),n("e2171091","Ochrana osobn\xedch \xfadaj\u016f"),n("dbc530a7","Smluvn\xed podm\xednky"),n("e8e530e9","Jm\xe9no"),n("gff6e204","Popis"),n("hb589b3e","Opr\xe1vn\u011bn\xed"),n("g652ba51","Ud\u011bleno"),n("c2526d37","Nem\xe1te \u017e\xe1dn\xe9 propojen\xe9 aplikace"),n("ce84bf94","centru n\xe1pov\u011bdy"),n("a75a33f3","Bu\u010f je v\xe1\u0161 adres\xe1\u0159 pr\xe1zdn\xfd, nebo k n\u011bmu Twitter nem\xe1 p\u0159\xedstup."),n("eef7aa2c","Nebyly nalezeny \u017e\xe1dn\xe9 kontakty"),n("e0988a03","zru\u0161it jej\xed p\u0159\xedstup"),n("f3ae1a6f","Dal\u0161\xed informace"),n("f70c934a","U\u017eivatelsk\xe9 jm\xe9no"),n("effec96f","Zobrazovan\xfd n\xe1zev \xfa\u010dtu"),n("hfa811da","Sleduj\xedc\xed"),n("fd87318c","Sledovan\xed"),n("g81fed0b","O mn\u011b"),n("a6766a9e","Webov\xe1 str\xe1nka"),n("bfe77df7","Poloha"),n("c4abb442","Zm\u011bny jm\xe9na"),n("i7d6b90c","Avatar"),n("d2aa6664","Obr\xe1zek z\xe1hlav\xed"),n("h2a67073","chr\xe1n\u011bn\xe9 tweety"),n("b2f2c9a2","Zobrazit podrobnosti"),n("f7a8b5e7","Skr\xfdt podrobnosti"),n("f298d79c","Zobrazit reklamu na Twitteru"),n("f762d354","Sponzorovan\xfd trend"),n("dc2b9300","V\u011bk"),n("b4cf4994","Kl\xed\u010dov\xe1 slova"),n("a385a137","Okruhy u\u017eivatel\u016f p\u0159izp\u016fsoben\xe9 na m\xedru (seznamy)"),n("a98a677f","Modely za\u0159\xedzen\xed"),n("caf7be6e","Ud\xe1losti"),n("bc0e1f74","Pohlav\xed"),n("fccf8c3b","Polohy"),n("b600f91b","Jazyky"),n("gaa6f4f0","Oper\xe1to\u0159i"),n("fccc5d35","Platformy"),n("b24af003","Verze OS"),n("c0ea46a6","Chov\xe1n\xed"),n("i40276f4","U\u017eivatel\xe9 podobn\xed sleduj\xedc\xedmu"),n("acdf7e38","Filmy a seri\xe1ly"),n("cd7eeb0c","Zac\xedlen\xed pouze na Wi-Fi"),n("a9de604a","Ud\xe1losti s \u017eiv\xfdm videem"),n("cc9c1e84","Vydavatel obsahu"),n("b9c99219","T\xe9mata konverzace"),n("i87ec85e","Zm\u011bna zac\xedlen\xed podle typu zapojen\xed"),n("fc53fe65","Zm\u011bna zac\xedlen\xed na aktivn\xed u\u017eivatele"),n("d2fb9b2a","Zm\u011bna zac\xedlen\xed na u\u017eivatele podobn\xe9 aktivn\xedm u\u017eivatel\u016fm"),n("g78431ba","Zm\u011bna zac\xedlen\xed kampan\u011b na u\u017eivatele podobn\xe9 aktivn\xedm u\u017eivatel\u016fm"),n("e730263c","Zac\xedlen\xed na nov\xe1 za\u0159\xedzen\xed"),n("d5b2d63b","Flexibiln\xed c\xedlen\xed na okruhy u\u017eivatel\u016f"),n("b8790f32","Nezn\xe1m\xe9"),n("f75d1985","Toto jsou reklamy, kter\xe9 jste mo\u017en\xe1 vid\u011bli na Twitteru. Uvedeny jsou informace, jako nap\u0159\xedklad @u\u017eivatelsk\xe9_jm\xe9no inzerenta a obsah reklamy. Dal\u0161\xed informace v\u010detn\u011b d\u016fvodu zobrazen\xed reklamy v\xe1m zobraz\xedte kliknut\xedm na \u201eZobrazit podrobnosti\u201c."),n("e154a141","Hledat reklamy"),n("c13928a5","O reklam\xe1ch tu nejsou \u017e\xe1dn\xe9 informace, pravd\u011bpodobn\u011b proto, \u017ee v\xe1m \u017e\xe1dn\xe9 reklamy je\u0161t\u011b nebyly zobrazeny."),n("a5178376","Hledat zpr\xe1vy"),n("a1c1e53e","Je\u0161t\u011b jste neodeslali ani neobdr\u017eeli \u017e\xe1dn\xe9 soukrom\xe9 zpr\xe1vy."),n("eeb5bf00","Odeslali jste video."),n("d7edf1b1","Odeslali jste fotku."),n("j1b5f5c7","Konverzaci se nepoda\u0159ilo naj\xedt."),n("b46514f7","Nevybrali jste \u017e\xe1dnou zpr\xe1vu."),n("h6c25993","Zapojili jste se do konverzace."),n("ed8d5620","Hledat lajky"),n("h117ca98","Zat\xedm nem\xe1te \u017e\xe1dn\xe9 lajky."),n("fd73f6e8","Vlastn\xed"),n("h63f51be","Odeb\xedr\xe1"),n("fd8591d2","\u010clen"),n("h4fd72b9","Hledat seznamy"),n("h1aadb42","Je\u0161t\u011b jste nevytvo\u0159ili \u017e\xe1dn\xe9 seznamy."),n("g174d5cb","Je\u0161t\u011b jste se nep\u0159ihl\xe1sili k odb\u011bru \u017e\xe1dn\xe9ho seznamu."),n("hc086ec0","Je\u0161t\u011b jste nebyli p\u0159id\xe1ni na \u017e\xe1dn\xfd seznam."),n("hd84f30c","Zat\xedm jste nevytvo\u0159ili \u017e\xe1dn\xe9 okam\u017eiky."),n("f1f4be42","Okam\u017eik se nepoda\u0159ilo naj\xedt."),n("a4fa5e4d","Okam\u017eik"),n("fe0c78b7","Zablokov\xe1no"),n("baaf063b","Nikoho jste neskryli."),n("b2e67bb8","Nikoho neblokujete."),n("fcb8139f","Zobrazit seznam na Twitteru"),n("hbc3d07a","nastaven\xed"),n("h88485ae",function(e){return""+e.formattedCount}),n("c901f4b8",function(e){return"skryt"+r(e.count,"\xfd \xfa\u010det","\xe9 \xfa\u010dty","\xe9 \xfa\u010dty","\xfdch \xfa\u010dt\u016f")}),n("a8aeb17c",function(e){return"zablokovan"+r(e.count,"\xfd \xfa\u010det","\xe9 \xfa\u010dty","\xe9 \xfa\u010dty","\xfdch \xfa\u010dt\u016f")}),n("eb2a0213","Tweety a zamy\u0161len\xed Fleet"),n("h9fa2c25","Zamy\u0161len\xed Fleet"),n("f12d439f","Soukrom\xe9 zpr\xe1vy"),n("c65cffee","Demografie"),n("dc8c70b9","Z\xe1jmy"),n("hd7191b2","Seznamy inzerent\u016f"),n("d5924f36","Ulo\u017een\xe1 hled\xe1n\xed"),n("i91e3f1b","Nena\u0161li jsme \u017e\xe1dn\xe9 demografick\xe9 \xfadaje."),n("f12a13a0","Datum narozen\xed"),n("e7d7128c","M\xe9 \xfadaje na Twitteru"),n("fc1f2690"," (vypnuto)"),n("bac9bfd9","S va\u0161\xedm \xfa\u010dtem je\u0161t\u011b nejsou spojeny \u017e\xe1dn\xe9 z\xe1jmy."),n("d6281c2a","Sledov\xe1n\xed zru\u0161eno"),n("aae750cb","upravit"),n("ac8b1c8a","Toto jsou inzerenti, kte\u0159\xed v\xe1s p\u0159idali do jednoho ze sv\xfdch okruh\u016f u\u017eivatel\u016f. Okruhy u\u017eivatel\u016f na m\xedru jsou \u010dasto vytv\xe1\u0159eny ze seznamu e-mailov\xfdch adres nebo historie proch\xe1zen\xed a chov\xe1n\xed na webu. Inzerent\u016fm pom\xe1haj\xed oslovit potenci\xe1ln\xed z\xe1kazn\xedky nebo lidi, kte\u0159\xed u\u017e projevili z\xe1jem o jejich v\xfdrobky, produkty nebo slu\u017eby."),n("j69ff9c4","Nena\u0161li jsme \u017e\xe1dn\xe1 data nastaven\xed reklam."),n("g443f4cb","V\xe1\u0161 \xfa\u010det je\u0161t\u011b nen\xed spojen s \u017e\xe1dn\xfdmi m\xedsty."),n("b2289376","nastaven\xedch informac\xed o poloze"),n("h27aca22","S va\u0161\xedm \xfa\u010dtem je\u0161t\u011b nejsou spojena \u017e\xe1dn\xe1 ulo\u017een\xe1 hled\xe1n\xed.");var d=t(0);n("I18NFormatMessage",function(e){var a,t,n,o,r;function c(){return e.apply(this,arguments)||this}return t=e,(a=c).prototype=Object.create(t.prototype),a.prototype.constructor=a,a.__proto__=t,c.prototype.render=function(){return d.createElement.apply(d,this[this.props.$i18n].reduce(this.templateReducer,[d.Fragment,null]))},n=c,(o=[{key:"a68bfcab",get:function(){return["N\u011bco se pokazilo, ale nem\u011bjte obavy \u2013 poj\u010fme to zkusit je\u0161t\u011b jednou. Pokud se v\xe1m i nad\xe1le budou zobrazovat chyby, ","."]}},{key:"aeedc89f",get:function(){return["Tyto informace nep\u0159edstavuj\xed v\u0161echna data z va\u0161eho archivu. Pokud tedy chcete zobrazit v\u0161echna data, kter\xe1 jsou v n\u011bm zahrnut\xe1, otev\u0159ete slo\u017eku s daty. Vysv\u011btlen\xed k jednotliv\xfdm \xfadaj\u016fm je k dispozici v souboru ",", kter\xfd se nach\xe1z\xed ve stejn\xe9 slo\u017ece."]}},{key:"b192a8c3",get:function(){return["Jeliko\u017e tyto informace nejsou v\u0161echna data z va\u0161eho archivu, pokud chcete zobrazit v\u0161echna do n\u011bj zahrnut\xe1 data, otev\u0159ete ",". Vysv\u011btlen\xed ke ka\u017ed\xe9mu d\xedlu je k dispozici v souboru ",", kter\xfd se nach\xe1z\xed ve stejn\xe9 slo\u017ece."]}},{key:"h593f704",get:function(){return["Jeliko\u017e mno\u017estv\xed dat ve va\u0161em profilu p\u0159esahuje "+this.props.size+" GB, toto zobrazen\xed nen\xed k dispozici. Archiv st\xe1le m\u016f\u017eete zobrazit ve ","."]}},{key:"dc274341",get:function(){return["Tyto aplikace maj\xed opr\xe1vn\u011bn\xed k p\u0159\xedstupu k ve\u0161ker\xfdm nebo n\u011bkter\xfdm \xfadaj\u016fm va\u0161eho \xfa\u010dtu. Uveden je rovn\u011b\u017e typ ud\u011blen\xe9ho opr\xe1vn\u011bn\xed a datum jeho ud\u011blen\xed. Dal\u0161\xed informace o aplikac\xedch t\u0159et\xedch stran a relac\xedch p\u0159ihl\xe1\u0161en\xed najdete v ","."]}},{key:"d3d0737a",get:function(){return["Toto jsou kontakty, kter\xe9 jste nahr\xe1li, abyste na Twitteru na\u0161li lidi, kter\xe9 zn\xe1te, nebo personalizovali zobrazovan\xfd obsah. Jak nahr\xe1t a spravovat kontakty najdete v ","."]}},{key:"e48e7ad9",get:function(){return["Toto jsou posledn\xed \u010dasy p\u0159\xedstupu na v\xe1\u0161 \xfa\u010det. Pokud vid\xedte jakoukoliv podez\u0159elou aktivitu aplikace, m\u011bli byste ",". "]}},{key:"b4f3e44c",get:function(){return["Zde je zobrazena historie va\u0161ich p\u0159ihl\xe1\u0161en\xed v\u010detn\u011b aplikac\xed propojen\xfdch s va\u0161\xedm \xfa\u010dtem, a m\xedsta, na kter\xfdch jste Twitter pou\u017e\xedvali. V n\u011bkter\xfdch p\u0159\xedpadech se poloha IP adresy m\u016f\u017ee od skute\u010dn\xe9 polohy li\u0161it. Dal\u0161\xed informace najdete v ","."]}},{key:"b2e7db9d",get:function(){return["Toto je dostupn\xe9 na va\u0161em profilu. Pokud m\xe1te n\u011bjak\xe9 ",", \u010d\xe1st tohoto obsahu m\u016f\u017ee b\xfdt dostupn\xe1 pouze va\u0161im sleduj\xedc\xedm."]}},{key:"b0d29d01",get:function(){return["U\u017eivatel "," odeslal video."]}},{key:"a0be60c5",get:function(){return["U\u017eivatel "," odeslal fotku."]}},{key:"edc8b99e",get:function(){return["Zm\u011bnili jste n\xe1zev skupiny na: ","."]}},{key:"e9fdcd1a",get:function(){return["U\u017eivatel "," zm\u011bnil n\xe1zev skupiny na: ","."]}},{key:"gbde7c07",get:function(){return["U\u017eivatel "," p\u0159idal u\u017eivatele: "]}},{key:"d668cefe",get:function(){return["Bylo p\u0159id\xe1no n\u011bkolik \xfa\u010dastn\xedk\u016f (",")"]}},{key:"jfc6c37c",get:function(){return["P\u0159idali jste u\u017eivatele: ","."]}},{key:"jd175a41",get:function(){return["Zb\xfdv\xe1: "]}},{key:"f89a35dd",get:function(){return[""," v\xe1s p\u0159idal(a)."]}},{key:"bad364ba",get:function(){return["Toto jsou \xfa\u010dty, kter\xe9 jste skryli. Skryt\xe9 \xfa\u010dty m\u016f\u017eete kdykoli spravovat v ","."]}},{key:"dad3fe4b",get:function(){return["Toto jsou \xfa\u010dty, kter\xe9 jste zablokovali. Zablokovan\xe9 \xfa\u010dty m\u016f\u017eete kdykoli spravovat v ","."]}},{key:"c1f9cb79",get:function(){return[""," "]}},{key:"fd55c421",get:function(){return[""," "]}},{key:"c42254fb",get:function(){return["Toto jsou demografick\xe9 \xfadaje va\u0161eho \xfa\u010dtu, v\xe1mi p\u0159idan\xe9 i odvozen\xe9. Zm\u011bnu n\u011bkter\xfdch t\u011bchto \xfadaj\u016f m\u016f\u017eete prov\xe9st v \u010d\xe1sti ","."]}},{key:"h58ae65c",get:function(){return["Tohle je v\xfdb\u011br z\xe1jm\u016f, kter\xe9 odpov\xeddaj\xed va\u0161\xed aktivit\u011b, informac\xedm na va\u0161em profilu a z\xe1jm\u016fm, kter\xe9 sledujete. Z\xe1jmy pou\u017e\xedv\xe1me k personalizaci va\u0161eho u\u017eivatelsk\xe9ho z\xe1\u017eitku nap\u0159\xed\u010d Twitterem v\u010detn\u011b v\xe1m zobrazovan\xfdch reklam. Pokud se v\xe1m n\u011bkter\xe9 z nich nezdaj\xed, m\u016f\u017eete v\xfdb\u011br ","."]}},{key:"fbcd7d5d",get:function(){return["Toto jsou m\xedsta, kter\xe1 Twitter spojil s va\u0161\xedm \xfa\u010dtem na z\xe1klad\u011b va\u0161\xed aktivity. Tyto \xfadaje m\u016f\u017eete z \xfa\u010dtu odstranit v ",". D\xe1le m\u016f\u017eete v "," ur\u010dit, jak se m\u016f\u017ee va\u0161e historie polohy pou\u017e\xedvat."]}},{key:"templateReducer",get:function(){var e=d.Children.toArray(this.props.children);return function(a,t,n){return a.concat(t,e[n])}}}])&&i(n.prototype,o),r&&i(n,r),c}(t(3).I18NFormatMessage||d.Component));var c=t(7);t(9),t(10),t(11);c._validateParameterTypeNumber,c._validateParameterPresence;var u=c._numberRound,l=(c._numberFormat,c._numberFormatterFn),s=c._pluralGeneratorFn,m=(c._validateParameterTypeDate,c._dateToPartsFormat,c._dateToPartsFormatterFn),b=(c._dateFormat,c._dateFormatterFn);c.a618781253=l(["",,1,0,1,,,,3,,"","#,##0.###","-#,##0.###","-","",u(),"\u221e","NaN",{".":",",",":"\xa0","%":"%","+":"+","-":"-",E:"E","\u2030":"\u2030"},,{3:{one:"0\xa0tis'.'",few:"0\xa0tis'.'",many:"0\xa0tis'.'",other:"0\xa0tis'.'"},4:{one:"00\xa0tis'.'",few:"00\xa0tis'.'",many:"00\xa0tis'.'",other:"00\xa0tis'.'"},5:{one:"000\xa0tis'.'",few:"000\xa0tis'.'",many:"000\xa0tis'.'",other:"000\xa0tis'.'"},6:{one:"0\xa0mil'.'",few:"0\xa0mil'.'",many:"0\xa0mil'.'",other:"0\xa0mil'.'"},7:{one:"00\xa0mil'.'",few:"00\xa0mil'.'",many:"00\xa0mil'.'",other:"00\xa0mil'.'"},8:{one:"000\xa0mil'.'",few:"000\xa0mil'.'",many:"000\xa0mil'.'",other:"000\xa0mil'.'"},9:{one:"0\xa0mld'.'",few:"0\xa0mld'.'",many:"0\xa0mld'.'",other:"0\xa0mld'.'"},10:{one:"00\xa0mld'.'",few:"00\xa0mld'.'",many:"00\xa0mld'.'",other:"00\xa0mld'.'"},11:{one:"000\xa0mld'.'",few:"000\xa0mld'.'",many:"000\xa0mld'.'",other:"000\xa0mld'.'"},12:{one:"0\xa0bil'.'",few:"0\xa0bil'.'",many:"0\xa0bil'.'",other:"0\xa0bil'.'"},13:{one:"00\xa0bil'.'",few:"00\xa0bil'.'",many:"00\xa0bil'.'",other:"00\xa0bil'.'"},14:{one:"000\xa0bil'.'",few:"000\xa0bil'.'",many:"000\xa0bil'.'",other:"000\xa0bil'.'"},maxExponent:14}],c("cs").pluralGenerator({})),c.b521027023=l(["",,1,0,3,,,,3,,"","#,##0.###","-#,##0.###","-","",u(),"\u221e","NaN",{".":",",",":"\xa0","%":"%","+":"+","-":"-",E:"E","\u2030":"\u2030"}]),c.a130957221=l(["",,1,0,0,,,,,,"","0","-0","-","",u(),"\u221e","NaN",{".":",",",":"\xa0","%":"%","+":"+","-":"-",E:"E","\u2030":"\u2030"}]),c.b234962737=l(["",,2,0,0,,,,,,"","00","-00","-","",u(),"\u221e","NaN",{".":",",",":"\xa0","%":"%","+":"+","-":"-",E:"E","\u2030":"\u2030"}]),c.a1609705439=s(function(e){var a=String(e).split("."),t=a[0],n=!a[1];return 1==e&&n?"one":t>=2&&t<=4&&n?"few":n?"other":"many"}),c.b1007751626=m({1:c("cs").numberFormatter({raw:"0"}),2:c("cs").numberFormatter({raw:"00"})},{pattern:"d. MMMM y H:mm:ss z",timeSeparator:":",months:{M:{4:{1:"ledna",2:"\xfanora",3:"b\u0159ezna",4:"dubna",5:"kv\u011btna",6:"\u010dervna",7:"\u010dervence",8:"srpna",9:"z\xe1\u0159\xed",10:"\u0159\xedjna",11:"listopadu",12:"prosince"}}},gmtFormat:"GMT{0}",gmtZeroFormat:"GMT",hourFormat:["+H;-H","+H:mm;-H:mm"]}),c.a1140914045=m({},{pattern:"ccccc",timeSeparator:":",days:{c:{5:{sun:"N",mon:"P",tue:"\xda",wed:"S",thu:"\u010c",fri:"P",sat:"S"}}}}),c.a324612019=m({},{pattern:"LLL",timeSeparator:":",months:{L:{3:{1:"led",2:"\xfano",3:"b\u0159e",4:"dub",5:"kv\u011b",6:"\u010dvn",7:"\u010dvc",8:"srp",9:"z\xe1\u0159",10:"\u0159\xedj",11:"lis",12:"pro"}}}}),c.a2127662256=m({1:c("cs").numberFormatter({raw:"0"})},{pattern:"d. M. y",timeSeparator:":"}),c.a1698889183=m({1:c("cs").numberFormatter({raw:"0"}),2:c("cs").numberFormatter({raw:"00"})},{pattern:"h:mm a",timeSeparator:":",dayPeriods:{am:"dop.",pm:"odp."}}),c.a343112203=m({1:c("cs").numberFormatter({raw:"0"}),2:c("cs").numberFormatter({raw:"00"})},{pattern:"d. M. y h:mm a",timeSeparator:":",dayPeriods:{am:"dop.",pm:"odp."}}),c.a314787369=m({1:c("cs").numberFormatter({raw:"0"})},{pattern:"d. MMMM y",timeSeparator:":",months:{M:{4:{1:"ledna",2:"\xfanora",3:"b\u0159ezna",4:"dubna",5:"kv\u011btna",6:"\u010dervna",7:"\u010dervence",8:"srpna",9:"z\xe1\u0159\xed",10:"\u0159\xedjna",11:"listopadu",12:"prosince"}}}}),c.b1399158707=b(c("cs").dateToPartsFormatter({datetime:"long"})),c.a1892196422=b(c("cs").dateToPartsFormatter({skeleton:"ccccc"})),c.a173438652=b(c("cs").dateToPartsFormatter({skeleton:"MMM"})),c.b1416022663=b(c("cs").dateToPartsFormatter({skeleton:"yMMMd"})),c.a862728630=b(c("cs").dateToPartsFormatter({skeleton:"hm"})),c.a770970772=b(c("cs").dateToPartsFormatter({skeleton:"yMMMdhm"})),c.a1216709568=b(c("cs").dateToPartsFormatter({date:"long"})),n("f9e9679f",c.a618781253),n("ia24dc8c",c.b521027023),n("a54d3ef4",c.b1399158707),n("cad3f89f",c.a1892196422),n("f3f5ce0b",c.a173438652),n("jade381b",c.b1416022663),n("d725a288",c.a862728630),n("bfbc051c",c.a770970772),n("ba2e82a1",c.a1216709568)}}]);
global: true
}
I added
node: {
global: true
}
but still the function is undefined in window object.