diff --git a/index.mjs b/index.mjs new file mode 100644 index 0000000..c60fd63 --- /dev/null +++ b/index.mjs @@ -0,0 +1,5 @@ +import Vinyl from "./index.js"; + +export const isVinyl = Vinyl.isVinyl; +export const isCustomProp = Vinyl.isCustomProp; +export default Vinyl; diff --git a/package.json b/package.json index 3d1dc9f..a0cef47 100644 --- a/package.json +++ b/package.json @@ -13,6 +13,13 @@ "node": ">= 0.10" }, "main": "index.js", + "exports": { + ".": { + "require": "./index.js", + "default": "./index.mjs" + }, + "./package.json": "./package.json" + }, "files": [ "LICENSE", "index.js",