diff --git a/empty.js b/empty.js new file mode 100644 index 00000000..e499667b --- /dev/null +++ b/empty.js @@ -0,0 +1 @@ +// placeholder file for nodejs diff --git a/package.json b/package.json index b9911d14..de8451a8 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,8 @@ "engines": { "node": ">= 0.8.0" }, - "main": "./dist/picturefill", + "main": "empty.js", + "browser": "./dist/picturefill", "scripts": { "test": "grunt test --verbose" },