explain babel plugin, preset order

This commit is contained in:
Michael Bradley, Jr 2018-10-01 18:36:46 -05:00 committed by Pascal Precht
parent e2c18e6338
commit 39821d2617
No known key found for this signature in database
GPG Key ID: 0EE28D8D6FD85D7D
1 changed files with 5 additions and 0 deletions

View File

@ -65,6 +65,11 @@ function resolve(pkgName) {
// base config // base config
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
// + Plugins run before Presets.
// + Plugin ordering is first to last.
// + Preset ordering is reversed (last to first).
// see: https://babeljs.io/docs/en/plugins#plugin-ordering
const base = { const base = {
context: dappPath, context: dappPath,
entry: entry, entry: entry,