node.js 0.8 support

This commit is contained in:
Tobias Koppers 2012-07-01 16:55:58 +02:00
parent 9c3e74a0dd
commit 088d315f9f
2 changed files with 3 additions and 2 deletions

View File

@ -7,6 +7,7 @@ var writeChunk = require("./writeChunk");
var Cache = require("./Cache");
var path = require("path");
var fs = require("fs");
var fileExists = fs.exists || path.exists;
var HASH_REGEXP = /\[hash\]/i;
@ -329,7 +330,7 @@ function webpack(context, moduleName, options, callback) {
// recursive create dir
function createDir(dir, callback) {
path.exists(dir, function(exists) {
fileExists(dir, function(exists) {
if(exists)
callback();
else {

View File

@ -1,6 +1,6 @@
{
"name": "webpack",
"version": "0.4.9",
"version": "0.4.10",
"author": "Tobias Koppers @sokra",
"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.",
"dependencies": {