# Update requirejs config

**URL:** <https://talk.observablehq.com/t/update-requirejs-config/592>\
**Category:** Help\
**Created:** [April 2, 2018, 8:55pm UTC](https://talk.observablehq.com/t/update-requirejs-config/592 "2018-04-02T20:55:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![domoritz](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/domoritz/32/38_2.png) [@domoritz](https://talk.observablehq.com/u/domoritz)\
**Post date:** [April 2, 2018, 8:55pm UTC](https://talk.observablehq.com/t/update-requirejs-config/592/1 "2018-04-02T20:55:01Z")

</div>

Is there a way to set the requirejs shim config in observable modules?

I’d like to set the shim config for Vega-Embed with something like

```
requirejs.config({
  shim: {
    "vega-embed@3": ["vega@3", "vega-lite@2"]
  }
});

```

Thanks!

---

<div class="post-metadata">

**Author:** ![tom](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/tom/32/2262_2.png) [@tom](https://talk.observablehq.com/u/tom)\
**Post date:** [April 2, 2018, 10:08pm UTC](https://talk.observablehq.com/t/update-requirejs-config/592/2 "2018-04-02T22:08:13Z")

</div>

Currently there isn’t: the require() method is based on [d3-require](https://github.com/d3/d3-require), rather than requirejs, and we’re still sorting through a future-proof, or at least future-resistant way to configure transitive dependencies.

---

<div class="post-metadata">

**Author:** ![domoritz](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/domoritz/32/38_2.png) [@domoritz](https://talk.observablehq.com/u/domoritz)\
**Post date:** [April 2, 2018, 10:26pm UTC](https://talk.observablehq.com/t/update-requirejs-config/592/3 "2018-04-02T22:26:47Z")

</div>

Ahh, now it all makes sense. Is there a recommended way to support shimmed modules?

In particular, I want to support Vega-Embed, which is a shimmed library that depends on Vega and Vega-Lite to be loaded already. I don’t see any way in d3-require to define the dependency chain.

[Hello forum! Require](https://talk.observablehq.com/t/hello-forum-require/34) is related but didn’ help me with this particular issue. I don’t want to pre-build the package because always want to use the latest Vega and Vega-Lite versions.

Thank you for your help Tom!
