Skip to content

Fixes enb/enb-js#33 - #48

Open
IvanRave wants to merge 1 commit into
enb:masterfrom
IvanRave:master
Open

Fixes enb/enb-js#33#48
IvanRave wants to merge 1 commit into
enb:masterfrom
IvanRave:master

Conversation

@IvanRave

Copy link
Copy Markdown

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
Copy Markdown

Coverage Status

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

@tadatuta

Copy link
Copy Markdown
Member

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

@IvanRave

Copy link
Copy Markdown
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