chore(build): rename .es6 files to .js
Change es6 source files in npm distribution to use .js extensions. Closes #2447
This commit is contained in:
@ -13,7 +13,7 @@ let xtend = require('xtend');
|
||||
class DiffingTraceurCompiler implements DiffingBroccoliPlugin {
|
||||
constructor(public inputPath: string, public cachePath: string, public options) {}
|
||||
|
||||
static includeExtensions = ['.js', '.es6', '.cjs'];
|
||||
static includeExtensions = ['.js', '.cjs'];
|
||||
|
||||
rebuild(treeDiff: DiffResult) {
|
||||
treeDiff.addedPaths.concat(treeDiff.changedPaths)
|
||||
|
@ -64,7 +64,7 @@ module.exports = function makeBrowserTree(options, destinationPath) {
|
||||
|
||||
// Use Traceur to transpile *.js sources to ES6
|
||||
var traceurTree = transpileWithTraceur(modulesTree, {
|
||||
destExtension: '.es6',
|
||||
destExtension: '.js',
|
||||
destSourceMapExtension: '.map',
|
||||
traceurOptions: {
|
||||
sourceMaps: true,
|
||||
@ -93,7 +93,6 @@ module.exports = function makeBrowserTree(options, destinationPath) {
|
||||
sourceRoot: '.',
|
||||
target: 'ES6'
|
||||
});
|
||||
typescriptTree = stew.rename(typescriptTree, '.js', '.es6');
|
||||
|
||||
var es6Tree = mergeTrees([traceurTree, typescriptTree]);
|
||||
|
||||
|
Reference in New Issue
Block a user