From 3cf6c915371f34b8ef495f681da6bd353e537dcc Mon Sep 17 00:00:00 2001 From: Devin Rhode Date: Thu, 18 Oct 2018 18:25:27 -0500 Subject: [PATCH] notes on just having an es6 entry point --- README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/README.md b/README.md index 8848958..39b42f2 100644 --- a/README.md +++ b/README.md @@ -29,3 +29,17 @@ Reference files via the es6! plugin name: // ... }); ``` + +You could just have an es6 entry point, like this: +``` +// This file, named /index.js, just points to /src/index.js to start the es6 app. +require(['es6!src/index']); +``` +Then class can `import` any other plain es6 js file which uses the `export` syntax! + +Your `src/index.js` file might be like +``` +import a from 'a'; +import b from 'b'; +import c from 'c'; +```