Skip to content

Commit

Permalink
Remove outdated examples.
Browse files Browse the repository at this point in the history
  • Loading branch information
danez committed Jun 16, 2017
1 parent 91f2658 commit 8d96c1f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 21 deletions.
9 changes: 4 additions & 5 deletions src/index.js
Expand Up @@ -128,11 +128,10 @@ module.exports = function(source, inputSourceMap) {
"babel-loader": pkg.version,
"babel-core": babel.version,
babelrc: babelrcPath ? read(fileSystem, babelrcPath) : null,
env:
loaderOptions.forceEnv ||
process.env.BABEL_ENV ||
process.env.NODE_ENV ||
"development",
env: loaderOptions.forceEnv ||
process.env.BABEL_ENV ||
process.env.NODE_ENV ||
"development",
}),
};

Expand Down
8 changes: 0 additions & 8 deletions src/utils/exists.js
@@ -1,11 +1,3 @@
/**
* Check if file exists and cache the result
* return the result in cache
*
* @example
* var exists = require('./helpers/fsExists');
* exists(require('fs'), '.babelrc'); // false
*/
module.exports = function(fileSystem, filename) {
if (!filename) return false;

Expand Down
8 changes: 0 additions & 8 deletions src/utils/read.js
@@ -1,11 +1,3 @@
/**
* Read the file and cache the result
* return the result in cache
*
* @example
* var read = require('./helpers/fsExists');
* read(require('fs'), '.babelrc'); // file contents...
*/
module.exports = function(fileSystem, filename) {
if (!filename) {
throw new Error("filename must be a string");
Expand Down

0 comments on commit 8d96c1f

Please sign in to comment.