{"action":"created","issue":{"url":"https://api.github.com/repos/istarkov/babel-plugin-webpack-loaders/issues/26","repository_url":"https://api.github.com/repos/istarkov/babel-plugin-webpack-loaders","labels_url":"https://api.github.com/repos/istarkov/babel-plugin-webpack-loaders/issues/26/labels{/name}","comments_url":"https://api.github.com/repos/istarkov/babel-plugin-webpack-loaders/issues/26/comments","events_url":"https://api.github.com/repos/istarkov/babel-plugin-webpack-loaders/issues/26/events","html_url":"https://github.com/istarkov/babel-plugin-webpack-loaders/issues/26","id":133706034,"number":26,"title":"Fails with jsdom","user":{"login":"karlhorky","id":1935696,"avatar_url":"https://avatars.githubusercontent.com/u/1935696?v=3","gravatar_id":"","url":"https://api.github.com/users/karlhorky","html_url":"https://github.com/karlhorky","followers_url":"https://api.github.com/users/karlhorky/followers","following_url":"https://api.github.com/users/karlhorky/following{/other_user}","gists_url":"https://api.github.com/users/karlhorky/gists{/gist_id}","starred_url":"https://api.github.com/users/karlhorky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karlhorky/subscriptions","organizations_url":"https://api.github.com/users/karlhorky/orgs","repos_url":"https://api.github.com/users/karlhorky/repos","events_url":"https://api.github.com/users/karlhorky/events{/privacy}","received_events_url":"https://api.github.com/users/karlhorky/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2016-02-15T12:57:57Z","updated_at":"2016-02-15T20:10:52Z","closed_at":null,"body":"I've been trying to include `jsdom` in my tests, and it is failing on trying to resolve the `fs` module used within `jsdom`.\r\n\r\n*component.test.js*\r\n```js\r\nconst jsdom = require('jsdom');\r\n\r\n// OR\r\n\r\nimport jsdom from 'jsdom';\r\n```\r\n\r\n*Error*\r\n```bash\r\nModuleNotFoundError: Module not found: Error: Cannot resolve module 'fs' in /Users/karlhorky/projects/k/node_modules/jsdom/lib\r\n```\r\n\r\n*webpack config*\r\n```js\r\nconst path = require('path');\r\n\r\nmodule.exports = {\r\n  module: {\r\n    loaders: [{\r\n      test: /\\.js$/,\r\n      exclude: /node_modules|bower_components/,\r\n      loader: 'babel'\r\n    }]\r\n  },\r\n  resolve: {\r\n    modules: [\r\n      __dirname,\r\n      path.resolve(__dirname, 'node_modules')\r\n    ]\r\n  },\r\n  output: {\r\n    libraryTarget: 'commonjs2'\r\n  }\r\n};\r\n```"},"comment":{"url":"https://api.github.com/repos/istarkov/babel-plugin-webpack-loaders/issues/comments/184368675","html_url":"https://github.com/istarkov/babel-plugin-webpack-loaders/issues/26#issuecomment-184368675","issue_url":"https://api.github.com/repos/istarkov/babel-plugin-webpack-loaders/issues/26","id":184368675,"user":{"login":"istarkov","id":5077042,"avatar_url":"https://avatars.githubusercontent.com/u/5077042?v=3","gravatar_id":"","url":"https://api.github.com/users/istarkov","html_url":"https://github.com/istarkov","followers_url":"https://api.github.com/users/istarkov/followers","following_url":"https://api.github.com/users/istarkov/following{/other_user}","gists_url":"https://api.github.com/users/istarkov/gists{/gist_id}","starred_url":"https://api.github.com/users/istarkov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/istarkov/subscriptions","organizations_url":"https://api.github.com/users/istarkov/orgs","repos_url":"https://api.github.com/users/istarkov/repos","events_url":"https://api.github.com/users/istarkov/events{/privacy}","received_events_url":"https://api.github.com/users/istarkov/received_events","type":"User","site_admin":false},"created_at":"2016-02-15T20:10:52Z","updated_at":"2016-02-15T20:10:52Z","body":"Done, please read https://github.com/istarkov/babel-plugin-webpack-loaders/pull/27#issuecomment-184368531"}}