Skip to content

Commit 088d315

Browse files
committed
node.js 0.8 support
1 parent 9c3e74a commit 088d315

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

‎lib/webpack.js‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ var writeChunk = require("./writeChunk");
77
var Cache = require("./Cache");
88
var path = require("path");
99
var fs = require("fs");
10+
var fileExists = fs.exists || path.exists;
1011

1112
var HASH_REGEXP = /\[hash\]/i;
1213

@@ -329,7 +330,7 @@ function webpack(context, moduleName, options, callback) {
329330

330331
// recursive create dir
331332
function createDir(dir, callback) {
332-
path.exists(dir, function(exists) {
333+
fileExists(dir, function(exists) {
333334
if(exists)
334335
callback();
335336
else {

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "webpack",
3-
"version": "0.4.9",
3+
"version": "0.4.10",
44
"author": "Tobias Koppers @sokra",
55
"description": "Packs CommonJs Modules for the browser. Allows to split your codebase into multiple bundles, which can be loaded on demand. Support loading of js, json, jade, coffee, css, ... out of the box and more with custom loaders.",
66
"dependencies": {

0 commit comments

Comments
 (0)