Skip to content

Commit

Permalink
Merge pull request #932 from Microsoft/jwilaby/build-optimization
Browse files Browse the repository at this point in the history
Jwilaby/build optimization
  • Loading branch information
Justin Wilaby committed Oct 2, 2018
2 parents 2675da8 + defbd7e commit 4672533
Show file tree
Hide file tree
Showing 94 changed files with 151,162 additions and 1,047 deletions.
3 changes: 2 additions & 1 deletion .babelrc
Expand Up @@ -16,6 +16,7 @@
"sourceMaps": "inline",
"plugins": [
"@babel/plugin-proposal-class-properties",
"@babel/plugin-transform-react-jsx"
"@babel/plugin-transform-react-jsx",
"@babel/plugin-transform-runtime"
]
}
7 changes: 5 additions & 2 deletions babel-jest-config.js
@@ -1,11 +1,14 @@
const fs = require('fs-extra');
const path = require('path');

const babelOptions = fs.readJsonSync('.babelrc');
const babelOptions = fs.readJsonSync(path.join(__dirname, '.babelrc'));
const transformer = require('babel-jest');

const { createTransformer } = transformer;
const thisTransformer = createTransformer(babelOptions);

Object.assign(transformer, thisTransformer);
transformer.createTransformer = () => thisTransformer;
transformer.createTransformer = () => {
return thisTransformer
};
module.exports = transformer;

0 comments on commit 4672533

Please sign in to comment.