diff --git a/package.json b/package.json index 72a6455..62aa60e 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,15 @@ "type": "git", "url": "https://github.com/Microsoft/tslib.git" }, - "main": "tslib.js", + "main": "tslib.cjs", + "type": "module", + "exports": { + ".": { + "import": "./tslib.es6.js", + "default": "./tslib.cjs" + }, + "./": "./" + }, "module": "tslib.es6.js", "jsnext:main": "tslib.es6.js", "typings": "tslib.d.ts", diff --git a/tslib.js b/tslib.cjs similarity index 100% rename from tslib.js rename to tslib.cjs