In a Svelte component, I'm trying to access an object I set up in my rollup config file.
My rollup.config.js file looks like this:
import replace from '@rollup/plugin-replace';
...
export default {
...
replace({
foo: JSON.stringify({ bar: 'Hello' }),
}),
...
In my Svelte component, a simple console.log(foo) works:
But when I try to go into that foo object like console.log(foo.bar), I get foo is not defined:

