From 1afd8c037c9cbeef7a072d84d670546121a26999 Mon Sep 17 00:00:00 2001 From: Marvin Hagemeister Date: Mon, 6 Jul 2020 16:51:23 +0200 Subject: [PATCH] Add note about authoring format to README --- README.md | 40 +++++++++++++++++++++++----------------- 1 file changed, 23 insertions(+), 17 deletions(-) diff --git a/README.md b/README.md index 56140506..09f68c03 100644 --- a/README.md +++ b/README.md @@ -56,6 +56,8 @@ Microbundle produces esm, cjs, umd bundles with your code compiled to syntax that works pretty much everywhere. While it's possible to customize the browser or Node versions you wish to support using a [browserslist configuration](https://github.com/browserslist/browserslist#browserslist-), the default setting is optimal and strongly recommended. +_Note: Microbundle expects that your code is authored in ECMAScript Modules (import / export)._ + ## 🤖 Modern Mode In addition to the above formats, Microbundle also outputs a `modern` bundle specially designed to work in _all modern browsers_. This bundle preserves most modern JS features when compiling your code, but ensures the result runs in 90% of web browsers without needing to be transpiled. Specifically, it uses [preset-modules](https://github.com/babel/preset-modules) to target the set of browsers that support `