├── .gitignore ├── .vscode ├── launch.json └── settings.json ├── CONTRIBUTING.md ├── README.md ├── jest.config.js ├── lerna.json ├── package.json ├── packages ├── babel-plugin-ts-optchain │ ├── .gitignore │ ├── .prettierrc │ ├── README.md │ ├── __tests__ │ │ ├── plugin.test.ts │ │ ├── runtime.test.ts │ │ ├── upstream-ts-optchain-tests.source │ │ └── upstream-ts-optchain.test.js │ ├── jest.config.js │ ├── package.json │ ├── src │ │ ├── plugin.ts │ │ └── runtime.ts │ ├── tools │ │ └── compile-upstream-tests.ts │ ├── tsconfig.build.json │ └── tsconfig.json └── ts-optchain.macro │ ├── .gitignore │ ├── .prettierrc │ ├── README.md │ ├── __tests__ │ ├── entry.macro.js │ └── macro.test.ts │ ├── jest.config.js │ ├── macro.d.ts │ ├── package.json │ ├── src │ └── macro.ts │ ├── tsconfig.build.json │ └── tsconfig.json ├── tsconfig.base.json └── tsconfig.json /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | package-lock.json -------------------------------------------------------------------------------- /.vscode/launch.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/esamattis/babel-plugin-ts-optchain/HEAD/.vscode/launch.json -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/esamattis/babel-plugin-ts-optchain/HEAD/.vscode/settings.json -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/esamattis/babel-plugin-ts-optchain/HEAD/CONTRIBUTING.md -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/esamattis/babel-plugin-ts-optchain/HEAD/README.md -------------------------------------------------------------------------------- /jest.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/esamattis/babel-plugin-ts-optchain/HEAD/jest.config.js -------------------------------------------------------------------------------- /lerna.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/esamattis/babel-plugin-ts-optchain/HEAD/lerna.json -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/esamattis/babel-plugin-ts-optchain/HEAD/package.json -------------------------------------------------------------------------------- /packages/babel-plugin-ts-optchain/.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | build 3 | lib 4 | package-lock.json -------------------------------------------------------------------------------- /packages/babel-plugin-ts-optchain/.prettierrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/esamattis/babel-plugin-ts-optchain/HEAD/packages/babel-plugin-ts-optchain/.prettierrc -------------------------------------------------------------------------------- /packages/babel-plugin-ts-optchain/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/esamattis/babel-plugin-ts-optchain/HEAD/packages/babel-plugin-ts-optchain/README.md -------------------------------------------------------------------------------- /packages/babel-plugin-ts-optchain/__tests__/plugin.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/esamattis/babel-plugin-ts-optchain/HEAD/packages/babel-plugin-ts-optchain/__tests__/plugin.test.ts -------------------------------------------------------------------------------- /packages/babel-plugin-ts-optchain/__tests__/runtime.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/esamattis/babel-plugin-ts-optchain/HEAD/packages/babel-plugin-ts-optchain/__tests__/runtime.test.ts -------------------------------------------------------------------------------- /packages/babel-plugin-ts-optchain/__tests__/upstream-ts-optchain-tests.source: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/esamattis/babel-plugin-ts-optchain/HEAD/packages/babel-plugin-ts-optchain/__tests__/upstream-ts-optchain-tests.source -------------------------------------------------------------------------------- /packages/babel-plugin-ts-optchain/__tests__/upstream-ts-optchain.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/esamattis/babel-plugin-ts-optchain/HEAD/packages/babel-plugin-ts-optchain/__tests__/upstream-ts-optchain.test.js -------------------------------------------------------------------------------- /packages/babel-plugin-ts-optchain/jest.config.js: -------------------------------------------------------------------------------- 1 | module.exports = require("../../jest.config"); 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-ts-optchain/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/esamattis/babel-plugin-ts-optchain/HEAD/packages/babel-plugin-ts-optchain/package.json -------------------------------------------------------------------------------- /packages/babel-plugin-ts-optchain/src/plugin.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/esamattis/babel-plugin-ts-optchain/HEAD/packages/babel-plugin-ts-optchain/src/plugin.ts -------------------------------------------------------------------------------- /packages/babel-plugin-ts-optchain/src/runtime.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/esamattis/babel-plugin-ts-optchain/HEAD/packages/babel-plugin-ts-optchain/src/runtime.ts -------------------------------------------------------------------------------- /packages/babel-plugin-ts-optchain/tools/compile-upstream-tests.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/esamattis/babel-plugin-ts-optchain/HEAD/packages/babel-plugin-ts-optchain/tools/compile-upstream-tests.ts -------------------------------------------------------------------------------- /packages/babel-plugin-ts-optchain/tsconfig.build.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/esamattis/babel-plugin-ts-optchain/HEAD/packages/babel-plugin-ts-optchain/tsconfig.build.json -------------------------------------------------------------------------------- /packages/babel-plugin-ts-optchain/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/esamattis/babel-plugin-ts-optchain/HEAD/packages/babel-plugin-ts-optchain/tsconfig.json -------------------------------------------------------------------------------- /packages/ts-optchain.macro/.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | build 3 | lib 4 | package-lock.json -------------------------------------------------------------------------------- /packages/ts-optchain.macro/.prettierrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/esamattis/babel-plugin-ts-optchain/HEAD/packages/ts-optchain.macro/.prettierrc -------------------------------------------------------------------------------- /packages/ts-optchain.macro/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/esamattis/babel-plugin-ts-optchain/HEAD/packages/ts-optchain.macro/README.md -------------------------------------------------------------------------------- /packages/ts-optchain.macro/__tests__/entry.macro.js: -------------------------------------------------------------------------------- 1 | module.exports = require("../src/macro"); 2 | -------------------------------------------------------------------------------- /packages/ts-optchain.macro/__tests__/macro.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/esamattis/babel-plugin-ts-optchain/HEAD/packages/ts-optchain.macro/__tests__/macro.test.ts -------------------------------------------------------------------------------- /packages/ts-optchain.macro/jest.config.js: -------------------------------------------------------------------------------- 1 | module.exports = require("../../jest.config"); 2 | -------------------------------------------------------------------------------- /packages/ts-optchain.macro/macro.d.ts: -------------------------------------------------------------------------------- 1 | export {oc} from "ts-optchain"; 2 | -------------------------------------------------------------------------------- /packages/ts-optchain.macro/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/esamattis/babel-plugin-ts-optchain/HEAD/packages/ts-optchain.macro/package.json -------------------------------------------------------------------------------- /packages/ts-optchain.macro/src/macro.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/esamattis/babel-plugin-ts-optchain/HEAD/packages/ts-optchain.macro/src/macro.ts -------------------------------------------------------------------------------- /packages/ts-optchain.macro/tsconfig.build.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/esamattis/babel-plugin-ts-optchain/HEAD/packages/ts-optchain.macro/tsconfig.build.json -------------------------------------------------------------------------------- /packages/ts-optchain.macro/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/esamattis/babel-plugin-ts-optchain/HEAD/packages/ts-optchain.macro/tsconfig.json -------------------------------------------------------------------------------- /tsconfig.base.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/esamattis/babel-plugin-ts-optchain/HEAD/tsconfig.base.json -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/esamattis/babel-plugin-ts-optchain/HEAD/tsconfig.json --------------------------------------------------------------------------------