Skip to content

Commit

Permalink
Nested module proposal using wrapper module
Browse files Browse the repository at this point in the history
  • Loading branch information
weswigham committed Sep 29, 2020
1 parent b5c7b76 commit 46729a9
Show file tree
Hide file tree
Showing 3 changed files with 62 additions and 1 deletion.
51 changes: 51 additions & 0 deletions modules/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
import { createRequire } from "module";
const {
__extends,
__assign,
__rest,
__decorate,
__param,
__metadata,
__awaiter,
__generator,
__exportStar,
__createBinding,
__values,
__read,
__spread,
__spreadArrays,
__await,
__asyncGenerator,
__asyncDelegator,
__asyncValues,
__makeTemplateObject,
__importStar,
__importDefault,
__classPrivateFieldGet,
__classPrivateFieldSet,
} = createRequire(import.meta.url)("../tslib.js");
export {
__extends,
__assign,
__rest,
__decorate,
__param,
__metadata,
__awaiter,
__generator,
__exportStar,
__createBinding,
__values,
__read,
__spread,
__spreadArrays,
__await,
__asyncGenerator,
__asyncDelegator,
__asyncValues,
__makeTemplateObject,
__importStar,
__importDefault,
__classPrivateFieldGet,
__classPrivateFieldSet,
};
3 changes: 3 additions & 0 deletions modules/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"type": "module"
}
9 changes: 8 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,12 @@
"module": "tslib.es6.js",
"jsnext:main": "tslib.es6.js",
"typings": "tslib.d.ts",
"sideEffects": false
"sideEffects": false,
"exports": {
".": {
"import": "./modules/index.js",
"default": "./tslib.js"
},
"./": "./"
}
}

0 comments on commit 46729a9

Please sign in to comment.