Use same babel options for compiling bundled packages

This commit is contained in:
Max Brunsfeld 2015-08-18 17:50:49 -07:00
parent bea45b5921
commit a25a8c83e4
2 changed files with 3 additions and 1 deletions

View File

@ -3,6 +3,7 @@ path = require 'path'
os = require 'os'
glob = require 'glob'
usesBabel = require './lib/uses-babel'
babelOptions = require('../src/babel').defaultOptions
# Add support for obselete APIs of vm module so we can make some third-party
# modules work under node v0.11.x.
@ -81,7 +82,7 @@ module.exports = (grunt) ->
ext: '.js'
babelConfig =
options: {}
options: babelOptions
dist:
files: []

View File

@ -188,6 +188,7 @@ module.exports =
setCacheDirectory: setCacheDirectory
getCacheMisses: -> stats.misses
getCacheHits: -> stats.hits
defaultOptions: defaultOptions
# Visible for testing.
createBabelVersionAndOptionsDigest: createBabelVersionAndOptionsDigest