├── .all-contributorsrc ├── .babelrc ├── .gitignore ├── .npmrc ├── .travis.yml ├── CHANGELOG.md ├── LICENSE ├── README.md ├── bump-changelog ├── lib └── index.js ├── package.json ├── src └── index.js └── test ├── fixtures ├── not-import-impl-when-no-object-assign │ ├── actual.js │ └── expected.js ├── not-replace-non-call-expression │ ├── actual.js │ └── expected.js ├── replace-multiple-object-assign-calls │ ├── actual.js │ └── expected.js ├── replace-single-object-assign-calls │ ├── actual.js │ └── expected.js ├── use-default-config │ ├── actual.js │ └── expected.js └── use-existing-import │ ├── actual.js │ └── expected.js ├── index.js └── mocha.opts /.all-contributorsrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/newoga/babel-plugin-transform-replace-object-assign/HEAD/.all-contributorsrc -------------------------------------------------------------------------------- /.babelrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/newoga/babel-plugin-transform-replace-object-assign/HEAD/.babelrc -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/newoga/babel-plugin-transform-replace-object-assign/HEAD/.gitignore -------------------------------------------------------------------------------- /.npmrc: -------------------------------------------------------------------------------- 1 | package-lock=false 2 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/newoga/babel-plugin-transform-replace-object-assign/HEAD/.travis.yml -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/newoga/babel-plugin-transform-replace-object-assign/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/newoga/babel-plugin-transform-replace-object-assign/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/newoga/babel-plugin-transform-replace-object-assign/HEAD/README.md -------------------------------------------------------------------------------- /bump-changelog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/newoga/babel-plugin-transform-replace-object-assign/HEAD/bump-changelog -------------------------------------------------------------------------------- /lib/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/newoga/babel-plugin-transform-replace-object-assign/HEAD/lib/index.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/newoga/babel-plugin-transform-replace-object-assign/HEAD/package.json -------------------------------------------------------------------------------- /src/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/newoga/babel-plugin-transform-replace-object-assign/HEAD/src/index.js -------------------------------------------------------------------------------- /test/fixtures/not-import-impl-when-no-object-assign/actual.js: -------------------------------------------------------------------------------- 1 | const object = { 2 | a: 1, 3 | b: 2 4 | }; 5 | -------------------------------------------------------------------------------- /test/fixtures/not-import-impl-when-no-object-assign/expected.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | var object = { 4 | a: 1, 5 | b: 2 6 | }; -------------------------------------------------------------------------------- /test/fixtures/not-replace-non-call-expression/actual.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/newoga/babel-plugin-transform-replace-object-assign/HEAD/test/fixtures/not-replace-non-call-expression/actual.js -------------------------------------------------------------------------------- /test/fixtures/not-replace-non-call-expression/expected.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/newoga/babel-plugin-transform-replace-object-assign/HEAD/test/fixtures/not-replace-non-call-expression/expected.js -------------------------------------------------------------------------------- /test/fixtures/replace-multiple-object-assign-calls/actual.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/newoga/babel-plugin-transform-replace-object-assign/HEAD/test/fixtures/replace-multiple-object-assign-calls/actual.js -------------------------------------------------------------------------------- /test/fixtures/replace-multiple-object-assign-calls/expected.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/newoga/babel-plugin-transform-replace-object-assign/HEAD/test/fixtures/replace-multiple-object-assign-calls/expected.js -------------------------------------------------------------------------------- /test/fixtures/replace-single-object-assign-calls/actual.js: -------------------------------------------------------------------------------- 1 | Object.assign({ a: 1 }, { b: 2 }); 2 | -------------------------------------------------------------------------------- /test/fixtures/replace-single-object-assign-calls/expected.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/newoga/babel-plugin-transform-replace-object-assign/HEAD/test/fixtures/replace-single-object-assign-calls/expected.js -------------------------------------------------------------------------------- /test/fixtures/use-default-config/actual.js: -------------------------------------------------------------------------------- 1 | Object.assign({ a: 1 }, { b: 2 }); 2 | -------------------------------------------------------------------------------- /test/fixtures/use-default-config/expected.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/newoga/babel-plugin-transform-replace-object-assign/HEAD/test/fixtures/use-default-config/expected.js -------------------------------------------------------------------------------- /test/fixtures/use-existing-import/actual.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/newoga/babel-plugin-transform-replace-object-assign/HEAD/test/fixtures/use-existing-import/actual.js -------------------------------------------------------------------------------- /test/fixtures/use-existing-import/expected.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/newoga/babel-plugin-transform-replace-object-assign/HEAD/test/fixtures/use-existing-import/expected.js -------------------------------------------------------------------------------- /test/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/newoga/babel-plugin-transform-replace-object-assign/HEAD/test/index.js -------------------------------------------------------------------------------- /test/mocha.opts: -------------------------------------------------------------------------------- 1 | --require @babel/register 2 | --------------------------------------------------------------------------------