Only call browserify when one of sandbox sources change

This commit is contained in:
Kevin Sawicki 2016-11-03 13:54:08 -07:00
Родитель 0b86acfef4
Коммит e0afb814aa
4 изменённых файлов: 8 добавлений и 5 удалений

Просмотреть файл

@ -436,10 +436,6 @@
'action_name': 'atom_browserify',
'inputs': [
'<@(browserify_entries)',
# Any js file under `lib/` can be included in the preload bundle.
# Add all js sources as dependencies so any change to a js file will
# trigger a rebuild of the bundle(and consequently of js2c).
'<@(js_sources)',
],
'outputs': [
'<(js2c_input_dir)/preload_bundle.js',
@ -449,7 +445,7 @@
'run',
'browserify',
'--',
'<@(browserify_entries)',
'lib/sandboxed_renderer/init.js',
'-o',
'<@(_outputs)',
],

Просмотреть файл

@ -73,6 +73,7 @@
'lib/renderer/extensions/web-navigation.js',
],
'browserify_entries': [
'lib/renderer/api/ipc-renderer-setup.js',
'lib/sandboxed_renderer/init.js',
],
'js2c_sources': [

Просмотреть файл

@ -1,3 +1,6 @@
// Any requires added here need to be added to the browserify_entries array
// in filenames.gypi so they get built into the preload_bundle.js bundle
module.exports = function (ipcRenderer, binding) {
ipcRenderer.send = function (...args) {
return binding.send('ipc-message', args)

Просмотреть файл

@ -1,3 +1,6 @@
// Any requires added here need to be added to the browserify_entries array
// in filenames.gypi so they get built into the preload_bundle.js bundle
/* eslint no-eval: "off" */
/* global binding, preloadPath, process, Buffer */
const events = require('events')