Skip to content

Instantly share code, notes, and snippets.

@also
Last active September 30, 2016 18:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save also/5cc6c7aedd976260e07d8a48b26cce81 to your computer and use it in GitHub Desktop.
Save also/5cc6c7aedd976260e07d8a48b26cce81 to your computer and use it in GitHub Desktop.
webpack context resolver bug

webpack/webpack#3082

$ npm test

> @ test /Users/rberdeen/work/scratch/webpack-require-context
> webpack test.js out.js

Hash: 6fdd8fd64209c6bbad29
Version: webpack 2.1.0-beta.25
Time: 81ms
 Asset    Size  Chunks             Chunk Names
out.js  2.8 kB       0  [emitted]  main
   [0] ./index.js ^\.\/.*$ 160 bytes {0} [built]
   [1] ./test.js 23 bytes {0} [built]

ERROR in ENOTDIR: not a directory, scandir '/Users/rberdeen/work/scratch/webpack-require-context/index.js'
npm ERR! Test failed.  See above for more details.
// nothing here
{
"private": true,
"devDependencies": {
"webpack": "^2.1.0-beta.25"
},
"scripts": {
"test": "webpack test.js out.js"
}
}
require.context('./');
module.exports = {
resolve: {
plugins: []
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment