Skip to content

Commit

Permalink
Fix #812: Pin Babili dependencies to known-good versions. (#813)
Browse files Browse the repository at this point in the history
* Fix #812: Pin Babili dependencies to known-good versions.

* Assign sinon to a global in head_xpc.js.
  • Loading branch information
Osmose committed Jun 14, 2017
1 parent 8cda4c9 commit 3cab778
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion recipe-client-addon/test/unit/head_xpc.js
Expand Up @@ -38,5 +38,5 @@ const loader = new Loader.Loader({
},
});
const require = Loader.Require(loader, {id: ""});
const sinon = require("sinon-2.3.2");
this.sinon = require("sinon-2.3.2");
// ================================================
Expand Up @@ -13,7 +13,7 @@ export const FormButton = ({
type = 'button',
onClick,
display,
...props,
...props
}) => {
if (display === false) {
return null;
Expand Down
3 changes: 2 additions & 1 deletion recipe-server/package.json
Expand Up @@ -57,8 +57,9 @@
"babel-plugin-transform-function-bind": "6.22.0",
"babel-plugin-transform-object-rest-spread": "6.23.0",
"babel-plugin-transform-runtime": "6.15.0",
"babel-preset-babili": "0.0.12",
"babel-preset-react": "6.11.1",
"babili-webpack-plugin": "^0.1.1",
"babili-webpack-plugin": "0.1.1",
"css-loader": "0.24.0",
"enzyme": "2.4.1",
"eslint": "3.19.0",
Expand Down
8 changes: 7 additions & 1 deletion recipe-server/webpack.config.js
Expand Up @@ -8,6 +8,8 @@ var AsyncAwaitPlugin = require('webpack-async-await');
var BabiliPlugin = require('babili-webpack-plugin');
var argv = require('yargs').argv;
var childProcess = require('child_process');
var babiliPreset = require('babel-preset-babili');
var babelCore = require('babel-core');

const BOLD = '\u001b[1m';
const END_BOLD = '\u001b[39m\u001b[22m';
Expand Down Expand Up @@ -38,7 +40,11 @@ var plugins = [
if (production) {
plugins = plugins.concat([
new webpack.optimize.DedupePlugin(),
new BabiliPlugin(),
new BabiliPlugin({}, {
// Use our own pinned versions of babel and babili in case deduplication fails
babel: babelCore,
babili: babiliPreset,
}),
]);
} else {
plugins = plugins.concat([
Expand Down

0 comments on commit 3cab778

Please sign in to comment.