broccoli-es6-concatenator

ES6 transpiler and concatenator for Broccoli

MIT 19 个版本
安装
npm install broccoli-es6-concatenator
yarn add broccoli-es6-concatenator
pnpm add broccoli-es6-concatenator
bun add broccoli-es6-concatenator
README

broccoli-es6-concatenator

Transpile ES6 modules and concatenate them, recursively including modules referenced by import statements.

This plugin is deprecated. It uses an old version of es6-module-transpiler. The es6-module-transpiler has since been rewritten in order to correctly reflect ES6 module semantics. There is no hope to update broccoli-es6-concatenator to the new es6-module-transpiler API. Somebody will have to write a new plugin from scratch that works with the new es6-module-transpiler.

Installation

npm install --save-dev broccoli-es6-concatenator

Usage

Note: The API will change in subsequent 0.x versions.

var compileES6 = require('broccoli-es6-concatenator');
var applicationJs = compileES6(sourceTree, {
  loaderFile: 'loader.js',
  ignoredModules: [
    'resolver'
  ],
  inputFiles: [
    'todomvc/**/*.js'
  ],
  legacyFilesToAppend: [
    'jquery.js',
    'handlebars.js',
    'ember.js',
  ],
  wrapInEval: true,
  outputFile: '/assets/application.js'
});

Options

  • .wrapInEval (boolean): Enable or disable wrapping each module in an eval call with a //# sourceURL comment. Defaults to true, though this may change in the future.

  • .loaderFile (string): When specified prepends the contents of loaderFile.

版本列表
0.1.11 2014-11-27
0.1.10 2014-10-11
0.1.9 2014-10-10
0.1.8 2014-10-03
0.1.7 2014-07-03
0.1.6 2014-05-31
0.1.5 2014-05-01
0.1.4 2014-04-05
0.1.3 2014-04-02
0.1.2 2014-03-13
0.1.1 2014-03-13
0.1.0 2014-02-25
0.0.7 2014-02-10
0.0.6 2014-02-07
0.0.5 2014-02-06
0.0.4 2014-01-27
0.0.3 2014-01-22
0.0.2 2014-01-18
0.0.1 2013-12-28