├── .eslintrc.js ├── .gitignore ├── .vscode └── launch.json ├── LICENSE ├── README.md ├── package.json ├── public ├── app-icons │ └── icon.jpg ├── config.jpg ├── other-env-code.jpg ├── other-env.jpg ├── production-env-code.jpg └── source-code.jpg ├── src ├── index.ts ├── schema.ts ├── styles.ts ├── types.ts └── utils.ts ├── test ├── fixtures │ ├── other │ │ ├── default-extended-method │ │ │ ├── actual.js │ │ │ └── expected.js │ │ ├── extended-method-by-user │ │ │ ├── actual.js │ │ │ └── expected.js │ │ ├── non-extended-method │ │ │ ├── actual.js │ │ │ └── expected.js │ │ └── override-native-method │ │ │ ├── actual.js │ │ │ └── expected.js │ └── production │ │ ├── drop-all-console │ │ ├── actual.js │ │ └── expected.js │ │ ├── drop-console-by-function │ │ ├── actual.js │ │ └── expected.js │ │ └── drop-console-by-name │ │ ├── actual.js │ │ └── expected.js ├── plugin.test.ts ├── schema.test.ts └── utils.ts ├── tsconfig.json ├── tsconfig.src.json └── tsconfig.test.json /.eslintrc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingxiaoguang/babel-plugin-console-transform/HEAD/.eslintrc.js -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules/ 2 | dist/ 3 | *.lock 4 | -------------------------------------------------------------------------------- /.vscode/launch.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingxiaoguang/babel-plugin-console-transform/HEAD/.vscode/launch.json -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingxiaoguang/babel-plugin-console-transform/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingxiaoguang/babel-plugin-console-transform/HEAD/README.md -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingxiaoguang/babel-plugin-console-transform/HEAD/package.json -------------------------------------------------------------------------------- /public/app-icons/icon.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingxiaoguang/babel-plugin-console-transform/HEAD/public/app-icons/icon.jpg -------------------------------------------------------------------------------- /public/config.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingxiaoguang/babel-plugin-console-transform/HEAD/public/config.jpg -------------------------------------------------------------------------------- /public/other-env-code.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingxiaoguang/babel-plugin-console-transform/HEAD/public/other-env-code.jpg -------------------------------------------------------------------------------- /public/other-env.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingxiaoguang/babel-plugin-console-transform/HEAD/public/other-env.jpg -------------------------------------------------------------------------------- /public/production-env-code.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingxiaoguang/babel-plugin-console-transform/HEAD/public/production-env-code.jpg -------------------------------------------------------------------------------- /public/source-code.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingxiaoguang/babel-plugin-console-transform/HEAD/public/source-code.jpg -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingxiaoguang/babel-plugin-console-transform/HEAD/src/index.ts -------------------------------------------------------------------------------- /src/schema.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingxiaoguang/babel-plugin-console-transform/HEAD/src/schema.ts -------------------------------------------------------------------------------- /src/styles.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingxiaoguang/babel-plugin-console-transform/HEAD/src/styles.ts -------------------------------------------------------------------------------- /src/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingxiaoguang/babel-plugin-console-transform/HEAD/src/types.ts -------------------------------------------------------------------------------- /src/utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingxiaoguang/babel-plugin-console-transform/HEAD/src/utils.ts -------------------------------------------------------------------------------- /test/fixtures/other/default-extended-method/actual.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingxiaoguang/babel-plugin-console-transform/HEAD/test/fixtures/other/default-extended-method/actual.js -------------------------------------------------------------------------------- /test/fixtures/other/default-extended-method/expected.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingxiaoguang/babel-plugin-console-transform/HEAD/test/fixtures/other/default-extended-method/expected.js -------------------------------------------------------------------------------- /test/fixtures/other/extended-method-by-user/actual.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingxiaoguang/babel-plugin-console-transform/HEAD/test/fixtures/other/extended-method-by-user/actual.js -------------------------------------------------------------------------------- /test/fixtures/other/extended-method-by-user/expected.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingxiaoguang/babel-plugin-console-transform/HEAD/test/fixtures/other/extended-method-by-user/expected.js -------------------------------------------------------------------------------- /test/fixtures/other/non-extended-method/actual.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingxiaoguang/babel-plugin-console-transform/HEAD/test/fixtures/other/non-extended-method/actual.js -------------------------------------------------------------------------------- /test/fixtures/other/non-extended-method/expected.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingxiaoguang/babel-plugin-console-transform/HEAD/test/fixtures/other/non-extended-method/expected.js -------------------------------------------------------------------------------- /test/fixtures/other/override-native-method/actual.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingxiaoguang/babel-plugin-console-transform/HEAD/test/fixtures/other/override-native-method/actual.js -------------------------------------------------------------------------------- /test/fixtures/other/override-native-method/expected.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingxiaoguang/babel-plugin-console-transform/HEAD/test/fixtures/other/override-native-method/expected.js -------------------------------------------------------------------------------- /test/fixtures/production/drop-all-console/actual.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingxiaoguang/babel-plugin-console-transform/HEAD/test/fixtures/production/drop-all-console/actual.js -------------------------------------------------------------------------------- /test/fixtures/production/drop-all-console/expected.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingxiaoguang/babel-plugin-console-transform/HEAD/test/fixtures/production/drop-all-console/expected.js -------------------------------------------------------------------------------- /test/fixtures/production/drop-console-by-function/actual.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingxiaoguang/babel-plugin-console-transform/HEAD/test/fixtures/production/drop-console-by-function/actual.js -------------------------------------------------------------------------------- /test/fixtures/production/drop-console-by-function/expected.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingxiaoguang/babel-plugin-console-transform/HEAD/test/fixtures/production/drop-console-by-function/expected.js -------------------------------------------------------------------------------- /test/fixtures/production/drop-console-by-name/actual.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingxiaoguang/babel-plugin-console-transform/HEAD/test/fixtures/production/drop-console-by-name/actual.js -------------------------------------------------------------------------------- /test/fixtures/production/drop-console-by-name/expected.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingxiaoguang/babel-plugin-console-transform/HEAD/test/fixtures/production/drop-console-by-name/expected.js -------------------------------------------------------------------------------- /test/plugin.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingxiaoguang/babel-plugin-console-transform/HEAD/test/plugin.test.ts -------------------------------------------------------------------------------- /test/schema.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingxiaoguang/babel-plugin-console-transform/HEAD/test/schema.test.ts -------------------------------------------------------------------------------- /test/utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingxiaoguang/babel-plugin-console-transform/HEAD/test/utils.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingxiaoguang/babel-plugin-console-transform/HEAD/tsconfig.json -------------------------------------------------------------------------------- /tsconfig.src.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingxiaoguang/babel-plugin-console-transform/HEAD/tsconfig.src.json -------------------------------------------------------------------------------- /tsconfig.test.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lingxiaoguang/babel-plugin-console-transform/HEAD/tsconfig.test.json --------------------------------------------------------------------------------