Enable pkg.esnext for *untranspiled* source code
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
aaa-next
aaa-now
js
.gitignore
LICENSE
README.md
index.html
package.json
webpack.config.js

README.md

esnext-demo

This repo shows how to enable pkg.esnext for untranspiled source code.

What is transpiled by Babel?

If you build this repo, Babel transpiles:

  • All JavaScript files inside esnext-demo/js
  • All npm-installed modules that have a package.json with the property esnext.
    • That property works similarly to main: it points to the .(m)js file “implementing” the package.
  • No other JavaScript file is transpiled by Babel.

Rationale and future

Installation

cd esnext-demo
npm install
npm run install-aaa

Running the web app

npm run wp
open esnext-demo/index.html