aboutsummaryrefslogtreecommitdiff
path: root/docs/module-system.md
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <jarred@jarredsumner.com> 2021-07-28 10:56:36 -0700
committerGravatar Jarred Sumner <jarred@jarredsumner.com> 2021-07-28 10:56:36 -0700
commit68fa7ec2d0bc3549b398929ad9794783be451b7c (patch)
treefeb1331ea93b6f69905f250269f72452304b0c6c /docs/module-system.md
parentd18ff76912f6c4522132adfb7c0af1db7c5b6726 (diff)
downloadbun-68fa7ec2d0bc3549b398929ad9794783be451b7c.tar.gz
bun-68fa7ec2d0bc3549b398929ad9794783be451b7c.tar.zst
bun-68fa7ec2d0bc3549b398929ad9794783be451b7c.zip
WIP
Former-commit-id: 60cc85dc0652b34e9c7ec409f32ba635cc4b2e51
Diffstat (limited to 'docs/module-system.md')
-rw-r--r--docs/module-system.md9
1 files changed, 9 insertions, 0 deletions
diff --git a/docs/module-system.md b/docs/module-system.md
new file mode 100644
index 000000000..a12fb0fff
--- /dev/null
+++ b/docs/module-system.md
@@ -0,0 +1,9 @@
+# Modules (JavaScript Runtime Environment)
+
+This is about the JavaScript Runtime Environment, so this doesn't apply when bundling for Node.js or Web.
+
+The JavaScript Runtime treats modules as close as possible to what it does on the web.
+
+That means:
+
+- Modules are always transformed to ES Modules