Skip to content

Conversation

IvanRave
Copy link

Example of configuration:

[techs.browserJs, {
    target: '?.browser.js',
    sourceSuffixes: ['vanilla.js', 'js', 'browser.js'],
    includeYM: true,
    transpilePatterns: [
        'common.blocks/**/*.js',
        'desktop.blocks/**/*.js',
        'desktop.bundles/**/*.js'
    ],
    transpilePlugins: [
        'transform-es2015-arrow-functions',
        'transform-es2015-block-scoping',
        'transform-es2015-classes'
    ]
}]

All transpile plugins must be installed right in your project (not in this enb-js package)

More plugins: http://babeljs.io/docs/plugins/

@coveralls
Copy link

Coverage Status

Changes Unknown when pulling 8004409 on IvanRave:master into * on enb:master*.

@tadatuta
Copy link
Member

why not to use separate https://github.com/frux/enb-babelify instead?

@IvanRave
Copy link
Author

enb-babelify (and other modules) transpile combined files (like ?.browser.js with all libs and dependencies) instead flat source files.

[BABEL] Note: The code generator has deoptimised the styling of "unknown" as it exceeds the max of "100KB"

Note:

ECMAScript 2015 is an ECMAScript standard that was ratified in June 2015.
ES2015 is a significant update to the language, and the first major update to the language since ES5 was standardized in 2009. Implementation of these features in major JavaScript engines is underway now.

Actually a babel transpiler fixes JS bugs, and it can be included to this module, according https://en.wikipedia.org/wiki/Single_responsibility_principle

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants