Skip to content

Commit

Permalink
fix: add support for 'export const foo = require(...)'. Closes #5
Browse files Browse the repository at this point in the history
  • Loading branch information
wessberg committed Jul 1, 2020
1 parent 945f159 commit 31d0141
Show file tree
Hide file tree
Showing 7 changed files with 356 additions and 116 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,7 @@ Do you want to contribute? Awesome! Please follow [these recommendations](./CONT

<!-- SHADOW_SECTION_FAQ_END -->

### Is conditinal require(...) syntax converted into dynamic imports?
### Is conditional require(...) syntax converted into dynamic imports?

No. For the input:

Expand Down
28 changes: 14 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"preversion": "pnpm run lint && pnpm run build:built_in_module_map && NODE_ENV=production pnpm run build",
"version": "pnpm run generate:all && git add .",
"release": "np --no-cleanup --no-yarn",
"update": "pnpx npm-check-updates -x np && pnpm update && pnpm install"
"update": "pnpx npm-check-updates -u -x np && pnpm update && pnpm install"
},
"keywords": [
"typescript",
Expand Down Expand Up @@ -53,41 +53,41 @@
],
"license": "MIT",
"devDependencies": {
"@rollup/plugin-node-resolve": "^7.1.3",
"@rollup/plugin-node-resolve": "^8.1.0",
"@types/glob": "^7.1.2",
"@types/node": "^13.13.12",
"@types/prettier": "^1.19.1",
"@types/node": "^14.0.14",
"@types/prettier": "^2.0.1",
"@types/reserved-words": "^0.1.0",
"@types/resolve": "^1.17.1",
"@typescript-eslint/eslint-plugin": "^2.34.0",
"@typescript-eslint/parser": "^2.34.0",
"@typescript-eslint/eslint-plugin": "^3.5.0",
"@typescript-eslint/parser": "^3.5.0",
"@wessberg/rollup-plugin-ts": "^1.2.26",
"@wessberg/scaffold": "^1.0.29",
"@wessberg/ts-config": "^1.0.13",
"ava": "^3.9.0",
"eslint": "^6.8.0",
"eslint": "^7.3.1",
"eslint-config-prettier": "^6.11.0",
"eslint-plugin-import": "^2.22.0",
"eslint-plugin-jsdoc": "^21.0.0",
"eslint-plugin-jsdoc": "^28.6.1",
"husky": "^4.2.5",
"np": "5.2.1",
"pnpm": "^4.14.4",
"prettier": "^1.19.1",
"pnpm": "^5.2.6",
"prettier": "^2.0.5",
"pretty-quick": "^2.0.1",
"rimraf": "^3.0.2",
"rollup": "^1.32.1",
"rollup": "^2.18.1",
"standard-changelog": "^2.0.24",
"ts-node": "^8.10.2",
"typescript": "^3.9.5"
},
"dependencies": {
"@wessberg/stringutil": "^1.0.19",
"chalk": "^3.0.0",
"commander": "^4.1.1",
"chalk": "^4.1.0",
"commander": "^5.1.0",
"glob": "^7.1.6",
"reserved-words": "^0.1.2",
"resolve": "^1.17.0",
"tslib": "^1.13.0"
"tslib": "^2.0.0"
},
"peerDependencies": {
"typescript": "^3.x"
Expand Down

0 comments on commit 31d0141

Please sign in to comment.