mirror of https://github.com/webpack/webpack.git
node.js 0.8 support
This commit is contained in:
parent
9c3e74a0dd
commit
088d315f9f
|
@ -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 {
|
||||
|
|
|
@ -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": {
|
||||
|
|
Loading…
Reference in New Issue