mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-12-28 00:52:29 +03:00
Use same babel options for compiling bundled packages
This commit is contained in:
parent
bea45b5921
commit
a25a8c83e4
@ -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: []
|
||||
|
||||
|
@ -188,6 +188,7 @@ module.exports =
|
||||
setCacheDirectory: setCacheDirectory
|
||||
getCacheMisses: -> stats.misses
|
||||
getCacheHits: -> stats.hits
|
||||
defaultOptions: defaultOptions
|
||||
|
||||
# Visible for testing.
|
||||
createBabelVersionAndOptionsDigest: createBabelVersionAndOptionsDigest
|
||||
|
Loading…
Reference in New Issue
Block a user