# Static inline import

**URL:** <https://es.discourse.group/t/static-inline-import/2346>\
**Category:** 💡 Ideas\
**Created:** [April 14, 2025, 8:06pm UTC](https://es.discourse.group/t/static-inline-import/2346 "2025-04-14T20:06:34Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![hydroperfox](https://yyz2.discourse-cdn.com/free1/user_avatar/es.discourse.group/hydroperfox/32/2233_2.png) [@hydroperfox](https://es.discourse.group/u/hydroperfox)\
**Post date:** [April 14, 2025, 8:06pm UTC](https://es.discourse.group/t/static-inline-import/2346/1 "2025-04-14T20:06:34Z")

</div>

`import.*("path/to/module")` in addition to the existing expression `import("path/to/module")`, which would be equivalent to:

```js
import * as _i_ae9fa from "path/to/module";

// where the expression appeared...
_i_ae9fa

```

It's useful for solving name conflicts and contributing static media.

---

<div class="post-metadata">

**Author:** ![senocular](https://yyz2.discourse-cdn.com/free1/user_avatar/es.discourse.group/senocular/32/642_2.png) [@senocular](https://es.discourse.group/u/senocular)\
**Post date:** [April 14, 2025, 8:21pm UTC](https://es.discourse.group/t/static-inline-import/2346/2 "2025-04-14T20:21:55Z")

</div>

Sounds like

> **[GitHub - tc39/proposal-import-sync](https://github.com/tc39/proposal-import-sync)**
>
> Contribute to tc39/proposal-import-sync development by creating an account on GitHub.

?

---

<div class="post-metadata">

**Author:** ![hydroperfox](https://yyz2.discourse-cdn.com/free1/user_avatar/es.discourse.group/hydroperfox/32/2233_2.png) [@hydroperfox](https://es.discourse.group/u/hydroperfox)\
**Post date:** [April 14, 2025, 8:52pm UTC](https://es.discourse.group/t/static-inline-import/2346/3 "2025-04-14T20:52:45Z")

</div>

Yes, surprised it's a recent proposal though X\_X

---

<div class="post-metadata">

**Author:** ![blob](https://yyz2.discourse-cdn.com/free1/user_avatar/es.discourse.group/blob/32/2230_2.png) [@blob](https://es.discourse.group/u/blob)\
**Post date:** [May 4, 2025, 9:22pm UTC](https://es.discourse.group/t/static-inline-import/2346/4 "2025-05-04T21:22:11Z")

</div>

Great idea, garbage syntax

---

<div class="post-metadata">

**Author:** ![hydroperfox](https://yyz2.discourse-cdn.com/free1/user_avatar/es.discourse.group/hydroperfox/32/2233_2.png) [@hydroperfox](https://es.discourse.group/u/hydroperfox)\
**Post date:** [May 5, 2025, 12:28pm UTC](https://es.discourse.group/t/static-inline-import/2346/5 "2025-05-05T12:28:16Z")

</div>

Unfortunately... I could just think of `import.sync("path")` (initial version of this post) or `import.*("path")`. The latter is shortened, in comparison. I honestly prefer ECMAScript 4's fully qualified names (`net.cartoon.weare.Item`), they look much more readable (but then importing media would be different).

---

<div class="post-metadata">

**Author:** ![blob](https://yyz2.discourse-cdn.com/free1/user_avatar/es.discourse.group/blob/32/2230_2.png) [@blob](https://es.discourse.group/u/blob)\
**Post date:** [May 5, 2025, 2:45pm UTC](https://es.discourse.group/t/static-inline-import/2346/6 "2025-05-05T14:45:17Z")

</div>

I like `import.static("path/to/module")`
