├── .gitattributes ├── packages ├── babel-cli │ ├── .npmignore │ ├── test │ │ └── fixtures │ │ │ ├── babel-node │ │ │ ├── directory │ │ │ │ ├── stdout.txt │ │ │ │ ├── options.json │ │ │ │ └── in-files │ │ │ │ │ └── foo │ │ │ │ │ └── index.js │ │ │ ├── filename │ │ │ │ ├── stdout.txt │ │ │ │ ├── options.json │ │ │ │ └── in-files │ │ │ │ │ └── bar.js │ │ │ ├── require │ │ │ │ ├── stdout.txt │ │ │ │ ├── options.json │ │ │ │ └── in-files │ │ │ │ │ └── bar2.js │ │ │ ├── arguments │ │ │ │ ├── in-files │ │ │ │ │ └── bar.js │ │ │ │ └── options.json │ │ │ └── --extensions │ │ │ │ └── in-files │ │ │ │ └── foo.bar │ │ │ ├── babel │ │ │ ├── --copy-files │ │ │ │ ├── in-files │ │ │ │ │ └── src │ │ │ │ │ │ ├── .foorc │ │ │ │ │ │ ├── README.md │ │ │ │ │ │ ├── foo │ │ │ │ │ │ └── foo.js │ │ │ │ │ │ └── bar │ │ │ │ │ │ └── index.js │ │ │ │ ├── out-files │ │ │ │ │ └── lib │ │ │ │ │ │ ├── README.md │ │ │ │ │ │ ├── foo │ │ │ │ │ │ └── foo.js │ │ │ │ │ │ └── bar │ │ │ │ │ │ └── index.js │ │ │ │ └── options.json │ │ │ ├── --ignore │ │ │ │ ├── in-files │ │ │ │ │ └── src │ │ │ │ │ │ ├── foo │ │ │ │ │ │ └── foo.js │ │ │ │ │ │ └── bar │ │ │ │ │ │ └── index.js │ │ │ │ ├── stdout.txt │ │ │ │ └── out-files │ │ │ │ │ └── lib │ │ │ │ │ └── bar │ │ │ │ │ └── index.js │ │ │ ├── --only │ │ │ │ ├── in-files │ │ │ │ │ └── src │ │ │ │ │ │ ├── foo │ │ │ │ │ │ └── index.js │ │ │ │ │ │ └── bar │ │ │ │ │ │ └── index.js │ │ │ │ ├── stdout.txt │ │ │ │ ├── out-files │ │ │ │ │ └── lib │ │ │ │ │ │ └── bar │ │ │ │ │ │ └── index.js │ │ │ │ └── options.json │ │ │ ├── --ignore glob │ │ │ │ ├── in-files │ │ │ │ │ └── src │ │ │ │ │ │ ├── a.js │ │ │ │ │ │ ├── b.js │ │ │ │ │ │ ├── baz │ │ │ │ │ │ ├── c.js │ │ │ │ │ │ └── b.foo.js │ │ │ │ │ │ ├── foo.js │ │ │ │ │ │ └── a.foo.js │ │ │ │ └── out-files │ │ │ │ │ └── lib │ │ │ │ │ ├── a.js │ │ │ │ │ ├── b.js │ │ │ │ │ ├── baz │ │ │ │ │ └── c.js │ │ │ │ │ └── foo.js │ │ │ ├── --only glob │ │ │ │ ├── in-files │ │ │ │ │ └── src │ │ │ │ │ │ ├── a.js │ │ │ │ │ │ ├── b.js │ │ │ │ │ │ ├── a.foo.js │ │ │ │ │ │ ├── baz │ │ │ │ │ │ ├── c.js │ │ │ │ │ │ └── b.foo.js │ │ │ │ │ │ └── foo.js │ │ │ │ ├── out-files │ │ │ │ │ └── lib │ │ │ │ │ │ ├── a.foo.js │ │ │ │ │ │ └── baz │ │ │ │ │ │ └── b.foo.js │ │ │ │ └── stdout.txt │ │ │ ├── --ignore complete │ │ │ │ ├── in-files │ │ │ │ │ └── src │ │ │ │ │ │ ├── foobar │ │ │ │ │ │ └── foo.js │ │ │ │ │ │ └── bar │ │ │ │ │ │ └── index.js │ │ │ │ ├── out-files │ │ │ │ │ └── lib │ │ │ │ │ │ └── foobar │ │ │ │ │ │ └── foo.js │ │ │ │ └── stdout.txt │ │ │ ├── --copy-files with ignore │ │ │ │ ├── in-files │ │ │ │ │ └── src │ │ │ │ │ │ ├── README.md │ │ │ │ │ │ ├── foo │ │ │ │ │ │ └── bar.js │ │ │ │ │ │ └── index.js │ │ │ │ ├── out-files │ │ │ │ │ └── lib │ │ │ │ │ │ ├── README.md │ │ │ │ │ │ ├── foo │ │ │ │ │ │ └── bar.js │ │ │ │ │ │ └── index.js │ │ │ │ └── stdout.txt │ │ │ ├── --copy-files with only │ │ │ │ ├── in-files │ │ │ │ │ └── src │ │ │ │ │ │ ├── README.md │ │ │ │ │ │ ├── foo │ │ │ │ │ │ └── bar.js │ │ │ │ │ │ └── index.js │ │ │ │ ├── out-files │ │ │ │ │ └── lib │ │ │ │ │ │ ├── README.md │ │ │ │ │ │ ├── index.js │ │ │ │ │ │ └── foo │ │ │ │ │ │ └── bar.js │ │ │ │ └── stdout.txt │ │ │ ├── stdin │ │ │ │ └── stdin.txt │ │ │ ├── .stdin --source-maps inline │ │ │ │ ├── stdin.txt │ │ │ │ └── options.json │ │ │ ├── stdin --out-file │ │ │ │ ├── stdin.txt │ │ │ │ └── options.json │ │ │ ├── .stdin --out-file --source-maps │ │ │ │ └── stdin.txt │ │ │ ├── dir --out-dir │ │ │ │ ├── in-files │ │ │ │ │ └── src │ │ │ │ │ │ ├── bar │ │ │ │ │ │ └── bar.js │ │ │ │ │ │ └── foo.js │ │ │ │ ├── options.json │ │ │ │ └── stdout.txt │ │ │ ├── filenames --out-file │ │ │ │ └── in-files │ │ │ │ │ ├── script.js │ │ │ │ │ └── script2.js │ │ │ ├── filename --out-file │ │ │ │ └── in-files │ │ │ │ │ └── script.js │ │ │ ├── filename babelrc no comments │ │ │ │ └── .babelrc │ │ │ ├── dir --out-dir --source-maps │ │ │ │ └── in-files │ │ │ │ │ └── src │ │ │ │ │ ├── bar │ │ │ │ │ └── bar.js │ │ │ │ │ └── foo.js │ │ │ ├── stdin --filename │ │ │ │ ├── stdin.txt │ │ │ │ └── stderr.txt │ │ │ ├── filenames --out-file --source-maps │ │ │ │ └── in-files │ │ │ │ │ ├── script.js │ │ │ │ │ └── script2.js │ │ │ ├── dir --out-dir --source-maps inline │ │ │ │ └── in-files │ │ │ │ │ └── src │ │ │ │ │ ├── bar │ │ │ │ │ └── bar.js │ │ │ │ │ └── foo.js │ │ │ ├── filenames --out-file --source-maps inline │ │ │ │ └── in-files │ │ │ │ │ ├── script.js │ │ │ │ │ └── script2.js │ │ │ └── filename --out-file --source-maps inline │ │ │ │ └── in-files │ │ │ │ └── script.js │ │ │ └── babel-external-helpers │ │ │ ├── --output-type var │ │ │ └── stdout.txt │ │ │ └── --whitelist │ │ │ └── options.json │ ├── bin │ │ ├── babel.js │ │ ├── babel-node.js │ │ ├── babel-doctor.js │ │ └── babel-external-helpers.js │ └── index.js ├── babel-core │ ├── .npmignore │ ├── test │ │ └── fixtures │ │ │ ├── api │ │ │ └── file.js │ │ │ ├── config │ │ │ ├── dir1 │ │ │ │ └── src.js │ │ │ ├── dir2 │ │ │ │ ├── src.js │ │ │ │ └── .babelrc │ │ │ ├── dir3 │ │ │ │ ├── src.js │ │ │ │ └── package.json │ │ │ ├── env │ │ │ │ └── src.js │ │ │ ├── pkg │ │ │ │ ├── src.js │ │ │ │ └── .babelignore │ │ │ ├── .babelignore │ │ │ ├── js-config │ │ │ │ └── src.js │ │ │ ├── js-config-default │ │ │ │ └── src.js │ │ │ ├── js-config-error │ │ │ │ └── src.js │ │ │ ├── js-config-error2 │ │ │ │ ├── src.js │ │ │ │ └── .babelrc.js │ │ │ ├── js-config-error3 │ │ │ │ ├── src.js │ │ │ │ └── .babelrc.js │ │ │ ├── js-json-config │ │ │ │ ├── src.js │ │ │ │ ├── .babelrc │ │ │ │ └── .babelrc.js │ │ │ ├── js-pkg-config │ │ │ │ ├── src.js │ │ │ │ ├── package.json │ │ │ │ └── .babelrc.js │ │ │ ├── json-config-error │ │ │ │ ├── src.js │ │ │ │ └── .babelrc │ │ │ ├── json-pkg-config │ │ │ │ ├── src.js │ │ │ │ ├── package.json │ │ │ │ └── .babelrc │ │ │ ├── js-config-extended │ │ │ │ └── src.js │ │ │ ├── json-pkg-config-no-babel │ │ │ │ ├── package.json │ │ │ │ ├── src.js │ │ │ │ └── .babelrc │ │ │ ├── complex-plugin-config │ │ │ │ ├── one.js │ │ │ │ ├── six.js │ │ │ │ ├── ten.js │ │ │ │ ├── two.js │ │ │ │ ├── eight.js │ │ │ │ ├── five.js │ │ │ │ ├── four.js │ │ │ │ ├── nine.js │ │ │ │ ├── seven.js │ │ │ │ ├── three.js │ │ │ │ ├── eighteen.js │ │ │ │ ├── eleven.js │ │ │ │ ├── fifteen.js │ │ │ │ ├── fourteen.js │ │ │ │ ├── nineteen.js │ │ │ │ ├── sixteen.js │ │ │ │ ├── thirteen.js │ │ │ │ ├── twelve.js │ │ │ │ ├── twenty.js │ │ │ │ └── seventeen.js │ │ │ ├── extended.babelrc.json │ │ │ ├── .babelrc │ │ │ └── ignore-negate │ │ │ │ └── .babelrc │ │ │ ├── resolution │ │ │ ├── relative-paths │ │ │ │ └── dir │ │ │ │ │ ├── plugin.js │ │ │ │ │ └── preset.js │ │ │ ├── throw-missing-paths │ │ │ │ └── .gitignore │ │ │ ├── module-paths │ │ │ │ └── node_modules │ │ │ │ │ ├── plugin │ │ │ │ │ └── index.js │ │ │ │ │ └── preset │ │ │ │ │ └── index.js │ │ │ ├── nested-module-paths │ │ │ │ └── node_modules │ │ │ │ │ └── mod │ │ │ │ │ ├── plugin.js │ │ │ │ │ └── preset.js │ │ │ ├── throw-module-paths │ │ │ │ └── node_modules │ │ │ │ │ └── foo │ │ │ │ │ └── index.js │ │ │ ├── standard-paths │ │ │ │ └── node_modules │ │ │ │ │ ├── babel-plugin-mod │ │ │ │ │ └── index.js │ │ │ │ │ └── babel-preset-mod │ │ │ │ │ └── index.js │ │ │ ├── babel-org-paths │ │ │ │ └── node_modules │ │ │ │ │ └── @babel │ │ │ │ │ ├── plugin-foo │ │ │ │ │ └── index.js │ │ │ │ │ └── preset-foo │ │ │ │ │ └── index.js │ │ │ ├── foo-org-paths │ │ │ │ └── node_modules │ │ │ │ │ └── @foo │ │ │ │ │ ├── babel-plugin-mod │ │ │ │ │ └── index.js │ │ │ │ │ └── babel-preset-mod │ │ │ │ │ └── index.js │ │ │ ├── scoped-nested-module-paths │ │ │ │ └── node_modules │ │ │ │ │ └── @foo │ │ │ │ │ └── mod │ │ │ │ │ ├── plugin.js │ │ │ │ │ └── preset.js │ │ │ ├── throw-babel-paths │ │ │ │ └── node_modules │ │ │ │ │ └── @babel │ │ │ │ │ ├── plugin-foo │ │ │ │ │ └── index.js │ │ │ │ │ └── preset-foo │ │ │ │ │ └── index.js │ │ │ ├── babel-scoped-nested-module-paths │ │ │ │ └── node_modules │ │ │ │ │ └── @babel │ │ │ │ │ └── mod │ │ │ │ │ ├── plugin.js │ │ │ │ │ └── preset.js │ │ │ └── throw-opposite-paths │ │ │ │ └── node_modules │ │ │ │ ├── babel-plugin-testplugin │ │ │ │ └── index.js │ │ │ │ └── babel-preset-testpreset │ │ │ │ └── index.js │ │ │ ├── transformation │ │ │ ├── source-maps │ │ │ │ ├── full │ │ │ │ │ ├── actual.js │ │ │ │ │ └── expected.js │ │ │ │ ├── inline │ │ │ │ │ └── actual.js │ │ │ │ ├── arrow-function │ │ │ │ │ └── actual.js │ │ │ │ ├── options.json │ │ │ │ └── input-source-map │ │ │ │ │ └── options.json │ │ │ ├── misc │ │ │ │ ├── options.json │ │ │ │ ├── shebang │ │ │ │ │ ├── actual.js │ │ │ │ │ └── expected.js │ │ │ │ └── regression-1149 │ │ │ │ │ ├── actual.js │ │ │ │ │ └── expected.js │ │ │ └── errors │ │ │ │ └── syntax │ │ │ │ └── actual.js │ │ │ ├── option-manager │ │ │ └── presets │ │ │ │ └── es5_invalid.js │ │ │ └── browserify │ │ │ └── register.js │ ├── index.js │ └── register.js ├── babel-runtime │ ├── README.md │ ├── .npmignore │ ├── regenerator │ │ └── index.js │ ├── core-js │ │ └── map.js │ └── core-js.js ├── babel-traverse │ ├── README.md │ ├── .npmignore │ └── test │ │ ├── fixtures │ │ └── comments │ │ │ └── attachment │ │ │ └── options.json │ │ └── index.js ├── babel-types │ └── .npmignore ├── babel-code-frame │ └── .npmignore ├── babel-generator │ ├── .npmignore │ └── test │ │ └── fixtures │ │ ├── comments │ │ ├── empty │ │ │ ├── actual.js │ │ │ └── expected.js │ │ ├── simple-statement-comment │ │ │ ├── actual.js │ │ │ └── expected.js │ │ ├── comment-only │ │ │ ├── actual.js │ │ │ └── expected.js │ │ ├── do-while-line-comment │ │ │ ├── expected.js │ │ │ └── actual.js │ │ ├── simple-line-comment │ │ │ ├── actual.js │ │ │ └── expected.js │ │ ├── slash-before-leading-comment-compact │ │ │ ├── expected.js │ │ │ ├── actual.js │ │ │ └── options.json │ │ ├── block-line-comment-with-concise-format │ │ │ ├── options.json │ │ │ └── expected.js │ │ ├── return-no-argument │ │ │ ├── actual.js │ │ │ └── expected.js │ │ ├── block-line-comment │ │ │ ├── actual.js │ │ │ └── expected.js │ │ └── comment-only-with-space │ │ │ ├── actual.js │ │ │ └── expected.js │ │ ├── escapes │ │ ├── jsonEscape │ │ │ ├── actual.js │ │ │ └── expected.js │ │ └── options.json │ │ ├── types │ │ ├── EmptyStatement │ │ │ ├── actual.js │ │ │ └── expected.js │ │ ├── DebuggerStatement │ │ │ ├── actual.js │ │ │ └── expected.js │ │ ├── Import │ │ │ ├── actual.js │ │ │ └── expected.js │ │ ├── XJSEmptyExpression │ │ │ ├── actual.js │ │ │ └── expected.js │ │ ├── ExportSpecifier11 │ │ │ ├── actual.js │ │ │ └── expected.js │ │ ├── Identifier │ │ │ ├── actual.js │ │ │ └── expected.js │ │ ├── ConditionalExpression │ │ │ ├── actual.js │ │ │ └── expected.js │ │ ├── ExportSpecifier │ │ │ ├── actual.js │ │ │ └── expected.js │ │ ├── ExportSpecifier12 │ │ │ ├── actual.js │ │ │ └── expected.js │ │ ├── ExportSpecifier3 │ │ │ ├── actual.js │ │ │ └── expected.js │ │ ├── XJSMemberExpression │ │ │ ├── actual.js │ │ │ └── expected.js │ │ ├── XJSNamespacedName │ │ │ ├── actual.js │ │ │ └── expected.js │ │ ├── ExportDefaultDeclaration │ │ │ ├── actual.js │ │ │ └── expected.js │ │ ├── ExportDefaultDeclaration2 │ │ │ ├── actual.js │ │ │ └── expected.js │ │ ├── ExportDefaultDeclaration3 │ │ │ ├── actual.js │ │ │ └── expected.js │ │ ├── ExportSpecifier13 │ │ │ ├── actual.js │ │ │ └── expected.js │ │ ├── ExportSpecifier14 │ │ │ ├── actual.js │ │ │ └── expected.js │ │ ├── ExportSpecifier2 │ │ │ ├── actual.js │ │ │ └── expected.js │ │ ├── ExportSpecifier6 │ │ │ ├── actual.js │ │ │ └── expected.js │ │ ├── BlockStatement │ │ │ ├── actual.js │ │ │ └── expected.js │ │ ├── ExportDefaultDeclaration4 │ │ │ ├── actual.js │ │ │ └── expected.js │ │ ├── ExportDefaultDeclaration6 │ │ │ ├── actual.js │ │ │ └── expected.js │ │ ├── ExportSpecifier15 │ │ │ ├── actual.js │ │ │ └── expected.js │ │ ├── ExportSpecifier5 │ │ │ ├── actual.js │ │ │ └── expected.js │ │ ├── ExportSpecifier7 │ │ │ ├── actual.js │ │ │ └── expected.js │ │ ├── LabeledStatement │ │ │ ├── actual.js │ │ │ └── expected.js │ │ ├── LogicalExpression │ │ │ ├── actual.js │ │ │ └── expected.js │ │ ├── SequenceExpression │ │ │ ├── expected.js │ │ │ └── actual.js │ │ ├── ExportDefaultDeclaration8 │ │ │ ├── actual.js │ │ │ └── expected.js │ │ ├── ExportSpecifier4 │ │ │ ├── actual.js │ │ │ └── expected.js │ │ ├── ExportSpecifier8 │ │ │ ├── actual.js │ │ │ └── expected.js │ │ ├── ExportSpecifier9 │ │ │ ├── actual.js │ │ │ └── expected.js │ │ ├── UpdateExpression │ │ │ ├── actual.js │ │ │ └── expected.js │ │ ├── XJSSpreadAttribute │ │ │ ├── actual.js │ │ │ └── expected.js │ │ ├── XJSSpreadChildren │ │ │ ├── actual.js │ │ │ └── expected.js │ │ ├── ClassExpression │ │ │ ├── actual.js │ │ │ └── expected.js │ │ ├── ExportDefaultDeclaration5 │ │ │ ├── actual.js │ │ │ └── expected.js │ │ ├── ExportDefaultDeclaration7 │ │ │ ├── actual.js │ │ │ └── expected.js │ │ ├── NewExpression │ │ │ ├── actual.js │ │ │ └── expected.js │ │ ├── XJSExpressionContainer │ │ │ ├── actual.js │ │ │ └── expected.js │ │ ├── AwaitExpression │ │ │ ├── actual.js │ │ │ └── expected.js │ │ ├── ExportSpecifier10 │ │ │ ├── actual.js │ │ │ └── expected.js │ │ ├── WithStatement │ │ │ ├── actual.js │ │ │ └── expected.js │ │ └── WhileStatement │ │ │ ├── actual.js │ │ │ └── expected.js │ │ ├── compact │ │ ├── while │ │ │ ├── actual.js │ │ │ └── expected.js │ │ ├── assignment │ │ │ ├── expected.js │ │ │ └── actual.js │ │ ├── options.json │ │ ├── single-line-comment │ │ │ ├── actual.js │ │ │ └── expected.js │ │ └── expression-statement │ │ │ └── expected.js │ │ ├── flow │ │ ├── null-literal-types │ │ │ ├── actual.js │ │ │ └── expected.js │ │ ├── boolean-literal-types │ │ │ ├── actual.js │ │ │ └── expected.js │ │ └── this-types │ │ │ ├── actual.js │ │ │ └── expected.js │ │ ├── minified │ │ ├── options.json │ │ └── block-statements │ │ │ └── expected.js │ │ ├── parentheses │ │ ├── arrow-function │ │ │ ├── actual.js │ │ │ └── expected.js │ │ ├── do-expression │ │ │ ├── actual.js │ │ │ └── expected.js │ │ ├── object │ │ │ ├── actual.js │ │ │ └── expected.js │ │ └── tagged-template-expression │ │ │ ├── actual.js │ │ │ └── expected.js │ │ ├── retainFunctionParens │ │ ├── negation │ │ │ ├── actual.js │ │ │ └── expected.js │ │ ├── nested │ │ │ ├── expected.js │ │ │ └── actual.js │ │ ├── argument │ │ │ ├── actual.js │ │ │ └── expected.js │ │ ├── assignment │ │ │ ├── actual.js │ │ │ └── expected.js │ │ ├── no-parens │ │ │ ├── actual.js │ │ │ └── expected.js │ │ └── options.json │ │ ├── harmony-edgecase │ │ ├── export-default-object │ │ │ ├── actual.js │ │ │ └── expected.js │ │ ├── export-default-class │ │ │ ├── actual.js │ │ │ └── expected.js │ │ ├── export-default-function │ │ │ ├── actual.js │ │ │ └── expected.js │ │ ├── export-default-iife │ │ │ ├── actual.js │ │ │ └── expected.js │ │ ├── export-default-invoked-class │ │ │ ├── actual.js │ │ │ └── expected.js │ │ ├── export-default-named-class │ │ │ ├── actual.js │ │ │ └── expected.js │ │ └── export-default-named-function │ │ │ ├── actual.js │ │ │ └── expected.js │ │ └── edgecase │ │ ├── floating-point │ │ ├── actual.js │ │ └── expected.js │ │ ├── bitwise-precedence │ │ ├── actual.js │ │ └── expected.js │ │ ├── unary-op │ │ ├── actual.js │ │ └── expected.js │ │ └── return-with-retainlines-option │ │ └── options.json ├── babel-helpers │ └── .npmignore ├── babel-messages │ └── .npmignore ├── babel-polyfill │ ├── .npmignore │ ├── README.md │ └── src │ │ ├── core-js │ │ └── modules │ │ │ ├── es6.map.js │ │ │ ├── es6.set.js │ │ │ ├── es6.promise.js │ │ │ ├── es6.symbol.js │ │ │ ├── web.timers.js │ │ │ ├── es6.array.fill.js │ │ │ ├── es6.array.find.js │ │ │ ├── es6.array.from.js │ │ │ ├── es6.array.of.js │ │ │ ├── es6.math.acosh.js │ │ │ ├── es6.math.asinh.js │ │ │ ├── es6.math.atanh.js │ │ │ ├── es6.math.cbrt.js │ │ │ ├── es6.math.clz32.js │ │ │ ├── es6.math.cosh.js │ │ │ ├── es6.math.expm1.js │ │ │ ├── es6.math.hypot.js │ │ │ ├── es6.math.imul.js │ │ │ ├── es6.math.log10.js │ │ │ ├── es6.math.log1p.js │ │ │ ├── es6.math.log2.js │ │ │ ├── es6.math.sign.js │ │ │ ├── es6.math.sinh.js │ │ │ ├── es6.math.tanh.js │ │ │ ├── es6.math.trunc.js │ │ │ ├── es6.object.is.js │ │ │ ├── es6.string.raw.js │ │ │ ├── es6.weak-map.js │ │ │ ├── es6.weak-set.js │ │ │ ├── web.immediate.js │ │ │ ├── es6.math.fround.js │ │ │ ├── es6.reflect.get.js │ │ │ ├── es6.reflect.has.js │ │ │ ├── es6.reflect.set.js │ │ │ ├── es6.regexp.flags.js │ │ │ ├── es6.regexp.match.js │ │ │ ├── es6.regexp.split.js │ │ │ ├── web.dom.iterable.js │ │ │ ├── es6.array.iterator.js │ │ │ ├── es6.function.name.js │ │ │ ├── es6.number.epsilon.js │ │ │ ├── es6.number.is-nan.js │ │ │ ├── es6.object.assign.js │ │ │ ├── es6.reflect.apply.js │ │ │ ├── es6.regexp.replace.js │ │ │ ├── es6.regexp.search.js │ │ │ ├── es6.string.includes.js │ │ │ ├── es6.string.repeat.js │ │ │ ├── es6.typed.data-view.js │ │ │ ├── es7.array.includes.js │ │ │ ├── es7.object.entries.js │ │ │ ├── es7.object.values.js │ │ │ ├── es7.string.pad-end.js │ │ │ ├── es6.array.copy-within.js │ │ │ ├── es6.array.find-index.js │ │ │ ├── es6.number.is-finite.js │ │ │ ├── es6.number.is-integer.js │ │ │ ├── es6.reflect.construct.js │ │ │ ├── es6.reflect.own-keys.js │ │ │ ├── es6.string.ends-with.js │ │ │ ├── es6.typed.int16-array.js │ │ │ ├── es6.typed.int32-array.js │ │ │ ├── es6.typed.int8-array.js │ │ │ ├── es6.typed.uint8-array.js │ │ │ ├── es7.string.pad-start.js │ │ │ ├── es6.string.code-point-at.js │ │ │ ├── es6.string.starts-with.js │ │ │ ├── es6.typed.array-buffer.js │ │ │ ├── es6.typed.float32-array.js │ │ │ ├── es6.typed.float64-array.js │ │ │ ├── es6.typed.uint16-array.js │ │ │ ├── es6.typed.uint32-array.js │ │ │ ├── es6.number.is-safe-integer.js │ │ │ ├── es6.reflect.is-extensible.js │ │ │ ├── es6.string.from-code-point.js │ │ │ ├── es6.number.max-safe-integer.js │ │ │ ├── es6.number.min-safe-integer.js │ │ │ ├── es6.object.set-prototype-of.js │ │ │ ├── es6.reflect.define-property.js │ │ │ ├── es6.reflect.delete-property.js │ │ │ ├── es6.reflect.get-prototype-of.js │ │ │ ├── es6.reflect.set-prototype-of.js │ │ │ └── es6.typed.uint8-clamped-array.js │ │ └── regenerator-runtime │ │ └── runtime.js ├── babel-register │ ├── .npmignore │ └── test │ │ └── __data__ │ │ └── es2015.js ├── babel-template │ └── .npmignore ├── babel-helper-fixtures │ └── .npmignore ├── babel-helper-regex │ ├── .npmignore │ └── README.md ├── babel-preset-es2015 │ ├── .npmignore │ └── test │ │ └── fixtures │ │ ├── traceur │ │ ├── Syntax │ │ │ ├── Empty.js │ │ │ ├── null.js │ │ │ └── InInBinding.js │ │ ├── Modules │ │ │ ├── resources │ │ │ │ ├── a.js │ │ │ │ ├── c.js │ │ │ │ ├── x.js │ │ │ │ ├── a2.js │ │ │ │ ├── d.js │ │ │ │ ├── default.js │ │ │ │ ├── b.js │ │ │ │ ├── f.js │ │ │ │ ├── side-effect.js │ │ │ │ ├── m.js │ │ │ │ ├── m2.js │ │ │ │ ├── side-effect2.js │ │ │ │ ├── p.js │ │ │ │ ├── default-name.js │ │ │ │ ├── export-destructuring.js │ │ │ │ ├── m3.js │ │ │ │ ├── o.js │ │ │ │ └── re-export-default.js │ │ │ └── EmptyNamedImport.module.js │ │ ├── Classes │ │ │ └── SemiColon.js │ │ └── Spread │ │ │ ├── NoIterator.js │ │ │ └── NotAnObject.js │ │ ├── preset-options │ │ ├── loose │ │ │ └── actual.js │ │ ├── loose-false │ │ │ └── actual.js │ │ ├── modules-umd │ │ │ └── actual.js │ │ ├── no-options │ │ │ └── actual.js │ │ ├── empty-options │ │ │ └── actual.js │ │ ├── modules-amd-loose │ │ │ └── actual.js │ │ ├── modules-commonjs │ │ │ └── actual.js │ │ ├── modules-false │ │ │ ├── actual.js │ │ │ └── expected.js │ │ ├── modules-systemjs │ │ │ └── actual.js │ │ └── string-preset │ │ │ ├── actual.js │ │ │ └── options.json │ │ └── esnext │ │ └── es6-templates │ │ └── no-interpolation.js ├── babel-preset-es2016 │ └── .npmignore ├── babel-preset-es2017 │ └── .npmignore ├── babel-preset-flow │ └── .npmignore ├── babel-preset-react │ └── .npmignore ├── babel-preset-stage-0 │ └── .npmignore ├── babel-preset-stage-1 │ └── .npmignore ├── babel-preset-stage-2 │ └── .npmignore ├── babel-preset-stage-3 │ └── .npmignore ├── babel-helper-call-delegate │ ├── .npmignore │ └── README.md ├── babel-helper-define-map │ ├── .npmignore │ └── README.md ├── babel-helper-explode-class │ ├── .npmignore │ └── README.md ├── babel-helper-function-name │ ├── .npmignore │ └── README.md ├── babel-plugin-syntax-flow │ └── .npmignore ├── babel-plugin-syntax-jsx │ └── .npmignore ├── babel-helper-bindify-decorators │ ├── .npmignore │ └── README.md ├── babel-helper-builder-react-jsx │ └── .npmignore ├── babel-helper-get-function-arity │ ├── .npmignore │ └── README.md ├── babel-helper-hoist-variables │ ├── .npmignore │ └── README.md ├── babel-helper-plugin-test-runner │ └── .npmignore ├── babel-helper-replace-supers │ ├── .npmignore │ └── README.md ├── babel-plugin-external-helpers │ └── .npmignore ├── babel-plugin-syntax-decorators │ └── .npmignore ├── babel-plugin-transform-eval │ └── .npmignore ├── babel-plugin-transform-jscript │ ├── .npmignore │ └── test │ │ └── fixtures │ │ └── jscript │ │ └── simple-class │ │ └── actual.js ├── babel-plugin-transform-runtime │ ├── .npmignore │ ├── test │ │ └── fixtures │ │ │ ├── runtime │ │ │ ├── class │ │ │ │ └── actual.js │ │ │ ├── catch-all │ │ │ │ └── actual.js │ │ │ ├── no-helpers │ │ │ │ └── actual.js │ │ │ ├── symbol-iterator │ │ │ │ └── actual.js │ │ │ ├── es6-for-of │ │ │ │ └── actual.js │ │ │ ├── modules │ │ │ │ └── actual.js │ │ │ ├── regenerator-runtime │ │ │ │ └── actual.js │ │ │ └── symbol-iterator-in │ │ │ │ └── actual.js │ │ │ └── use-options │ │ │ ├── useBuiltIns │ │ │ └── actual.js │ │ │ ├── useESModules │ │ │ └── actual.js │ │ │ └── useBuiltIns-useESModules │ │ │ └── actual.js │ └── src │ │ └── options.json ├── babel-plugin-check-es2015-constants │ ├── .npmignore │ └── test │ │ └── fixtures │ │ └── general │ │ ├── flow-declar │ │ ├── expected.js │ │ └── actual.js │ │ ├── update-expression │ │ └── actual.js │ │ └── loop │ │ └── options.json ├── babel-plugin-syntax-async-functions │ └── .npmignore ├── babel-plugin-syntax-async-generators │ └── .npmignore ├── babel-plugin-syntax-class-properties │ └── .npmignore ├── babel-plugin-syntax-do-expressions │ └── .npmignore ├── babel-plugin-syntax-dynamic-import │ └── .npmignore ├── babel-plugin-syntax-function-bind │ └── .npmignore ├── babel-plugin-syntax-function-sent │ └── .npmignore ├── babel-plugin-transform-decorators │ └── .npmignore ├── babel-plugin-transform-es2015-for-of │ ├── .npmignore │ └── test │ │ └── fixtures │ │ ├── loose │ │ ├── identifier │ │ │ └── actual.js │ │ ├── let │ │ │ └── actual.js │ │ ├── var │ │ │ └── actual.js │ │ └── member-expression │ │ │ └── actual.js │ │ └── spec │ │ ├── identifier │ │ └── actual.js │ │ ├── let │ │ └── actual.js │ │ ├── var │ │ └── actual.js │ │ ├── member-expression │ │ └── actual.js │ │ └── options.json ├── babel-plugin-transform-es2015-spread │ ├── .npmignore │ └── test │ │ └── fixtures │ │ └── spread │ │ ├── single │ │ ├── actual.js │ │ └── expected.js │ │ ├── array-literal-middle │ │ └── actual.js │ │ ├── method-call-array-literal │ │ └── actual.js │ │ ├── method-call-single-arg │ │ └── actual.js │ │ ├── method-call-first │ │ └── actual.js │ │ ├── method-call-middle │ │ └── actual.js │ │ ├── method-call-multiple-args │ │ └── actual.js │ │ └── array-literal-multiple │ │ └── actual.js ├── babel-plugin-transform-flow-comments │ ├── .npmignore │ └── test │ │ └── fixtures │ │ └── flow-comments │ │ ├── type │ │ └── actual.js │ │ └── arrow-single-optional-param │ │ └── actual.js ├── babel-plugin-transform-function-bind │ └── .npmignore ├── babel-plugin-transform-object-assign │ └── .npmignore ├── babel-plugin-transform-react-jsx │ ├── .npmignore │ └── test │ │ └── fixtures │ │ ├── react │ │ ├── should-convert-simple-tags │ │ │ └── actual.js │ │ ├── should-allow-js-namespacing │ │ │ └── actual.js │ │ ├── should-convert-simple-text │ │ │ └── actual.js │ │ ├── jsx-with-retainlines-option │ │ │ └── actual.js │ │ ├── jsx-without-retainlines-option │ │ │ └── actual.js │ │ ├── should-disallow-xml-namespacing │ │ │ └── actual.js │ │ └── should-transform-known-hyphenated-tags │ │ │ └── actual.js │ │ └── useBuiltIns │ │ └── assignment │ │ └── actual.js ├── babel-plugin-transform-regenerator │ ├── .npmignore │ ├── src │ │ └── index.js │ └── test │ │ └── fixtures │ │ └── regression │ │ ├── T7041 │ │ └── actual.js │ │ └── options.json ├── babel-plugin-transform-strict-mode │ ├── .npmignore │ └── test │ │ └── fixtures │ │ ├── strict-mode │ │ ├── use-strict-add │ │ │ ├── actual.js │ │ │ └── expected.js │ │ ├── undefined-this-root-call │ │ │ └── actual.js │ │ ├── undefined-this-root-reference │ │ │ └── actual.js │ │ ├── use-strict-exists │ │ │ ├── actual.js │ │ │ └── expected.js │ │ └── undefined-this-root-declaration │ │ │ └── actual.js │ │ ├── auxiliary-comment │ │ └── use-strict-add │ │ │ └── actual.js │ │ └── disable-strict-mode │ │ └── strictMode-false │ │ ├── actual.js │ │ └── expected.js ├── babel-helper-optimise-call-expression │ ├── .npmignore │ └── README.md ├── babel-helper-remap-async-to-generator │ ├── .npmignore │ └── README.md ├── babel-plugin-syntax-export-extensions │ └── .npmignore ├── babel-plugin-syntax-object-rest-spread │ └── .npmignore ├── babel-plugin-transform-async-functions │ └── .npmignore ├── babel-plugin-transform-async-to-generator │ ├── .npmignore │ └── test │ │ └── fixtures │ │ ├── regression │ │ └── T6882 │ │ │ └── exec.js │ │ └── export-async │ │ └── lone-export │ │ └── actual.js ├── babel-plugin-transform-class-properties │ ├── .npmignore │ └── test │ │ └── fixtures │ │ ├── spec │ │ ├── instance │ │ │ └── actual.js │ │ ├── instance-undefined │ │ │ └── actual.js │ │ ├── static │ │ │ └── actual.js │ │ ├── derived │ │ │ └── actual.js │ │ └── static-undefined │ │ │ └── actual.js │ │ └── general │ │ ├── instance-undefined │ │ └── actual.js │ │ ├── instance │ │ └── actual.js │ │ ├── static-undefined │ │ └── actual.js │ │ └── static │ │ └── actual.js ├── babel-plugin-transform-do-expressions │ ├── .npmignore │ └── test │ │ └── fixtures │ │ └── do-expressions │ │ └── empty.js ├── babel-plugin-transform-es2015-classes │ ├── .npmignore │ └── test │ │ └── fixtures │ │ ├── spec │ │ ├── plain-class │ │ │ └── actual.js │ │ ├── super-class │ │ │ └── actual.js │ │ ├── export-default │ │ │ └── actual.js │ │ ├── export-super-class │ │ │ └── actual.js │ │ └── inferred-expression-name │ │ │ └── actual.js │ │ ├── regression │ │ └── 2941 │ │ │ └── actual.js │ │ └── loose │ │ └── super-class │ │ └── actual.js ├── babel-plugin-transform-es2015-instanceof │ ├── .npmignore │ └── test │ │ └── fixtures │ │ └── instanceof │ │ └── instanceof │ │ ├── actual.js │ │ └── expected.js ├── babel-plugin-transform-es2015-literals │ └── .npmignore ├── babel-plugin-transform-es2015-modules-amd │ ├── .npmignore │ └── test │ │ └── fixtures │ │ └── amd │ │ ├── get-module-name-option │ │ └── actual.js │ │ ├── module-name │ │ ├── actual.js │ │ └── options.json │ │ ├── export-named │ │ └── actual.js │ │ ├── export-default-2 │ │ └── actual.js │ │ ├── export-default-3 │ │ └── actual.js │ │ ├── export-default │ │ └── actual.js │ │ ├── export-from │ │ └── actual.js │ │ ├── export-named-2 │ │ └── actual.js │ │ ├── export-named-3 │ │ └── actual.js │ │ ├── export-default-4 │ │ └── actual.js │ │ ├── export-default-6 │ │ └── actual.js │ │ ├── export-from-2 │ │ └── actual.js │ │ ├── export-named-4 │ │ └── actual.js │ │ ├── export-default-8 │ │ └── actual.js │ │ ├── export-default-9 │ │ └── actual.js │ │ ├── export-from-3 │ │ └── actual.js │ │ ├── export-from-4 │ │ └── actual.js │ │ ├── export-named-5 │ │ └── actual.js │ │ ├── export-default-5 │ │ └── actual.js │ │ ├── export-default-7 │ │ └── actual.js │ │ ├── export-from-5 │ │ └── actual.js │ │ ├── export-from-6 │ │ └── actual.js │ │ ├── imports-glob │ │ └── actual.js │ │ └── noInterop-export-from │ │ └── actual.js ├── babel-plugin-transform-es2015-modules-umd │ ├── .npmignore │ └── test │ │ └── fixtures │ │ └── umd │ │ ├── get-module-name-option │ │ └── actual.js │ │ ├── module-id │ │ ├── actual.js │ │ └── options.json │ │ ├── module-name │ │ ├── actual.js │ │ └── options.json │ │ ├── export-named │ │ └── actual.js │ │ ├── export-default-2 │ │ └── actual.js │ │ ├── export-default-3 │ │ └── actual.js │ │ ├── export-default │ │ └── actual.js │ │ ├── export-from-6 │ │ └── actual.js │ │ ├── export-named-4 │ │ └── actual.js │ │ ├── export-named-5 │ │ └── actual.js │ │ ├── export-default-4 │ │ └── actual.js │ │ ├── export-default-6 │ │ └── actual.js │ │ ├── export-from │ │ └── actual.js │ │ ├── export-named-2 │ │ └── actual.js │ │ ├── override-export-name │ │ └── actual.js │ │ ├── export-default-8 │ │ └── actual.js │ │ ├── export-from-4 │ │ └── actual.js │ │ ├── export-from-5 │ │ └── actual.js │ │ ├── export-named-3 │ │ └── actual.js │ │ ├── override-import-name │ │ └── actual.js │ │ ├── export-default-5 │ │ └── actual.js │ │ ├── export-default-7 │ │ └── actual.js │ │ ├── export-default-9 │ │ └── actual.js │ │ ├── export-from-2 │ │ └── actual.js │ │ ├── export-from-3 │ │ └── actual.js │ │ ├── imports-glob │ │ └── actual.js │ │ ├── module-id-with-overridden-global │ │ └── actual.js │ │ └── module-name-with-overridden-global │ │ └── actual.js ├── babel-plugin-transform-es2015-parameters │ └── .npmignore ├── babel-plugin-transform-export-extensions │ ├── .npmignore │ └── test │ │ └── fixtures │ │ └── export-extensions │ │ ├── default-es6 │ │ └── actual.js │ │ └── namespace-es6 │ │ └── actual.js ├── babel-plugin-transform-flow-strip-types │ ├── .npmignore │ └── test │ │ └── fixtures │ │ └── regression │ │ └── arrow-type-declaration │ │ ├── actual.js │ │ └── expected.js ├── babel-plugin-transform-object-rest-spread │ ├── .npmignore │ └── test │ │ └── fixtures │ │ ├── useBuiltIns │ │ ├── assignment-true │ │ │ ├── actual.js │ │ │ └── expected.js │ │ └── assignment-invalid-option │ │ │ └── actual.js │ │ └── object-spread │ │ ├── expression │ │ └── actual.js │ │ └── variable-declaration │ │ └── actual.js ├── babel-plugin-transform-proto-to-assign │ ├── .npmignore │ └── test │ │ └── fixtures │ │ └── proto-to-assign │ │ └── assignment-statement │ │ └── actual.js ├── babel-plugin-transform-react-display-name │ ├── .npmignore │ └── test │ │ └── fixtures │ │ └── display-name │ │ └── nested │ │ └── actual.js ├── babel-plugin-transform-react-jsx-compat │ └── .npmignore ├── babel-plugin-transform-react-jsx-self │ ├── .npmignore │ └── test │ │ └── fixtures │ │ └── react-source │ │ └── basic-sample │ │ ├── actual.js │ │ └── expected.js ├── babel-plugin-transform-react-jsx-source │ ├── .npmignore │ └── test │ │ └── fixtures │ │ └── react-source │ │ └── no-jsx │ │ ├── actual.js │ │ └── expected.js ├── babel-helper-explode-assignable-expression │ └── .npmignore ├── babel-helper-transform-fixture-test-runner │ └── .npmignore ├── babel-plugin-syntax-exponentiation-operator │ └── .npmignore ├── babel-plugin-syntax-trailing-function-commas │ ├── .npmignore │ └── test │ │ └── fixtures │ │ └── trailing-function-commas │ │ ├── call │ │ └── expected.js │ │ ├── arrow-function │ │ ├── actual.js │ │ └── expected.js │ │ └── new-expression │ │ ├── actual.js │ │ └── expected.js ├── babel-plugin-transform-async-to-module-method │ └── .npmignore ├── babel-plugin-transform-es2015-arrow-functions │ ├── .npmignore │ └── test │ │ └── fixtures │ │ └── arrow-functions │ │ ├── empty-block │ │ ├── actual.js │ │ └── expected.js │ │ ├── expression │ │ └── actual.js │ │ ├── inside-call │ │ └── actual.js │ │ ├── empty-arguments │ │ └── actual.js │ │ ├── paran-insertion │ │ └── actual.js │ │ └── single-argument │ │ └── actual.js ├── babel-plugin-transform-es2015-block-scoping │ ├── .npmignore │ └── test │ │ └── fixtures │ │ ├── .fail │ │ ├── call.js │ │ ├── export.js │ │ ├── update.js │ │ ├── assignment.js │ │ └── defaults.js │ │ ├── pass │ │ ├── export.js │ │ ├── update.js │ │ ├── assignment.js │ │ └── defaults.js │ │ └── general │ │ └── program │ │ ├── actual.js │ │ └── expected.js ├── babel-plugin-transform-es2015-destructuring │ ├── .npmignore │ └── test │ │ └── fixtures │ │ └── destructuring │ │ ├── empty-object-pattern │ │ └── actual.js │ │ └── assignment-statement │ │ └── actual.js ├── babel-plugin-transform-es2015-duplicate-keys │ ├── .npmignore │ └── test │ │ └── fixtures │ │ ├── combination │ │ ├── dupes │ │ │ └── actual.js │ │ └── no-dupes │ │ │ ├── actual.js │ │ │ └── expected.js │ │ └── duplicate-keys │ │ ├── dupes │ │ ├── actual.js │ │ └── expected.js │ │ ├── no-dupes │ │ ├── actual.js │ │ └── expected.js │ │ └── one-quoted │ │ ├── actual.js │ │ └── expected.js ├── babel-plugin-transform-es2015-function-name │ ├── .npmignore │ └── test │ │ └── fixtures │ │ └── function-name │ │ └── method-definition │ │ ├── actual.js │ │ └── expected.js ├── babel-plugin-transform-es2015-modules-commonjs │ ├── .npmignore │ └── test │ │ └── fixtures │ │ ├── interop │ │ ├── export-named │ │ │ └── actual.js │ │ ├── imports-hoisting │ │ │ └── actual.js │ │ ├── export-default-2 │ │ │ └── actual.js │ │ ├── export-default-3 │ │ │ └── actual.js │ │ ├── export-default-4 │ │ │ └── actual.js │ │ ├── export-default │ │ │ └── actual.js │ │ ├── export-from │ │ │ └── actual.js │ │ ├── export-named-2 │ │ │ └── actual.js │ │ ├── export-named-3 │ │ │ └── actual.js │ │ ├── export-default-6 │ │ │ └── actual.js │ │ ├── export-from-2 │ │ │ └── actual.js │ │ ├── export-named-4 │ │ │ └── actual.js │ │ ├── imports-glob │ │ │ └── actual.js │ │ ├── export-default-5 │ │ │ └── actual.js │ │ ├── export-default-8 │ │ │ └── actual.js │ │ ├── export-from-3 │ │ │ └── actual.js │ │ ├── export-from-4 │ │ │ └── actual.js │ │ └── export-named-5 │ │ │ └── actual.js │ │ ├── strict │ │ ├── export-1 │ │ │ └── actual.js │ │ ├── export-all │ │ │ └── actual.js │ │ ├── export │ │ │ └── actual.js │ │ └── export-2 │ │ │ └── actual.js │ │ └── noInterop │ │ └── export-from │ │ └── actual.js ├── babel-plugin-transform-es2015-modules-systemjs │ ├── .npmignore │ └── test │ │ └── fixtures │ │ └── systemjs │ │ ├── get-module-name-option │ │ └── actual.js │ │ ├── export-named │ │ └── actual.js │ │ ├── export-default-2 │ │ └── actual.js │ │ ├── export-default-3 │ │ └── actual.js │ │ ├── export-default │ │ └── actual.js │ │ ├── export-from │ │ └── actual.js │ │ ├── export-named-2 │ │ └── actual.js │ │ ├── export-named-3 │ │ └── actual.js │ │ ├── export-default-4 │ │ └── actual.js │ │ ├── export-default-6 │ │ └── actual.js │ │ ├── export-from-2 │ │ └── actual.js │ │ ├── export-named-4 │ │ └── actual.js │ │ ├── export-named-6 │ │ └── actual.js │ │ ├── imports-glob │ │ └── actual.js │ │ ├── module-name │ │ └── actual.js │ │ ├── export-default-8 │ │ └── actual.js │ │ ├── export-from-3 │ │ └── actual.js │ │ ├── export-from-4 │ │ └── actual.js │ │ ├── export-named-5 │ │ └── actual.js │ │ ├── export-named-7 │ │ └── actual.js │ │ └── imports-numbered │ │ └── actual.js ├── babel-plugin-transform-es2015-object-super │ └── .npmignore ├── babel-plugin-transform-es2015-sticky-regex │ ├── .npmignore │ └── test │ │ └── fixtures │ │ └── sticky-regex │ │ ├── basic │ │ ├── actual.js │ │ └── expected.js │ │ └── ignore-non-sticky │ │ ├── actual.js │ │ └── expected.js ├── babel-plugin-transform-es2015-typeof-symbol │ └── .npmignore ├── babel-plugin-transform-es2015-unicode-regex │ └── .npmignore ├── babel-plugin-transform-es3-property-literals │ └── .npmignore ├── babel-plugin-transform-es5-property-mutators │ └── .npmignore ├── babel-plugin-transform-exponentiation-operator │ ├── .npmignore │ └── test │ │ └── fixtures │ │ ├── exponentian-operator │ │ └── binary │ │ │ ├── actual.js │ │ │ └── expected.js │ │ └── regression │ │ └── 4403 │ │ └── actual.js ├── babel-plugin-transform-react-constant-elements │ └── .npmignore ├── babel-plugin-transform-react-inline-elements │ ├── .npmignore │ └── test │ │ └── fixtures │ │ └── inline-elements │ │ ├── component │ │ ├── actual.js │ │ └── expected.js │ │ ├── html-element │ │ ├── actual.js │ │ └── expected.js │ │ ├── multiline │ │ └── actual.js │ │ ├── ref-deopt │ │ └── actual.js │ │ ├── spread-deopt │ │ └── actual.js │ │ ├── self-closing-component │ │ └── actual.js │ │ ├── self-closing-html-element │ │ └── actual.js │ │ ├── shorthand-attributes │ │ └── actual.js │ │ └── key │ │ └── actual.js ├── babel-plugin-transform-async-generator-functions │ └── .npmignore ├── babel-plugin-transform-es2015-computed-properties │ ├── .npmignore │ └── test │ │ └── fixtures │ │ ├── loose │ │ └── argument │ │ │ └── actual.js │ │ └── spec │ │ └── argument │ │ └── actual.js ├── babel-plugin-transform-es2015-shorthand-properties │ └── .npmignore ├── babel-plugin-transform-es2015-template-literals │ ├── .npmignore │ └── test │ │ └── fixtures │ │ ├── spec │ │ ├── none │ │ │ ├── actual.js │ │ │ └── expected.js │ │ ├── only │ │ │ ├── actual.js │ │ │ └── expected.js │ │ ├── single │ │ │ ├── actual.js │ │ │ └── expected.js │ │ ├── escape-quotes │ │ │ └── actual.js │ │ ├── multiple │ │ │ └── actual.js │ │ └── statement │ │ │ └── actual.js │ │ └── normal │ │ ├── none │ │ ├── actual.js │ │ └── expected.js │ │ ├── only │ │ ├── actual.js │ │ └── expected.js │ │ ├── single │ │ ├── actual.js │ │ └── expected.js │ │ ├── multiple │ │ └── actual.js │ │ ├── statement │ │ ├── actual.js │ │ └── expected.js │ │ └── escape-quotes │ │ └── actual.js ├── babel-helper-builder-binary-assignment-operator-visitor │ └── .npmignore ├── babel-plugin-transform-es2015-block-scoped-functions │ └── .npmignore ├── babel-plugin-transform-es3-member-expression-literals │ └── .npmignore └── babel-plugin-transform-object-set-prototype-of-to-assign │ └── .npmignore ├── NPM_OWNERS ├── test └── mocha.opts └── doc └── design └── versioning.md /.gitattributes: -------------------------------------------------------------------------------- 1 | * text eol=lf 2 | -------------------------------------------------------------------------------- /packages/babel-cli/.npmignore: -------------------------------------------------------------------------------- 1 | src 2 | test 3 | *.log 4 | -------------------------------------------------------------------------------- /packages/babel-core/.npmignore: -------------------------------------------------------------------------------- 1 | src 2 | test 3 | *.log 4 | -------------------------------------------------------------------------------- /packages/babel-core/test/fixtures/api/file.js: -------------------------------------------------------------------------------- 1 | foo(); 2 | -------------------------------------------------------------------------------- /packages/babel-runtime/README.md: -------------------------------------------------------------------------------- 1 | # babel-runtime 2 | 3 | -------------------------------------------------------------------------------- /packages/babel-traverse/README.md: -------------------------------------------------------------------------------- 1 | # babel-traverse 2 | -------------------------------------------------------------------------------- /packages/babel-types/.npmignore: -------------------------------------------------------------------------------- 1 | src 2 | test 3 | *.log 4 | -------------------------------------------------------------------------------- /packages/babel-code-frame/.npmignore: -------------------------------------------------------------------------------- 1 | src 2 | test 3 | *.log 4 | -------------------------------------------------------------------------------- /packages/babel-generator/.npmignore: -------------------------------------------------------------------------------- 1 | src 2 | test 3 | *.log 4 | -------------------------------------------------------------------------------- /packages/babel-helpers/.npmignore: -------------------------------------------------------------------------------- 1 | src 2 | test 3 | *.log 4 | -------------------------------------------------------------------------------- /packages/babel-messages/.npmignore: -------------------------------------------------------------------------------- 1 | src 2 | test 3 | *.log 4 | -------------------------------------------------------------------------------- /packages/babel-polyfill/.npmignore: -------------------------------------------------------------------------------- 1 | src 2 | test 3 | *.log 4 | -------------------------------------------------------------------------------- /packages/babel-polyfill/README.md: -------------------------------------------------------------------------------- 1 | # babel-polyfill 2 | 3 | -------------------------------------------------------------------------------- /packages/babel-register/.npmignore: -------------------------------------------------------------------------------- 1 | src 2 | test 3 | *.log 4 | -------------------------------------------------------------------------------- /packages/babel-template/.npmignore: -------------------------------------------------------------------------------- 1 | src 2 | test 3 | *.log 4 | -------------------------------------------------------------------------------- /packages/babel-traverse/.npmignore: -------------------------------------------------------------------------------- 1 | src 2 | test 3 | *.log 4 | -------------------------------------------------------------------------------- /packages/babel-core/test/fixtures/config/dir1/src.js: -------------------------------------------------------------------------------- 1 | // empty 2 | -------------------------------------------------------------------------------- /packages/babel-core/test/fixtures/config/dir2/src.js: -------------------------------------------------------------------------------- 1 | // empty 2 | -------------------------------------------------------------------------------- /packages/babel-core/test/fixtures/config/dir3/src.js: -------------------------------------------------------------------------------- 1 | // empty 2 | -------------------------------------------------------------------------------- /packages/babel-core/test/fixtures/config/env/src.js: -------------------------------------------------------------------------------- 1 | // empty 2 | -------------------------------------------------------------------------------- /packages/babel-core/test/fixtures/config/pkg/src.js: -------------------------------------------------------------------------------- 1 | // empty 2 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/comments/empty/actual.js: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /packages/babel-helper-fixtures/.npmignore: -------------------------------------------------------------------------------- 1 | src 2 | test 3 | *.log 4 | -------------------------------------------------------------------------------- /packages/babel-helper-regex/.npmignore: -------------------------------------------------------------------------------- 1 | src 2 | test 3 | *.log 4 | -------------------------------------------------------------------------------- /packages/babel-preset-es2015/.npmignore: -------------------------------------------------------------------------------- 1 | src 2 | test 3 | *.log 4 | -------------------------------------------------------------------------------- /packages/babel-preset-es2015/test/fixtures/traceur/Syntax/Empty.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /packages/babel-preset-es2016/.npmignore: -------------------------------------------------------------------------------- 1 | src 2 | test 3 | *.log 4 | -------------------------------------------------------------------------------- /packages/babel-preset-es2017/.npmignore: -------------------------------------------------------------------------------- 1 | src 2 | test 3 | *.log 4 | -------------------------------------------------------------------------------- /packages/babel-preset-flow/.npmignore: -------------------------------------------------------------------------------- 1 | src 2 | test 3 | *.log 4 | -------------------------------------------------------------------------------- /packages/babel-preset-react/.npmignore: -------------------------------------------------------------------------------- 1 | src 2 | test 3 | *.log 4 | -------------------------------------------------------------------------------- /packages/babel-preset-stage-0/.npmignore: -------------------------------------------------------------------------------- 1 | src 2 | test 3 | *.log 4 | -------------------------------------------------------------------------------- /packages/babel-preset-stage-1/.npmignore: -------------------------------------------------------------------------------- 1 | src 2 | test 3 | *.log 4 | -------------------------------------------------------------------------------- /packages/babel-preset-stage-2/.npmignore: -------------------------------------------------------------------------------- 1 | src 2 | test 3 | *.log 4 | -------------------------------------------------------------------------------- /packages/babel-preset-stage-3/.npmignore: -------------------------------------------------------------------------------- 1 | src 2 | test 3 | *.log 4 | -------------------------------------------------------------------------------- /packages/babel-cli/test/fixtures/babel-node/directory/stdout.txt: -------------------------------------------------------------------------------- 1 | foo 2 | -------------------------------------------------------------------------------- /packages/babel-cli/test/fixtures/babel-node/filename/stdout.txt: -------------------------------------------------------------------------------- 1 | foo 2 | -------------------------------------------------------------------------------- /packages/babel-cli/test/fixtures/babel/--copy-files/in-files/src/.foorc: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /packages/babel-cli/test/fixtures/babel/--ignore/in-files/src/foo/foo.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /packages/babel-cli/test/fixtures/babel/--only/in-files/src/foo/index.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /packages/babel-core/test/fixtures/config/.babelignore: -------------------------------------------------------------------------------- 1 | root-ignore 2 | -------------------------------------------------------------------------------- /packages/babel-core/test/fixtures/config/js-config/src.js: -------------------------------------------------------------------------------- 1 | // empty 2 | -------------------------------------------------------------------------------- /packages/babel-core/test/fixtures/config/pkg/.babelignore: -------------------------------------------------------------------------------- 1 | pkg-ignore 2 | -------------------------------------------------------------------------------- /packages/babel-core/test/fixtures/resolution/relative-paths/dir/plugin.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /packages/babel-core/test/fixtures/resolution/relative-paths/dir/preset.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/comments/empty/expected.js: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /packages/babel-helper-call-delegate/.npmignore: -------------------------------------------------------------------------------- 1 | src 2 | test 3 | *.log 4 | -------------------------------------------------------------------------------- /packages/babel-helper-define-map/.npmignore: -------------------------------------------------------------------------------- 1 | src 2 | test 3 | *.log 4 | -------------------------------------------------------------------------------- /packages/babel-helper-explode-class/.npmignore: -------------------------------------------------------------------------------- 1 | src 2 | test 3 | *.log 4 | -------------------------------------------------------------------------------- /packages/babel-helper-function-name/.npmignore: -------------------------------------------------------------------------------- 1 | src 2 | test 3 | *.log 4 | -------------------------------------------------------------------------------- /packages/babel-plugin-syntax-flow/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | src 3 | -------------------------------------------------------------------------------- /packages/babel-plugin-syntax-jsx/.npmignore: -------------------------------------------------------------------------------- 1 | src 2 | test 3 | *.log 4 | -------------------------------------------------------------------------------- /packages/babel-preset-es2015/test/fixtures/traceur/Syntax/null.js: -------------------------------------------------------------------------------- 1 | null -------------------------------------------------------------------------------- /packages/babel-runtime/.npmignore: -------------------------------------------------------------------------------- 1 | scripts 2 | src 3 | test 4 | *.log 5 | -------------------------------------------------------------------------------- /packages/babel-cli/test/fixtures/babel-node/require/stdout.txt: -------------------------------------------------------------------------------- 1 | bar 2 | foo 3 | -------------------------------------------------------------------------------- /packages/babel-cli/test/fixtures/babel/--copy-files/in-files/src/README.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /packages/babel-cli/test/fixtures/babel/--copy-files/in-files/src/foo/foo.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /packages/babel-cli/test/fixtures/babel/--copy-files/out-files/lib/README.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /packages/babel-cli/test/fixtures/babel/--ignore glob/in-files/src/a.js: -------------------------------------------------------------------------------- 1 | a; 2 | -------------------------------------------------------------------------------- /packages/babel-cli/test/fixtures/babel/--ignore glob/in-files/src/b.js: -------------------------------------------------------------------------------- 1 | b; 2 | -------------------------------------------------------------------------------- /packages/babel-cli/test/fixtures/babel/--only glob/in-files/src/a.js: -------------------------------------------------------------------------------- 1 | a; 2 | -------------------------------------------------------------------------------- /packages/babel-cli/test/fixtures/babel/--only glob/in-files/src/b.js: -------------------------------------------------------------------------------- 1 | b; 2 | -------------------------------------------------------------------------------- /packages/babel-core/index.js: -------------------------------------------------------------------------------- 1 | module.exports = require("./lib/index.js"); 2 | -------------------------------------------------------------------------------- /packages/babel-core/test/fixtures/config/js-config-default/src.js: -------------------------------------------------------------------------------- 1 | // empty 2 | -------------------------------------------------------------------------------- /packages/babel-core/test/fixtures/config/js-config-error/src.js: -------------------------------------------------------------------------------- 1 | // empty 2 | -------------------------------------------------------------------------------- /packages/babel-core/test/fixtures/config/js-config-error2/src.js: -------------------------------------------------------------------------------- 1 | // empty 2 | -------------------------------------------------------------------------------- /packages/babel-core/test/fixtures/config/js-config-error3/src.js: -------------------------------------------------------------------------------- 1 | // empty 2 | -------------------------------------------------------------------------------- /packages/babel-core/test/fixtures/config/js-json-config/src.js: -------------------------------------------------------------------------------- 1 | // empty 2 | -------------------------------------------------------------------------------- /packages/babel-core/test/fixtures/config/js-pkg-config/src.js: -------------------------------------------------------------------------------- 1 | // empty 2 | -------------------------------------------------------------------------------- /packages/babel-core/test/fixtures/config/json-config-error/src.js: -------------------------------------------------------------------------------- 1 | // empty 2 | -------------------------------------------------------------------------------- /packages/babel-core/test/fixtures/config/json-pkg-config/src.js: -------------------------------------------------------------------------------- 1 | // empty 2 | -------------------------------------------------------------------------------- /packages/babel-core/test/fixtures/resolution/throw-missing-paths/.gitignore: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/escapes/jsonEscape/actual.js: -------------------------------------------------------------------------------- 1 | "©"; 2 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/types/EmptyStatement/actual.js: -------------------------------------------------------------------------------- 1 | ; 2 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/types/EmptyStatement/expected.js: -------------------------------------------------------------------------------- 1 | ; 2 | -------------------------------------------------------------------------------- /packages/babel-helper-bindify-decorators/.npmignore: -------------------------------------------------------------------------------- 1 | src 2 | test 3 | *.log 4 | -------------------------------------------------------------------------------- /packages/babel-helper-builder-react-jsx/.npmignore: -------------------------------------------------------------------------------- 1 | src 2 | test 3 | *.log 4 | -------------------------------------------------------------------------------- /packages/babel-helper-get-function-arity/.npmignore: -------------------------------------------------------------------------------- 1 | src 2 | test 3 | *.log 4 | -------------------------------------------------------------------------------- /packages/babel-helper-hoist-variables/.npmignore: -------------------------------------------------------------------------------- 1 | src 2 | test 3 | *.log 4 | -------------------------------------------------------------------------------- /packages/babel-helper-plugin-test-runner/.npmignore: -------------------------------------------------------------------------------- 1 | src 2 | test 3 | *.log 4 | -------------------------------------------------------------------------------- /packages/babel-helper-replace-supers/.npmignore: -------------------------------------------------------------------------------- 1 | src 2 | test 3 | *.log 4 | -------------------------------------------------------------------------------- /packages/babel-plugin-external-helpers/.npmignore: -------------------------------------------------------------------------------- 1 | src 2 | test 3 | *.log 4 | -------------------------------------------------------------------------------- /packages/babel-plugin-syntax-decorators/.npmignore: -------------------------------------------------------------------------------- 1 | src 2 | test 3 | *.log 4 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-eval/.npmignore: -------------------------------------------------------------------------------- 1 | src 2 | test 3 | *.log 4 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-jscript/.npmignore: -------------------------------------------------------------------------------- 1 | src 2 | test 3 | *.log 4 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-runtime/.npmignore: -------------------------------------------------------------------------------- 1 | src 2 | test 3 | *.log 4 | -------------------------------------------------------------------------------- /NPM_OWNERS: -------------------------------------------------------------------------------- 1 | sebmck 2 | thejameskyle 3 | amasad 4 | hzoo 5 | loganfsmyth 6 | jmm 7 | -------------------------------------------------------------------------------- /packages/babel-cli/test/fixtures/babel/--ignore complete/in-files/src/foobar/foo.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /packages/babel-cli/test/fixtures/babel/--ignore glob/in-files/src/baz/c.js: -------------------------------------------------------------------------------- 1 | c; 2 | -------------------------------------------------------------------------------- /packages/babel-cli/test/fixtures/babel/--ignore glob/in-files/src/foo.js: -------------------------------------------------------------------------------- 1 | foo; 2 | -------------------------------------------------------------------------------- /packages/babel-cli/test/fixtures/babel/--ignore/in-files/src/bar/index.js: -------------------------------------------------------------------------------- 1 | bar; 2 | -------------------------------------------------------------------------------- /packages/babel-cli/test/fixtures/babel/--only glob/in-files/src/a.foo.js: -------------------------------------------------------------------------------- 1 | a.foo; 2 | -------------------------------------------------------------------------------- /packages/babel-cli/test/fixtures/babel/--only glob/in-files/src/baz/c.js: -------------------------------------------------------------------------------- 1 | c; 2 | -------------------------------------------------------------------------------- /packages/babel-cli/test/fixtures/babel/--only glob/in-files/src/foo.js: -------------------------------------------------------------------------------- 1 | foo; 2 | -------------------------------------------------------------------------------- /packages/babel-cli/test/fixtures/babel/--only/in-files/src/bar/index.js: -------------------------------------------------------------------------------- 1 | bar; 2 | -------------------------------------------------------------------------------- /packages/babel-core/test/fixtures/config/js-config-extended/src.js: -------------------------------------------------------------------------------- 1 | // empty 2 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/compact/while/actual.js: -------------------------------------------------------------------------------- 1 | while(true) x(); 2 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/escapes/jsonEscape/expected.js: -------------------------------------------------------------------------------- 1 | "\u00A9"; 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-check-es2015-constants/.npmignore: -------------------------------------------------------------------------------- 1 | src 2 | test 3 | *.log 4 | -------------------------------------------------------------------------------- /packages/babel-plugin-syntax-async-functions/.npmignore: -------------------------------------------------------------------------------- 1 | src 2 | test 3 | *.log 4 | -------------------------------------------------------------------------------- /packages/babel-plugin-syntax-async-generators/.npmignore: -------------------------------------------------------------------------------- 1 | src 2 | test 3 | *.log 4 | -------------------------------------------------------------------------------- /packages/babel-plugin-syntax-class-properties/.npmignore: -------------------------------------------------------------------------------- 1 | src 2 | test 3 | *.log 4 | -------------------------------------------------------------------------------- /packages/babel-plugin-syntax-do-expressions/.npmignore: -------------------------------------------------------------------------------- 1 | src 2 | test 3 | *.log 4 | -------------------------------------------------------------------------------- /packages/babel-plugin-syntax-dynamic-import/.npmignore: -------------------------------------------------------------------------------- 1 | src 2 | test 3 | *.log 4 | -------------------------------------------------------------------------------- /packages/babel-plugin-syntax-function-bind/.npmignore: -------------------------------------------------------------------------------- 1 | src 2 | test 3 | *.log 4 | -------------------------------------------------------------------------------- /packages/babel-plugin-syntax-function-sent/.npmignore: -------------------------------------------------------------------------------- 1 | src 2 | test 3 | *.log 4 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-decorators/.npmignore: -------------------------------------------------------------------------------- 1 | src 2 | test 3 | *.log 4 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-for-of/.npmignore: -------------------------------------------------------------------------------- 1 | src 2 | test 3 | *.log 4 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-spread/.npmignore: -------------------------------------------------------------------------------- 1 | src 2 | test 3 | *.log 4 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-flow-comments/.npmignore: -------------------------------------------------------------------------------- 1 | src 2 | test 3 | *.log 4 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-function-bind/.npmignore: -------------------------------------------------------------------------------- 1 | src 2 | test 3 | *.log 4 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-object-assign/.npmignore: -------------------------------------------------------------------------------- 1 | src 2 | test 3 | *.log 4 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-react-jsx/.npmignore: -------------------------------------------------------------------------------- 1 | src 2 | test 3 | *.log 4 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-regenerator/.npmignore: -------------------------------------------------------------------------------- 1 | src 2 | test 3 | *.log 4 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-strict-mode/.npmignore: -------------------------------------------------------------------------------- 1 | src 2 | test 3 | *.log 4 | -------------------------------------------------------------------------------- /packages/babel-cli/test/fixtures/babel/--copy-files with ignore/in-files/src/README.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /packages/babel-cli/test/fixtures/babel/--copy-files with ignore/out-files/lib/README.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /packages/babel-cli/test/fixtures/babel/--copy-files with only/in-files/src/README.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /packages/babel-cli/test/fixtures/babel/--copy-files with only/out-files/lib/README.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /packages/babel-cli/test/fixtures/babel/--copy-files/in-files/src/bar/index.js: -------------------------------------------------------------------------------- 1 | bar; 2 | -------------------------------------------------------------------------------- /packages/babel-cli/test/fixtures/babel/--ignore glob/in-files/src/a.foo.js: -------------------------------------------------------------------------------- 1 | a.foo; 2 | -------------------------------------------------------------------------------- /packages/babel-cli/test/fixtures/babel/--only glob/in-files/src/baz/b.foo.js: -------------------------------------------------------------------------------- 1 | b.foo; 2 | -------------------------------------------------------------------------------- /packages/babel-cli/test/fixtures/babel/stdin/stdin.txt: -------------------------------------------------------------------------------- 1 | arr.map(x => x * MULTIPLIER); 2 | -------------------------------------------------------------------------------- /packages/babel-core/test/fixtures/config/json-pkg-config-no-babel/package.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /packages/babel-core/test/fixtures/config/json-pkg-config-no-babel/src.js: -------------------------------------------------------------------------------- 1 | // empty 2 | -------------------------------------------------------------------------------- /packages/babel-core/test/fixtures/resolution/module-paths/node_modules/plugin/index.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /packages/babel-core/test/fixtures/resolution/module-paths/node_modules/preset/index.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/compact/while/expected.js: -------------------------------------------------------------------------------- 1 | while(true)x(); 2 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/types/DebuggerStatement/actual.js: -------------------------------------------------------------------------------- 1 | debugger; 2 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/types/DebuggerStatement/expected.js: -------------------------------------------------------------------------------- 1 | debugger; 2 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/types/Import/actual.js: -------------------------------------------------------------------------------- 1 | import("module.js"); 2 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/types/Import/expected.js: -------------------------------------------------------------------------------- 1 | import("module.js"); 2 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/types/XJSEmptyExpression/actual.js: -------------------------------------------------------------------------------- 1 | {}; 2 | -------------------------------------------------------------------------------- /packages/babel-helper-optimise-call-expression/.npmignore: -------------------------------------------------------------------------------- 1 | src 2 | test 3 | *.log 4 | -------------------------------------------------------------------------------- /packages/babel-helper-remap-async-to-generator/.npmignore: -------------------------------------------------------------------------------- 1 | src 2 | test 3 | *.log 4 | -------------------------------------------------------------------------------- /packages/babel-plugin-syntax-export-extensions/.npmignore: -------------------------------------------------------------------------------- 1 | src 2 | test 3 | *.log 4 | -------------------------------------------------------------------------------- /packages/babel-plugin-syntax-object-rest-spread/.npmignore: -------------------------------------------------------------------------------- 1 | src 2 | test 3 | *.log 4 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-async-functions/.npmignore: -------------------------------------------------------------------------------- 1 | src 2 | test 3 | *.log 4 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-async-to-generator/.npmignore: -------------------------------------------------------------------------------- 1 | src 2 | test 3 | *.log 4 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-class-properties/.npmignore: -------------------------------------------------------------------------------- 1 | src 2 | test 3 | *.log 4 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-do-expressions/.npmignore: -------------------------------------------------------------------------------- 1 | src 2 | test 3 | *.log 4 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-classes/.npmignore: -------------------------------------------------------------------------------- 1 | src 2 | test 3 | *.log 4 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-instanceof/.npmignore: -------------------------------------------------------------------------------- 1 | src 2 | test 3 | *.log 4 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-literals/.npmignore: -------------------------------------------------------------------------------- 1 | src 2 | test 3 | *.log 4 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-modules-amd/.npmignore: -------------------------------------------------------------------------------- 1 | src 2 | test 3 | *.log 4 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-modules-umd/.npmignore: -------------------------------------------------------------------------------- 1 | src 2 | test 3 | *.log 4 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-parameters/.npmignore: -------------------------------------------------------------------------------- 1 | src 2 | test 3 | *.log 4 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-export-extensions/.npmignore: -------------------------------------------------------------------------------- 1 | src 2 | test 3 | *.log 4 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-flow-strip-types/.npmignore: -------------------------------------------------------------------------------- 1 | src 2 | test 3 | *.log 4 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-object-rest-spread/.npmignore: -------------------------------------------------------------------------------- 1 | src 2 | test 3 | *.log 4 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-proto-to-assign/.npmignore: -------------------------------------------------------------------------------- 1 | src 2 | test 3 | *.log 4 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-react-display-name/.npmignore: -------------------------------------------------------------------------------- 1 | src 2 | test 3 | *.log 4 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-react-jsx-compat/.npmignore: -------------------------------------------------------------------------------- 1 | src 2 | test 3 | *.log 4 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-react-jsx-self/.npmignore: -------------------------------------------------------------------------------- 1 | src 2 | test 3 | *.log 4 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-react-jsx-source/.npmignore: -------------------------------------------------------------------------------- 1 | src 2 | test 3 | *.log 4 | -------------------------------------------------------------------------------- /packages/babel-cli/bin/babel.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | require("../lib/babel"); 4 | -------------------------------------------------------------------------------- /packages/babel-cli/test/fixtures/babel/--ignore complete/in-files/src/bar/index.js: -------------------------------------------------------------------------------- 1 | bar; 2 | -------------------------------------------------------------------------------- /packages/babel-cli/test/fixtures/babel/--ignore glob/in-files/src/baz/b.foo.js: -------------------------------------------------------------------------------- 1 | b.foo; 2 | -------------------------------------------------------------------------------- /packages/babel-core/test/fixtures/resolution/nested-module-paths/node_modules/mod/plugin.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /packages/babel-core/test/fixtures/resolution/nested-module-paths/node_modules/mod/preset.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /packages/babel-core/test/fixtures/resolution/throw-module-paths/node_modules/foo/index.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/compact/assignment/expected.js: -------------------------------------------------------------------------------- 1 | x=1;var{y=1}=obj; 2 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/compact/options.json: -------------------------------------------------------------------------------- 1 | { 2 | "compact": true 3 | } 4 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/flow/null-literal-types/actual.js: -------------------------------------------------------------------------------- 1 | var foo: null; 2 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/flow/null-literal-types/expected.js: -------------------------------------------------------------------------------- 1 | var foo: null; 2 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/types/ExportSpecifier11/actual.js: -------------------------------------------------------------------------------- 1 | export { foo }; 2 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/types/Identifier/actual.js: -------------------------------------------------------------------------------- 1 | foo; 2 | undefined; 3 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/types/Identifier/expected.js: -------------------------------------------------------------------------------- 1 | foo; 2 | undefined; 3 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/types/XJSEmptyExpression/expected.js: -------------------------------------------------------------------------------- 1 | {}; 2 | -------------------------------------------------------------------------------- /packages/babel-helper-explode-assignable-expression/.npmignore: -------------------------------------------------------------------------------- 1 | src 2 | test 3 | *.log 4 | -------------------------------------------------------------------------------- /packages/babel-helper-transform-fixture-test-runner/.npmignore: -------------------------------------------------------------------------------- 1 | src 2 | test 3 | *.log 4 | -------------------------------------------------------------------------------- /packages/babel-plugin-syntax-exponentiation-operator/.npmignore: -------------------------------------------------------------------------------- 1 | src 2 | test 3 | *.log 4 | -------------------------------------------------------------------------------- /packages/babel-plugin-syntax-trailing-function-commas/.npmignore: -------------------------------------------------------------------------------- 1 | src 2 | test 3 | *.log 4 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-async-to-module-method/.npmignore: -------------------------------------------------------------------------------- 1 | src 2 | test 3 | *.log 4 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-arrow-functions/.npmignore: -------------------------------------------------------------------------------- 1 | src 2 | test 3 | *.log 4 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-block-scoping/.npmignore: -------------------------------------------------------------------------------- 1 | src 2 | test 3 | *.log 4 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-destructuring/.npmignore: -------------------------------------------------------------------------------- 1 | src 2 | test 3 | *.log 4 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-duplicate-keys/.npmignore: -------------------------------------------------------------------------------- 1 | src 2 | test 3 | *.log 4 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-function-name/.npmignore: -------------------------------------------------------------------------------- 1 | src 2 | test 3 | *.log 4 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-modules-commonjs/.npmignore: -------------------------------------------------------------------------------- 1 | src 2 | test 3 | *.log 4 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-modules-systemjs/.npmignore: -------------------------------------------------------------------------------- 1 | src 2 | test 3 | *.log 4 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-object-super/.npmignore: -------------------------------------------------------------------------------- 1 | src 2 | test 3 | *.log 4 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-sticky-regex/.npmignore: -------------------------------------------------------------------------------- 1 | src 2 | test 3 | *.log 4 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-typeof-symbol/.npmignore: -------------------------------------------------------------------------------- 1 | src 2 | test 3 | *.log 4 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-unicode-regex/.npmignore: -------------------------------------------------------------------------------- 1 | src 2 | test 3 | *.log 4 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es3-property-literals/.npmignore: -------------------------------------------------------------------------------- 1 | src 2 | test 3 | *.log 4 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es5-property-mutators/.npmignore: -------------------------------------------------------------------------------- 1 | src 2 | test 3 | *.log 4 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-exponentiation-operator/.npmignore: -------------------------------------------------------------------------------- 1 | src 2 | test 3 | *.log 4 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-react-constant-elements/.npmignore: -------------------------------------------------------------------------------- 1 | src 2 | test 3 | *.log 4 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-react-inline-elements/.npmignore: -------------------------------------------------------------------------------- 1 | src 2 | test 3 | *.log 4 | -------------------------------------------------------------------------------- /packages/babel-polyfill/src/core-js/modules/es6.map.js: -------------------------------------------------------------------------------- 1 | require("core-js/modules/es6.map"); -------------------------------------------------------------------------------- /packages/babel-polyfill/src/core-js/modules/es6.set.js: -------------------------------------------------------------------------------- 1 | require("core-js/modules/es6.set"); -------------------------------------------------------------------------------- /test/mocha.opts: -------------------------------------------------------------------------------- 1 | --reporter dot --ui tdd --timeout 10000 --compilers js:babel-register 2 | -------------------------------------------------------------------------------- /packages/babel-cli/test/fixtures/babel/--copy-files with ignore/in-files/src/foo/bar.js: -------------------------------------------------------------------------------- 1 | bar; 2 | -------------------------------------------------------------------------------- /packages/babel-cli/test/fixtures/babel/--copy-files with ignore/in-files/src/index.js: -------------------------------------------------------------------------------- 1 | index; 2 | -------------------------------------------------------------------------------- /packages/babel-cli/test/fixtures/babel/--copy-files with ignore/out-files/lib/foo/bar.js: -------------------------------------------------------------------------------- 1 | bar; 2 | -------------------------------------------------------------------------------- /packages/babel-cli/test/fixtures/babel/--copy-files with only/in-files/src/foo/bar.js: -------------------------------------------------------------------------------- 1 | bar; 2 | -------------------------------------------------------------------------------- /packages/babel-cli/test/fixtures/babel/--copy-files with only/in-files/src/index.js: -------------------------------------------------------------------------------- 1 | index; 2 | -------------------------------------------------------------------------------- /packages/babel-cli/test/fixtures/babel/--copy-files with only/out-files/lib/index.js: -------------------------------------------------------------------------------- 1 | index; 2 | -------------------------------------------------------------------------------- /packages/babel-cli/test/fixtures/babel/--copy-files/out-files/lib/foo/foo.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | -------------------------------------------------------------------------------- /packages/babel-cli/test/fixtures/babel/--only/stdout.txt: -------------------------------------------------------------------------------- 1 | src/bar/index.js -> lib/bar/index.js 2 | -------------------------------------------------------------------------------- /packages/babel-core/test/fixtures/config/js-config-error2/.babelrc.js: -------------------------------------------------------------------------------- 1 | module.exports = ''; 2 | -------------------------------------------------------------------------------- /packages/babel-core/test/fixtures/config/js-config-error3/.babelrc.js: -------------------------------------------------------------------------------- 1 | module.exports = null; 2 | -------------------------------------------------------------------------------- /packages/babel-core/test/fixtures/config/js-pkg-config/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "babel": {} 3 | } 4 | -------------------------------------------------------------------------------- /packages/babel-core/test/fixtures/config/json-config-error/.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "bad: "json" 3 | } 4 | -------------------------------------------------------------------------------- /packages/babel-core/test/fixtures/resolution/standard-paths/node_modules/babel-plugin-mod/index.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /packages/babel-core/test/fixtures/resolution/standard-paths/node_modules/babel-preset-mod/index.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/compact/single-line-comment/actual.js: -------------------------------------------------------------------------------- 1 | // foo 2 | bar(); 3 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/minified/options.json: -------------------------------------------------------------------------------- 1 | { 2 | "minified": true 3 | } 4 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/types/ConditionalExpression/actual.js: -------------------------------------------------------------------------------- 1 | foo ? foo : bar; 2 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/types/ExportSpecifier/actual.js: -------------------------------------------------------------------------------- 1 | export * from "foo"; 2 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/types/ExportSpecifier/expected.js: -------------------------------------------------------------------------------- 1 | export * from "foo"; 2 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/types/ExportSpecifier11/expected.js: -------------------------------------------------------------------------------- 1 | export { foo }; 2 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/types/ExportSpecifier12/actual.js: -------------------------------------------------------------------------------- 1 | export { foo, bar }; 2 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/types/ExportSpecifier3/actual.js: -------------------------------------------------------------------------------- 1 | export foo from "foo"; 2 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/types/XJSMemberExpression/actual.js: -------------------------------------------------------------------------------- 1 | ; 2 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/types/XJSNamespacedName/actual.js: -------------------------------------------------------------------------------- 1 | ; 2 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/types/XJSNamespacedName/expected.js: -------------------------------------------------------------------------------- 1 | ; 2 | -------------------------------------------------------------------------------- /packages/babel-helper-regex/README.md: -------------------------------------------------------------------------------- 1 | # babel-helper-regex 2 | 3 | ## Usage 4 | 5 | TODO 6 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-async-generator-functions/.npmignore: -------------------------------------------------------------------------------- 1 | src 2 | test 3 | *.log 4 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-computed-properties/.npmignore: -------------------------------------------------------------------------------- 1 | src 2 | test 3 | *.log 4 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-shorthand-properties/.npmignore: -------------------------------------------------------------------------------- 1 | src 2 | test 3 | *.log 4 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-spread/test/fixtures/spread/single/actual.js: -------------------------------------------------------------------------------- 1 | [...foo]; 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-template-literals/.npmignore: -------------------------------------------------------------------------------- 1 | src 2 | test 3 | *.log 4 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-runtime/test/fixtures/runtime/class/actual.js: -------------------------------------------------------------------------------- 1 | class Foo {} 2 | -------------------------------------------------------------------------------- /packages/babel-polyfill/src/core-js/modules/es6.promise.js: -------------------------------------------------------------------------------- 1 | require("core-js/modules/es6.promise"); -------------------------------------------------------------------------------- /packages/babel-polyfill/src/core-js/modules/es6.symbol.js: -------------------------------------------------------------------------------- 1 | require("core-js/modules/es6.symbol"); -------------------------------------------------------------------------------- /packages/babel-polyfill/src/core-js/modules/web.timers.js: -------------------------------------------------------------------------------- 1 | require("core-js/modules/web.timers"); -------------------------------------------------------------------------------- /packages/babel-polyfill/src/regenerator-runtime/runtime.js: -------------------------------------------------------------------------------- 1 | require("regenerator-runtime/runtime"); -------------------------------------------------------------------------------- /packages/babel-preset-es2015/test/fixtures/traceur/Modules/resources/a.js: -------------------------------------------------------------------------------- 1 | export var a = 'A'; 2 | -------------------------------------------------------------------------------- /packages/babel-preset-es2015/test/fixtures/traceur/Modules/resources/c.js: -------------------------------------------------------------------------------- 1 | export var c = 'C'; 2 | -------------------------------------------------------------------------------- /packages/babel-preset-es2015/test/fixtures/traceur/Modules/resources/x.js: -------------------------------------------------------------------------------- 1 | export var x = 'X'; 2 | -------------------------------------------------------------------------------- /packages/babel-runtime/regenerator/index.js: -------------------------------------------------------------------------------- 1 | module.exports = require("regenerator-runtime"); 2 | -------------------------------------------------------------------------------- /packages/babel-cli/bin/babel-node.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | require("../lib/babel-node"); 4 | -------------------------------------------------------------------------------- /packages/babel-cli/test/fixtures/babel-node/arguments/in-files/bar.js: -------------------------------------------------------------------------------- 1 | console.log(process.argv[2]); 2 | -------------------------------------------------------------------------------- /packages/babel-cli/test/fixtures/babel-node/directory/options.json: -------------------------------------------------------------------------------- 1 | { 2 | "args": ["foo"] 3 | } 4 | -------------------------------------------------------------------------------- /packages/babel-cli/test/fixtures/babel-node/filename/options.json: -------------------------------------------------------------------------------- 1 | { 2 | "args": ["bar"] 3 | } 4 | -------------------------------------------------------------------------------- /packages/babel-cli/test/fixtures/babel-node/require/options.json: -------------------------------------------------------------------------------- 1 | { 2 | "args": ["foo2"] 3 | } 4 | -------------------------------------------------------------------------------- /packages/babel-cli/test/fixtures/babel/--ignore complete/out-files/lib/foobar/foo.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | -------------------------------------------------------------------------------- /packages/babel-cli/test/fixtures/babel/--ignore glob/out-files/lib/a.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | a; 4 | -------------------------------------------------------------------------------- /packages/babel-cli/test/fixtures/babel/--ignore glob/out-files/lib/b.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | b; 4 | -------------------------------------------------------------------------------- /packages/babel-cli/test/fixtures/babel/--ignore/stdout.txt: -------------------------------------------------------------------------------- 1 | src/bar/index.js -> lib/bar/index.js 2 | -------------------------------------------------------------------------------- /packages/babel-cli/test/fixtures/babel/.stdin --source-maps inline/stdin.txt: -------------------------------------------------------------------------------- 1 | arr.map(x => x * x); 2 | -------------------------------------------------------------------------------- /packages/babel-cli/test/fixtures/babel/stdin --out-file/stdin.txt: -------------------------------------------------------------------------------- 1 | arr.map(x => x * MULTIPLIER); 2 | -------------------------------------------------------------------------------- /packages/babel-core/test/fixtures/config/json-pkg-config/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "babel": {} 3 | } 4 | -------------------------------------------------------------------------------- /packages/babel-core/test/fixtures/resolution/babel-org-paths/node_modules/@babel/plugin-foo/index.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /packages/babel-core/test/fixtures/resolution/babel-org-paths/node_modules/@babel/preset-foo/index.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /packages/babel-core/test/fixtures/resolution/foo-org-paths/node_modules/@foo/babel-plugin-mod/index.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /packages/babel-core/test/fixtures/resolution/foo-org-paths/node_modules/@foo/babel-preset-mod/index.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /packages/babel-core/test/fixtures/resolution/scoped-nested-module-paths/node_modules/@foo/mod/plugin.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /packages/babel-core/test/fixtures/resolution/scoped-nested-module-paths/node_modules/@foo/mod/preset.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /packages/babel-core/test/fixtures/resolution/throw-babel-paths/node_modules/@babel/plugin-foo/index.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /packages/babel-core/test/fixtures/resolution/throw-babel-paths/node_modules/@babel/preset-foo/index.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /packages/babel-core/test/fixtures/transformation/source-maps/full/actual.js: -------------------------------------------------------------------------------- 1 | arr.map(x => x * x); 2 | -------------------------------------------------------------------------------- /packages/babel-core/test/fixtures/transformation/source-maps/inline/actual.js: -------------------------------------------------------------------------------- 1 | arr.map(x => x * x); 2 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/comments/simple-statement-comment/actual.js: -------------------------------------------------------------------------------- 1 | ; // Trailing 2 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/comments/simple-statement-comment/expected.js: -------------------------------------------------------------------------------- 1 | ; // Trailing 2 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/compact/assignment/actual.js: -------------------------------------------------------------------------------- 1 | x = 1; 2 | var { y = 1 } = obj; 3 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/compact/single-line-comment/expected.js: -------------------------------------------------------------------------------- 1 | // foo 2 | bar(); 3 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/parentheses/arrow-function/actual.js: -------------------------------------------------------------------------------- 1 | foo || (bar => bar()); 2 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/parentheses/do-expression/actual.js: -------------------------------------------------------------------------------- 1 | (do { 2 | foo; 3 | }); 4 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/parentheses/object/actual.js: -------------------------------------------------------------------------------- 1 | ({}) === foo; 2 | ({}) && foo; 3 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/retainFunctionParens/negation/actual.js: -------------------------------------------------------------------------------- 1 | !function (){}() 2 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/retainFunctionParens/negation/expected.js: -------------------------------------------------------------------------------- 1 | !function () {}(); 2 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/types/ConditionalExpression/expected.js: -------------------------------------------------------------------------------- 1 | foo ? foo : bar; 2 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/types/ExportDefaultDeclaration/actual.js: -------------------------------------------------------------------------------- 1 | export default 42; 2 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/types/ExportDefaultDeclaration2/actual.js: -------------------------------------------------------------------------------- 1 | export default {}; 2 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/types/ExportDefaultDeclaration3/actual.js: -------------------------------------------------------------------------------- 1 | export default []; 2 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/types/ExportSpecifier12/expected.js: -------------------------------------------------------------------------------- 1 | export { foo, bar }; 2 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/types/ExportSpecifier13/actual.js: -------------------------------------------------------------------------------- 1 | export { foo as bar }; 2 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/types/ExportSpecifier13/expected.js: -------------------------------------------------------------------------------- 1 | export { foo as bar }; 2 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/types/ExportSpecifier14/actual.js: -------------------------------------------------------------------------------- 1 | export { foo as default }; 2 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/types/ExportSpecifier2/actual.js: -------------------------------------------------------------------------------- 1 | export * as foo from "foo"; 2 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/types/ExportSpecifier3/expected.js: -------------------------------------------------------------------------------- 1 | export foo from "foo"; 2 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/types/ExportSpecifier6/actual.js: -------------------------------------------------------------------------------- 1 | export { foo } from "foo"; 2 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/types/XJSMemberExpression/expected.js: -------------------------------------------------------------------------------- 1 | ; 2 | -------------------------------------------------------------------------------- /packages/babel-helper-builder-binary-assignment-operator-visitor/.npmignore: -------------------------------------------------------------------------------- 1 | src 2 | test 3 | *.log 4 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-block-scoped-functions/.npmignore: -------------------------------------------------------------------------------- 1 | src 2 | test 3 | *.log 4 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-modules-amd/test/fixtures/amd/get-module-name-option/actual.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-modules-umd/test/fixtures/umd/get-module-name-option/actual.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-modules-umd/test/fixtures/umd/module-id/actual.js: -------------------------------------------------------------------------------- 1 | foobar(); 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es3-member-expression-literals/.npmignore: -------------------------------------------------------------------------------- 1 | src 2 | test 3 | *.log 4 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-object-set-prototype-of-to-assign/.npmignore: -------------------------------------------------------------------------------- 1 | src 2 | test 3 | *.log 4 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-runtime/test/fixtures/runtime/catch-all/actual.js: -------------------------------------------------------------------------------- 1 | Promise.resolve; 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-runtime/test/fixtures/runtime/no-helpers/actual.js: -------------------------------------------------------------------------------- 1 | class Foo {} 2 | -------------------------------------------------------------------------------- /packages/babel-polyfill/src/core-js/modules/es6.array.fill.js: -------------------------------------------------------------------------------- 1 | require("core-js/modules/es6.array.fill"); -------------------------------------------------------------------------------- /packages/babel-polyfill/src/core-js/modules/es6.array.find.js: -------------------------------------------------------------------------------- 1 | require("core-js/modules/es6.array.find"); -------------------------------------------------------------------------------- /packages/babel-polyfill/src/core-js/modules/es6.array.from.js: -------------------------------------------------------------------------------- 1 | require("core-js/modules/es6.array.from"); -------------------------------------------------------------------------------- /packages/babel-polyfill/src/core-js/modules/es6.array.of.js: -------------------------------------------------------------------------------- 1 | require("core-js/modules/es6.array.of"); -------------------------------------------------------------------------------- /packages/babel-polyfill/src/core-js/modules/es6.math.acosh.js: -------------------------------------------------------------------------------- 1 | require("core-js/modules/es6.math.acosh"); -------------------------------------------------------------------------------- /packages/babel-polyfill/src/core-js/modules/es6.math.asinh.js: -------------------------------------------------------------------------------- 1 | require("core-js/modules/es6.math.asinh"); -------------------------------------------------------------------------------- /packages/babel-polyfill/src/core-js/modules/es6.math.atanh.js: -------------------------------------------------------------------------------- 1 | require("core-js/modules/es6.math.atanh"); -------------------------------------------------------------------------------- /packages/babel-polyfill/src/core-js/modules/es6.math.cbrt.js: -------------------------------------------------------------------------------- 1 | require("core-js/modules/es6.math.cbrt"); -------------------------------------------------------------------------------- /packages/babel-polyfill/src/core-js/modules/es6.math.clz32.js: -------------------------------------------------------------------------------- 1 | require("core-js/modules/es6.math.clz32"); -------------------------------------------------------------------------------- /packages/babel-polyfill/src/core-js/modules/es6.math.cosh.js: -------------------------------------------------------------------------------- 1 | require("core-js/modules/es6.math.cosh"); -------------------------------------------------------------------------------- /packages/babel-polyfill/src/core-js/modules/es6.math.expm1.js: -------------------------------------------------------------------------------- 1 | require("core-js/modules/es6.math.expm1"); -------------------------------------------------------------------------------- /packages/babel-polyfill/src/core-js/modules/es6.math.hypot.js: -------------------------------------------------------------------------------- 1 | require("core-js/modules/es6.math.hypot"); -------------------------------------------------------------------------------- /packages/babel-polyfill/src/core-js/modules/es6.math.imul.js: -------------------------------------------------------------------------------- 1 | require("core-js/modules/es6.math.imul"); -------------------------------------------------------------------------------- /packages/babel-polyfill/src/core-js/modules/es6.math.log10.js: -------------------------------------------------------------------------------- 1 | require("core-js/modules/es6.math.log10"); -------------------------------------------------------------------------------- /packages/babel-polyfill/src/core-js/modules/es6.math.log1p.js: -------------------------------------------------------------------------------- 1 | require("core-js/modules/es6.math.log1p"); -------------------------------------------------------------------------------- /packages/babel-polyfill/src/core-js/modules/es6.math.log2.js: -------------------------------------------------------------------------------- 1 | require("core-js/modules/es6.math.log2"); -------------------------------------------------------------------------------- /packages/babel-polyfill/src/core-js/modules/es6.math.sign.js: -------------------------------------------------------------------------------- 1 | require("core-js/modules/es6.math.sign"); -------------------------------------------------------------------------------- /packages/babel-polyfill/src/core-js/modules/es6.math.sinh.js: -------------------------------------------------------------------------------- 1 | require("core-js/modules/es6.math.sinh"); -------------------------------------------------------------------------------- /packages/babel-polyfill/src/core-js/modules/es6.math.tanh.js: -------------------------------------------------------------------------------- 1 | require("core-js/modules/es6.math.tanh"); -------------------------------------------------------------------------------- /packages/babel-polyfill/src/core-js/modules/es6.math.trunc.js: -------------------------------------------------------------------------------- 1 | require("core-js/modules/es6.math.trunc"); -------------------------------------------------------------------------------- /packages/babel-polyfill/src/core-js/modules/es6.object.is.js: -------------------------------------------------------------------------------- 1 | require("core-js/modules/es6.object.is"); -------------------------------------------------------------------------------- /packages/babel-polyfill/src/core-js/modules/es6.string.raw.js: -------------------------------------------------------------------------------- 1 | require("core-js/modules/es6.string.raw"); -------------------------------------------------------------------------------- /packages/babel-polyfill/src/core-js/modules/es6.weak-map.js: -------------------------------------------------------------------------------- 1 | require("core-js/modules/es6.weak-map"); -------------------------------------------------------------------------------- /packages/babel-polyfill/src/core-js/modules/es6.weak-set.js: -------------------------------------------------------------------------------- 1 | require("core-js/modules/es6.weak-set"); -------------------------------------------------------------------------------- /packages/babel-polyfill/src/core-js/modules/web.immediate.js: -------------------------------------------------------------------------------- 1 | require("core-js/modules/web.immediate"); -------------------------------------------------------------------------------- /packages/babel-preset-es2015/test/fixtures/preset-options/loose/actual.js: -------------------------------------------------------------------------------- 1 | export function a () {} 2 | -------------------------------------------------------------------------------- /packages/babel-preset-es2015/test/fixtures/traceur/Classes/SemiColon.js: -------------------------------------------------------------------------------- 1 | class SemiColon { 2 | ; 3 | } -------------------------------------------------------------------------------- /packages/babel-preset-es2015/test/fixtures/traceur/Modules/resources/a2.js: -------------------------------------------------------------------------------- 1 | export var a = 'A2'; 2 | -------------------------------------------------------------------------------- /packages/babel-preset-es2015/test/fixtures/traceur/Modules/resources/d.js: -------------------------------------------------------------------------------- 1 | export * from './a.js'; 2 | -------------------------------------------------------------------------------- /packages/babel-preset-es2015/test/fixtures/traceur/Modules/resources/default.js: -------------------------------------------------------------------------------- 1 | export default 42; 2 | -------------------------------------------------------------------------------- /packages/babel-cli/index.js: -------------------------------------------------------------------------------- 1 | throw new Error("Use the `babel-core` package instead of `babel-cli`."); 2 | -------------------------------------------------------------------------------- /packages/babel-cli/test/fixtures/babel/--copy-files with ignore/stdout.txt: -------------------------------------------------------------------------------- 1 | src/index.js -> lib/index.js 2 | -------------------------------------------------------------------------------- /packages/babel-cli/test/fixtures/babel/--ignore glob/out-files/lib/baz/c.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | c; 4 | -------------------------------------------------------------------------------- /packages/babel-cli/test/fixtures/babel/--ignore glob/out-files/lib/foo.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | foo; 4 | -------------------------------------------------------------------------------- /packages/babel-cli/test/fixtures/babel/--ignore/out-files/lib/bar/index.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | bar; 4 | -------------------------------------------------------------------------------- /packages/babel-cli/test/fixtures/babel/--only glob/out-files/lib/a.foo.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | a.foo; 4 | -------------------------------------------------------------------------------- /packages/babel-cli/test/fixtures/babel/--only/out-files/lib/bar/index.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | bar; 4 | -------------------------------------------------------------------------------- /packages/babel-cli/test/fixtures/babel/.stdin --out-file --source-maps/stdin.txt: -------------------------------------------------------------------------------- 1 | arr.map(x => x * x); 2 | -------------------------------------------------------------------------------- /packages/babel-cli/test/fixtures/babel/dir --out-dir/in-files/src/bar/bar.js: -------------------------------------------------------------------------------- 1 | class Test { 2 | 3 | } 4 | -------------------------------------------------------------------------------- /packages/babel-cli/test/fixtures/babel/dir --out-dir/in-files/src/foo.js: -------------------------------------------------------------------------------- 1 | arr.map(x => x * MULTIPLIER); 2 | -------------------------------------------------------------------------------- /packages/babel-cli/test/fixtures/babel/filenames --out-file/in-files/script.js: -------------------------------------------------------------------------------- 1 | class Test { 2 | 3 | } 4 | -------------------------------------------------------------------------------- /packages/babel-core/test/fixtures/config/dir2/.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "plugins": [ 3 | "dir2" 4 | ] 5 | } 6 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/parentheses/arrow-function/expected.js: -------------------------------------------------------------------------------- 1 | foo || (bar => bar()); 2 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/parentheses/do-expression/expected.js: -------------------------------------------------------------------------------- 1 | (do { 2 | foo; 3 | }); 4 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/parentheses/object/expected.js: -------------------------------------------------------------------------------- 1 | ({}) === foo; 2 | ({}) && foo; 3 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/retainFunctionParens/nested/expected.js: -------------------------------------------------------------------------------- 1 | var x = (function () {}); 2 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/types/BlockStatement/actual.js: -------------------------------------------------------------------------------- 1 | {} 2 | 3 | { 4 | foo(); 5 | } 6 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/types/BlockStatement/expected.js: -------------------------------------------------------------------------------- 1 | {} 2 | 3 | { 4 | foo(); 5 | } 6 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/types/ExportDefaultDeclaration/expected.js: -------------------------------------------------------------------------------- 1 | export default 42; 2 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/types/ExportDefaultDeclaration2/expected.js: -------------------------------------------------------------------------------- 1 | export default {}; 2 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/types/ExportDefaultDeclaration3/expected.js: -------------------------------------------------------------------------------- 1 | export default []; 2 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/types/ExportDefaultDeclaration4/actual.js: -------------------------------------------------------------------------------- 1 | export default foo; 2 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/types/ExportDefaultDeclaration4/expected.js: -------------------------------------------------------------------------------- 1 | export default foo; 2 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/types/ExportDefaultDeclaration6/actual.js: -------------------------------------------------------------------------------- 1 | export default class {} 2 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/types/ExportSpecifier14/expected.js: -------------------------------------------------------------------------------- 1 | export { foo as default }; 2 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/types/ExportSpecifier15/actual.js: -------------------------------------------------------------------------------- 1 | export { foo as default, bar }; 2 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/types/ExportSpecifier2/expected.js: -------------------------------------------------------------------------------- 1 | export * as foo from "foo"; 2 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/types/ExportSpecifier5/actual.js: -------------------------------------------------------------------------------- 1 | export foo, { bar } from "foo"; 2 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/types/ExportSpecifier6/expected.js: -------------------------------------------------------------------------------- 1 | export { foo } from "foo"; 2 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/types/ExportSpecifier7/actual.js: -------------------------------------------------------------------------------- 1 | export { foo, bar } from "foo"; 2 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/types/LabeledStatement/actual.js: -------------------------------------------------------------------------------- 1 | label: for (var i in test) {} 2 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/types/LabeledStatement/expected.js: -------------------------------------------------------------------------------- 1 | label: for (var i in test) {} 2 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/types/LogicalExpression/actual.js: -------------------------------------------------------------------------------- 1 | foo ||bar; 2 | (x => x)|| bar; 3 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/types/SequenceExpression/expected.js: -------------------------------------------------------------------------------- 1 | foo, bar; 2 | 3 | foo, bar; 4 | -------------------------------------------------------------------------------- /packages/babel-helper-define-map/README.md: -------------------------------------------------------------------------------- 1 | # babel-helper-define-map 2 | 3 | ## Usage 4 | 5 | TODO 6 | -------------------------------------------------------------------------------- /packages/babel-plugin-check-es2015-constants/test/fixtures/general/flow-declar/expected.js: -------------------------------------------------------------------------------- 1 | var foo = 1; 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-block-scoping/test/fixtures/.fail/call.js: -------------------------------------------------------------------------------- 1 | a; 2 | 3 | let a = 1; 4 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-classes/test/fixtures/spec/plain-class/actual.js: -------------------------------------------------------------------------------- 1 | class Test { } 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-modules-amd/test/fixtures/amd/module-name/actual.js: -------------------------------------------------------------------------------- 1 | foobar(); 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-modules-umd/test/fixtures/umd/module-name/actual.js: -------------------------------------------------------------------------------- 1 | foobar(); 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-jscript/test/fixtures/jscript/simple-class/actual.js: -------------------------------------------------------------------------------- 1 | class Test { 2 | } 3 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-react-jsx-source/test/fixtures/react-source/no-jsx/actual.js: -------------------------------------------------------------------------------- 1 | var x = 42; 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-runtime/test/fixtures/runtime/symbol-iterator/actual.js: -------------------------------------------------------------------------------- 1 | Symbol.iterator; 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-strict-mode/test/fixtures/strict-mode/use-strict-add/actual.js: -------------------------------------------------------------------------------- 1 | foo(); 2 | -------------------------------------------------------------------------------- /packages/babel-polyfill/src/core-js/modules/es6.math.fround.js: -------------------------------------------------------------------------------- 1 | require("core-js/modules/es6.math.fround"); -------------------------------------------------------------------------------- /packages/babel-polyfill/src/core-js/modules/es6.reflect.get.js: -------------------------------------------------------------------------------- 1 | require("core-js/modules/es6.reflect.get"); -------------------------------------------------------------------------------- /packages/babel-polyfill/src/core-js/modules/es6.reflect.has.js: -------------------------------------------------------------------------------- 1 | require("core-js/modules/es6.reflect.has"); -------------------------------------------------------------------------------- /packages/babel-polyfill/src/core-js/modules/es6.reflect.set.js: -------------------------------------------------------------------------------- 1 | require("core-js/modules/es6.reflect.set"); -------------------------------------------------------------------------------- /packages/babel-polyfill/src/core-js/modules/es6.regexp.flags.js: -------------------------------------------------------------------------------- 1 | require("core-js/modules/es6.regexp.flags"); -------------------------------------------------------------------------------- /packages/babel-polyfill/src/core-js/modules/es6.regexp.match.js: -------------------------------------------------------------------------------- 1 | require("core-js/modules/es6.regexp.match"); -------------------------------------------------------------------------------- /packages/babel-polyfill/src/core-js/modules/es6.regexp.split.js: -------------------------------------------------------------------------------- 1 | require("core-js/modules/es6.regexp.split"); -------------------------------------------------------------------------------- /packages/babel-polyfill/src/core-js/modules/web.dom.iterable.js: -------------------------------------------------------------------------------- 1 | require("core-js/modules/web.dom.iterable"); -------------------------------------------------------------------------------- /packages/babel-preset-es2015/test/fixtures/preset-options/loose-false/actual.js: -------------------------------------------------------------------------------- 1 | export function a () {} 2 | -------------------------------------------------------------------------------- /packages/babel-preset-es2015/test/fixtures/preset-options/modules-umd/actual.js: -------------------------------------------------------------------------------- 1 | export function a () {} 2 | -------------------------------------------------------------------------------- /packages/babel-preset-es2015/test/fixtures/preset-options/no-options/actual.js: -------------------------------------------------------------------------------- 1 | export function a () {} 2 | -------------------------------------------------------------------------------- /packages/babel-preset-es2015/test/fixtures/traceur/Modules/resources/b.js: -------------------------------------------------------------------------------- 1 | import * as c from './c.js'; 2 | -------------------------------------------------------------------------------- /packages/babel-preset-es2015/test/fixtures/traceur/Modules/resources/f.js: -------------------------------------------------------------------------------- 1 | export var f = () => this; 2 | -------------------------------------------------------------------------------- /packages/babel-preset-es2015/test/fixtures/traceur/Modules/resources/side-effect.js: -------------------------------------------------------------------------------- 1 | this.sideEffect++; 2 | -------------------------------------------------------------------------------- /packages/babel-cli/test/fixtures/babel/--copy-files with only/stdout.txt: -------------------------------------------------------------------------------- 1 | src/foo/bar.js -> lib/foo/bar.js 2 | -------------------------------------------------------------------------------- /packages/babel-cli/test/fixtures/babel/--copy-files/out-files/lib/bar/index.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | bar; 4 | -------------------------------------------------------------------------------- /packages/babel-cli/test/fixtures/babel/--ignore complete/stdout.txt: -------------------------------------------------------------------------------- 1 | src/foobar/foo.js -> lib/foobar/foo.js 2 | -------------------------------------------------------------------------------- /packages/babel-cli/test/fixtures/babel/--only glob/out-files/lib/baz/b.foo.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | b.foo; 4 | -------------------------------------------------------------------------------- /packages/babel-cli/test/fixtures/babel/filename --out-file/in-files/script.js: -------------------------------------------------------------------------------- 1 | arr.map(x => x * MULTIPLIER); 2 | -------------------------------------------------------------------------------- /packages/babel-cli/test/fixtures/babel/filename babelrc no comments/.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "comments": false 3 | } 4 | -------------------------------------------------------------------------------- /packages/babel-cli/test/fixtures/babel/filenames --out-file/in-files/script2.js: -------------------------------------------------------------------------------- 1 | arr.map(x => x * MULTIPLIER); 2 | -------------------------------------------------------------------------------- /packages/babel-core/register.js: -------------------------------------------------------------------------------- 1 | throw new Error("`babel-core/register` has been moved to `babel-register`."); 2 | -------------------------------------------------------------------------------- /packages/babel-core/test/fixtures/resolution/babel-scoped-nested-module-paths/node_modules/@babel/mod/plugin.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /packages/babel-core/test/fixtures/resolution/babel-scoped-nested-module-paths/node_modules/@babel/mod/preset.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /packages/babel-core/test/fixtures/resolution/throw-opposite-paths/node_modules/babel-plugin-testplugin/index.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /packages/babel-core/test/fixtures/resolution/throw-opposite-paths/node_modules/babel-preset-testpreset/index.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /packages/babel-core/test/fixtures/transformation/source-maps/arrow-function/actual.js: -------------------------------------------------------------------------------- 1 | var t = x => x * x; 2 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/comments/comment-only/actual.js: -------------------------------------------------------------------------------- 1 | // from #23 2 | /**/ 3 | /* 4 | */ 5 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/comments/comment-only/expected.js: -------------------------------------------------------------------------------- 1 | // from #23 2 | /**/ 3 | /* 4 | */ 5 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/harmony-edgecase/export-default-object/actual.js: -------------------------------------------------------------------------------- 1 | export default {}; 2 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/harmony-edgecase/export-default-object/expected.js: -------------------------------------------------------------------------------- 1 | export default {}; 2 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/retainFunctionParens/argument/actual.js: -------------------------------------------------------------------------------- 1 | __d('x', (function () {})); 2 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/retainFunctionParens/argument/expected.js: -------------------------------------------------------------------------------- 1 | __d('x', (function () {})); 2 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/retainFunctionParens/assignment/actual.js: -------------------------------------------------------------------------------- 1 | var x = (function () {}); 2 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/retainFunctionParens/assignment/expected.js: -------------------------------------------------------------------------------- 1 | var x = (function () {}); 2 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/retainFunctionParens/nested/actual.js: -------------------------------------------------------------------------------- 1 | var x = (((function () { }))); 2 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/retainFunctionParens/no-parens/actual.js: -------------------------------------------------------------------------------- 1 | callback(function () {}); 2 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/retainFunctionParens/no-parens/expected.js: -------------------------------------------------------------------------------- 1 | callback(function () {}); 2 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/types/ExportDefaultDeclaration6/expected.js: -------------------------------------------------------------------------------- 1 | export default class {} 2 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/types/ExportDefaultDeclaration8/actual.js: -------------------------------------------------------------------------------- 1 | export default class Foo {} 2 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/types/ExportSpecifier15/expected.js: -------------------------------------------------------------------------------- 1 | export { foo as default, bar }; 2 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/types/ExportSpecifier4/actual.js: -------------------------------------------------------------------------------- 1 | export * as foo, { bar } from "foo"; 2 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/types/ExportSpecifier5/expected.js: -------------------------------------------------------------------------------- 1 | export foo, { bar } from "foo"; 2 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/types/ExportSpecifier7/expected.js: -------------------------------------------------------------------------------- 1 | export { foo, bar } from "foo"; 2 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/types/ExportSpecifier8/actual.js: -------------------------------------------------------------------------------- 1 | export { foo as bar } from "foo"; 2 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/types/ExportSpecifier8/expected.js: -------------------------------------------------------------------------------- 1 | export { foo as bar } from "foo"; 2 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/types/ExportSpecifier9/actual.js: -------------------------------------------------------------------------------- 1 | export { foo as default } from "foo"; 2 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/types/LogicalExpression/expected.js: -------------------------------------------------------------------------------- 1 | foo || bar; 2 | (x => x) || bar; 3 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/types/SequenceExpression/actual.js: -------------------------------------------------------------------------------- 1 | foo, bar; 2 | 3 | foo, 4 | bar; 5 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/types/UpdateExpression/actual.js: -------------------------------------------------------------------------------- 1 | ++i; 2 | i++; 3 | (foo++).test(); 4 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/types/UpdateExpression/expected.js: -------------------------------------------------------------------------------- 1 | ++i; 2 | i++; 3 | (foo++).test(); 4 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/types/XJSSpreadAttribute/actual.js: -------------------------------------------------------------------------------- 1 | ; 2 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/types/XJSSpreadAttribute/expected.js: -------------------------------------------------------------------------------- 1 | ; 2 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/types/XJSSpreadChildren/actual.js: -------------------------------------------------------------------------------- 1 |
{...this.props.children}
; 2 | -------------------------------------------------------------------------------- /packages/babel-helper-call-delegate/README.md: -------------------------------------------------------------------------------- 1 | # babel-helper-call-delegate 2 | 3 | ## Usage 4 | 5 | TODO 6 | -------------------------------------------------------------------------------- /packages/babel-helper-explode-class/README.md: -------------------------------------------------------------------------------- 1 | # babel-helper-explode-class 2 | 3 | ## Usage 4 | 5 | TODO 6 | -------------------------------------------------------------------------------- /packages/babel-helper-function-name/README.md: -------------------------------------------------------------------------------- 1 | # babel-helper-function-name 2 | 3 | ## Usage 4 | 5 | TODO 6 | -------------------------------------------------------------------------------- /packages/babel-helper-replace-supers/README.md: -------------------------------------------------------------------------------- 1 | # babel-helper-replace-supers 2 | 3 | ## Usage 4 | 5 | TODO 6 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-block-scoping/test/fixtures/.fail/export.js: -------------------------------------------------------------------------------- 1 | a; 2 | export const a = 1; 3 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-block-scoping/test/fixtures/.fail/update.js: -------------------------------------------------------------------------------- 1 | a++; 2 | 3 | let a = 1; 4 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-block-scoping/test/fixtures/pass/export.js: -------------------------------------------------------------------------------- 1 | export const a = 1; 2 | a; 3 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-modules-amd/test/fixtures/amd/export-named/actual.js: -------------------------------------------------------------------------------- 1 | export {foo}; 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-modules-systemjs/test/fixtures/systemjs/get-module-name-option/actual.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-modules-umd/test/fixtures/umd/export-named/actual.js: -------------------------------------------------------------------------------- 1 | export {foo}; 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-template-literals/test/fixtures/spec/none/actual.js: -------------------------------------------------------------------------------- 1 | var foo = `test`; 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-react-jsx-source/test/fixtures/react-source/no-jsx/expected.js: -------------------------------------------------------------------------------- 1 | var x = 42; 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-regenerator/src/index.js: -------------------------------------------------------------------------------- 1 | export { default } from "regenerator-transform"; 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-strict-mode/test/fixtures/auxiliary-comment/use-strict-add/actual.js: -------------------------------------------------------------------------------- 1 | foo(); 2 | -------------------------------------------------------------------------------- /packages/babel-polyfill/src/core-js/modules/es6.array.iterator.js: -------------------------------------------------------------------------------- 1 | require("core-js/modules/es6.array.iterator"); -------------------------------------------------------------------------------- /packages/babel-polyfill/src/core-js/modules/es6.function.name.js: -------------------------------------------------------------------------------- 1 | require("core-js/modules/es6.function.name"); -------------------------------------------------------------------------------- /packages/babel-polyfill/src/core-js/modules/es6.number.epsilon.js: -------------------------------------------------------------------------------- 1 | require("core-js/modules/es6.number.epsilon"); -------------------------------------------------------------------------------- /packages/babel-polyfill/src/core-js/modules/es6.number.is-nan.js: -------------------------------------------------------------------------------- 1 | require("core-js/modules/es6.number.is-nan"); -------------------------------------------------------------------------------- /packages/babel-polyfill/src/core-js/modules/es6.object.assign.js: -------------------------------------------------------------------------------- 1 | require("core-js/modules/es6.object.assign"); -------------------------------------------------------------------------------- /packages/babel-polyfill/src/core-js/modules/es6.reflect.apply.js: -------------------------------------------------------------------------------- 1 | require("core-js/modules/es6.reflect.apply"); -------------------------------------------------------------------------------- /packages/babel-polyfill/src/core-js/modules/es6.regexp.replace.js: -------------------------------------------------------------------------------- 1 | require("core-js/modules/es6.regexp.replace"); -------------------------------------------------------------------------------- /packages/babel-polyfill/src/core-js/modules/es6.regexp.search.js: -------------------------------------------------------------------------------- 1 | require("core-js/modules/es6.regexp.search"); -------------------------------------------------------------------------------- /packages/babel-polyfill/src/core-js/modules/es6.string.includes.js: -------------------------------------------------------------------------------- 1 | require("core-js/modules/es6.string.includes"); -------------------------------------------------------------------------------- /packages/babel-polyfill/src/core-js/modules/es6.string.repeat.js: -------------------------------------------------------------------------------- 1 | require("core-js/modules/es6.string.repeat"); -------------------------------------------------------------------------------- /packages/babel-polyfill/src/core-js/modules/es6.typed.data-view.js: -------------------------------------------------------------------------------- 1 | require("core-js/modules/es6.typed.data-view"); -------------------------------------------------------------------------------- /packages/babel-polyfill/src/core-js/modules/es7.array.includes.js: -------------------------------------------------------------------------------- 1 | require("core-js/modules/es7.array.includes"); -------------------------------------------------------------------------------- /packages/babel-polyfill/src/core-js/modules/es7.object.entries.js: -------------------------------------------------------------------------------- 1 | require("core-js/modules/es7.object.entries"); -------------------------------------------------------------------------------- /packages/babel-polyfill/src/core-js/modules/es7.object.values.js: -------------------------------------------------------------------------------- 1 | require("core-js/modules/es7.object.values"); -------------------------------------------------------------------------------- /packages/babel-polyfill/src/core-js/modules/es7.string.pad-end.js: -------------------------------------------------------------------------------- 1 | require("core-js/modules/es7.string.pad-end"); -------------------------------------------------------------------------------- /packages/babel-preset-es2015/test/fixtures/preset-options/empty-options/actual.js: -------------------------------------------------------------------------------- 1 | export function a () {} 2 | -------------------------------------------------------------------------------- /packages/babel-preset-es2015/test/fixtures/preset-options/modules-amd-loose/actual.js: -------------------------------------------------------------------------------- 1 | export function a () {} 2 | -------------------------------------------------------------------------------- /packages/babel-preset-es2015/test/fixtures/preset-options/modules-commonjs/actual.js: -------------------------------------------------------------------------------- 1 | export function a () {} 2 | -------------------------------------------------------------------------------- /packages/babel-preset-es2015/test/fixtures/preset-options/modules-false/actual.js: -------------------------------------------------------------------------------- 1 | export function a () {} 2 | -------------------------------------------------------------------------------- /packages/babel-preset-es2015/test/fixtures/preset-options/modules-false/expected.js: -------------------------------------------------------------------------------- 1 | export function a() {} 2 | -------------------------------------------------------------------------------- /packages/babel-preset-es2015/test/fixtures/preset-options/modules-systemjs/actual.js: -------------------------------------------------------------------------------- 1 | export function a () {} 2 | -------------------------------------------------------------------------------- /packages/babel-preset-es2015/test/fixtures/preset-options/string-preset/actual.js: -------------------------------------------------------------------------------- 1 | export function a () {} 2 | -------------------------------------------------------------------------------- /packages/babel-traverse/test/fixtures/comments/attachment/options.json: -------------------------------------------------------------------------------- 1 | { 2 | "plugins": ["./remove"] 3 | } 4 | -------------------------------------------------------------------------------- /doc/design/versioning.md: -------------------------------------------------------------------------------- 1 | # How does Babel versioning work? 2 | 3 | ## Does Babel follow semver? 4 | 5 | Yes. 6 | -------------------------------------------------------------------------------- /packages/babel-cli/test/fixtures/babel-node/--extensions/in-files/foo.bar: -------------------------------------------------------------------------------- 1 | console.log([1, 2, 3].map(x => x * x)); 2 | -------------------------------------------------------------------------------- /packages/babel-cli/test/fixtures/babel/--copy-files with only/out-files/lib/foo/bar.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | bar; 4 | -------------------------------------------------------------------------------- /packages/babel-cli/test/fixtures/babel/dir --out-dir --source-maps/in-files/src/bar/bar.js: -------------------------------------------------------------------------------- 1 | class Test { 2 | 3 | } 4 | -------------------------------------------------------------------------------- /packages/babel-cli/test/fixtures/babel/stdin --filename/stdin.txt: -------------------------------------------------------------------------------- 1 | arr.map(function () { 2 | return $]!; 3 | }); 4 | -------------------------------------------------------------------------------- /packages/babel-core/test/fixtures/config/complex-plugin-config/one.js: -------------------------------------------------------------------------------- 1 | module.exports = require("./plugin")("one"); 2 | -------------------------------------------------------------------------------- /packages/babel-core/test/fixtures/config/complex-plugin-config/six.js: -------------------------------------------------------------------------------- 1 | module.exports = require("./plugin")("six"); 2 | -------------------------------------------------------------------------------- /packages/babel-core/test/fixtures/config/complex-plugin-config/ten.js: -------------------------------------------------------------------------------- 1 | module.exports = require("./plugin")("ten"); 2 | -------------------------------------------------------------------------------- /packages/babel-core/test/fixtures/config/complex-plugin-config/two.js: -------------------------------------------------------------------------------- 1 | module.exports = require("./plugin")("two"); 2 | -------------------------------------------------------------------------------- /packages/babel-core/test/fixtures/config/js-json-config/.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "plugins": [ 3 | "json" 4 | ] 5 | } 6 | -------------------------------------------------------------------------------- /packages/babel-core/test/fixtures/transformation/misc/options.json: -------------------------------------------------------------------------------- 1 | { 2 | "plugins": ["external-helpers"] 3 | } 4 | -------------------------------------------------------------------------------- /packages/babel-core/test/fixtures/transformation/misc/shebang/actual.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | foobar(); 4 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/comments/do-while-line-comment/expected.js: -------------------------------------------------------------------------------- 1 | do {} // LINE 2 | while (true); 3 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/edgecase/floating-point/actual.js: -------------------------------------------------------------------------------- 1 | 1.1.valueOf(); 2 | (1e+300).valueOf(); 3 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/edgecase/floating-point/expected.js: -------------------------------------------------------------------------------- 1 | 1.1.valueOf(); 2 | 1e+300.valueOf(); 3 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/flow/boolean-literal-types/actual.js: -------------------------------------------------------------------------------- 1 | var foo: true; 2 | var bar: false; 3 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/flow/boolean-literal-types/expected.js: -------------------------------------------------------------------------------- 1 | var foo: true; 2 | var bar: false; 3 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/harmony-edgecase/export-default-class/actual.js: -------------------------------------------------------------------------------- 1 | export default class {} 2 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/harmony-edgecase/export-default-class/expected.js: -------------------------------------------------------------------------------- 1 | export default class {} 2 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/types/ClassExpression/actual.js: -------------------------------------------------------------------------------- 1 | class Foo {} 2 | class Foo extends Bar {} 3 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/types/ClassExpression/expected.js: -------------------------------------------------------------------------------- 1 | class Foo {} 2 | class Foo extends Bar {} 3 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/types/ExportDefaultDeclaration5/actual.js: -------------------------------------------------------------------------------- 1 | export default function () {} 2 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/types/ExportDefaultDeclaration5/expected.js: -------------------------------------------------------------------------------- 1 | export default function () {} 2 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/types/ExportDefaultDeclaration7/actual.js: -------------------------------------------------------------------------------- 1 | export default function foo() {} 2 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/types/ExportDefaultDeclaration8/expected.js: -------------------------------------------------------------------------------- 1 | export default class Foo {} 2 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/types/ExportSpecifier4/expected.js: -------------------------------------------------------------------------------- 1 | export * as foo, { bar } from "foo"; 2 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/types/ExportSpecifier9/expected.js: -------------------------------------------------------------------------------- 1 | export { foo as default } from "foo"; 2 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/types/NewExpression/actual.js: -------------------------------------------------------------------------------- 1 | new Foo; 2 | new Foo(); 3 | new Foo(bar); 4 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/types/NewExpression/expected.js: -------------------------------------------------------------------------------- 1 | new Foo(); 2 | new Foo(); 3 | new Foo(bar); 4 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/types/XJSExpressionContainer/actual.js: -------------------------------------------------------------------------------- 1 |
{this.props.children}
; 2 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/types/XJSExpressionContainer/expected.js: -------------------------------------------------------------------------------- 1 |
{this.props.children}
; 2 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/types/XJSSpreadChildren/expected.js: -------------------------------------------------------------------------------- 1 |
{...this.props.children}
; 2 | -------------------------------------------------------------------------------- /packages/babel-helper-hoist-variables/README.md: -------------------------------------------------------------------------------- 1 | # babel-helper-hoist-variables 2 | 3 | ## Usage 4 | 5 | TODO 6 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-block-scoping/test/fixtures/.fail/assignment.js: -------------------------------------------------------------------------------- 1 | a = 1; 2 | 3 | let a = 2; 4 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-block-scoping/test/fixtures/general/program/actual.js: -------------------------------------------------------------------------------- 1 | let test = "foo"; 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-block-scoping/test/fixtures/general/program/expected.js: -------------------------------------------------------------------------------- 1 | var test = "foo"; 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-classes/test/fixtures/regression/2941/actual.js: -------------------------------------------------------------------------------- 1 | export default class {} 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-classes/test/fixtures/spec/super-class/actual.js: -------------------------------------------------------------------------------- 1 | class Test extends Foo { } 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-for-of/test/fixtures/loose/identifier/actual.js: -------------------------------------------------------------------------------- 1 | for (i of arr) { 2 | 3 | } 4 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-for-of/test/fixtures/loose/let/actual.js: -------------------------------------------------------------------------------- 1 | for (let i of arr) { 2 | 3 | } 4 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-for-of/test/fixtures/loose/var/actual.js: -------------------------------------------------------------------------------- 1 | for (var i of arr) { 2 | 3 | } 4 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-for-of/test/fixtures/spec/identifier/actual.js: -------------------------------------------------------------------------------- 1 | for (i of arr) { 2 | 3 | } 4 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-for-of/test/fixtures/spec/let/actual.js: -------------------------------------------------------------------------------- 1 | for (let i of arr) { 2 | 3 | } 4 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-for-of/test/fixtures/spec/var/actual.js: -------------------------------------------------------------------------------- 1 | for (var i of arr) { 2 | 3 | } 4 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-instanceof/test/fixtures/instanceof/instanceof/actual.js: -------------------------------------------------------------------------------- 1 | a instanceof b; 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-modules-amd/test/fixtures/amd/export-default-2/actual.js: -------------------------------------------------------------------------------- 1 | export default {}; 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-modules-amd/test/fixtures/amd/export-default-3/actual.js: -------------------------------------------------------------------------------- 1 | export default []; 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-modules-amd/test/fixtures/amd/export-default/actual.js: -------------------------------------------------------------------------------- 1 | export default 42; 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-modules-amd/test/fixtures/amd/export-from/actual.js: -------------------------------------------------------------------------------- 1 | export * from "foo"; 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-modules-amd/test/fixtures/amd/export-named-2/actual.js: -------------------------------------------------------------------------------- 1 | export {foo, bar}; 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-modules-amd/test/fixtures/amd/export-named-3/actual.js: -------------------------------------------------------------------------------- 1 | export {foo as bar}; 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-modules-commonjs/test/fixtures/interop/export-named/actual.js: -------------------------------------------------------------------------------- 1 | export {foo}; 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-modules-commonjs/test/fixtures/interop/imports-hoisting/actual.js: -------------------------------------------------------------------------------- 1 | tag`foo`; 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-modules-umd/test/fixtures/umd/export-default-2/actual.js: -------------------------------------------------------------------------------- 1 | export default {}; 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-modules-umd/test/fixtures/umd/export-default-3/actual.js: -------------------------------------------------------------------------------- 1 | export default []; 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-modules-umd/test/fixtures/umd/export-default/actual.js: -------------------------------------------------------------------------------- 1 | export default 42; 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-modules-umd/test/fixtures/umd/export-from-6/actual.js: -------------------------------------------------------------------------------- 1 | export * from "foo"; 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-modules-umd/test/fixtures/umd/export-named-4/actual.js: -------------------------------------------------------------------------------- 1 | export {foo as bar}; 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-modules-umd/test/fixtures/umd/export-named-5/actual.js: -------------------------------------------------------------------------------- 1 | export {foo, bar}; 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-sticky-regex/test/fixtures/sticky-regex/basic/actual.js: -------------------------------------------------------------------------------- 1 | var re = /o+/y; 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-template-literals/test/fixtures/normal/none/actual.js: -------------------------------------------------------------------------------- 1 | var foo = `test`; 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-template-literals/test/fixtures/normal/none/expected.js: -------------------------------------------------------------------------------- 1 | var foo = "test"; 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-template-literals/test/fixtures/normal/only/actual.js: -------------------------------------------------------------------------------- 1 | var foo = `${test}`; 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-template-literals/test/fixtures/spec/none/expected.js: -------------------------------------------------------------------------------- 1 | var foo = "test"; 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-template-literals/test/fixtures/spec/only/actual.js: -------------------------------------------------------------------------------- 1 | var foo = `${test}`; 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-runtime/test/fixtures/runtime/es6-for-of/actual.js: -------------------------------------------------------------------------------- 1 | for (var i of arr) { 2 | 3 | } 4 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-runtime/test/fixtures/runtime/modules/actual.js: -------------------------------------------------------------------------------- 1 | import foo from "bar"; 2 | foo; 3 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-runtime/test/fixtures/use-options/useBuiltIns/actual.js: -------------------------------------------------------------------------------- 1 | class Foo extends Bar {} 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-runtime/test/fixtures/use-options/useESModules/actual.js: -------------------------------------------------------------------------------- 1 | class Foo extends Bar {} 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-strict-mode/test/fixtures/disable-strict-mode/strictMode-false/actual.js: -------------------------------------------------------------------------------- 1 | foo(); 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-strict-mode/test/fixtures/disable-strict-mode/strictMode-false/expected.js: -------------------------------------------------------------------------------- 1 | foo(); 2 | -------------------------------------------------------------------------------- /packages/babel-polyfill/src/core-js/modules/es6.array.copy-within.js: -------------------------------------------------------------------------------- 1 | require("core-js/modules/es6.array.copy-within"); -------------------------------------------------------------------------------- /packages/babel-polyfill/src/core-js/modules/es6.array.find-index.js: -------------------------------------------------------------------------------- 1 | require("core-js/modules/es6.array.find-index"); -------------------------------------------------------------------------------- /packages/babel-polyfill/src/core-js/modules/es6.number.is-finite.js: -------------------------------------------------------------------------------- 1 | require("core-js/modules/es6.number.is-finite"); -------------------------------------------------------------------------------- /packages/babel-polyfill/src/core-js/modules/es6.number.is-integer.js: -------------------------------------------------------------------------------- 1 | require("core-js/modules/es6.number.is-integer"); -------------------------------------------------------------------------------- /packages/babel-polyfill/src/core-js/modules/es6.reflect.construct.js: -------------------------------------------------------------------------------- 1 | require("core-js/modules/es6.reflect.construct"); -------------------------------------------------------------------------------- /packages/babel-polyfill/src/core-js/modules/es6.reflect.own-keys.js: -------------------------------------------------------------------------------- 1 | require("core-js/modules/es6.reflect.own-keys"); -------------------------------------------------------------------------------- /packages/babel-polyfill/src/core-js/modules/es6.string.ends-with.js: -------------------------------------------------------------------------------- 1 | require("core-js/modules/es6.string.ends-with"); -------------------------------------------------------------------------------- /packages/babel-polyfill/src/core-js/modules/es6.typed.int16-array.js: -------------------------------------------------------------------------------- 1 | require("core-js/modules/es6.typed.int16-array"); -------------------------------------------------------------------------------- /packages/babel-polyfill/src/core-js/modules/es6.typed.int32-array.js: -------------------------------------------------------------------------------- 1 | require("core-js/modules/es6.typed.int32-array"); -------------------------------------------------------------------------------- /packages/babel-polyfill/src/core-js/modules/es6.typed.int8-array.js: -------------------------------------------------------------------------------- 1 | require("core-js/modules/es6.typed.int8-array"); -------------------------------------------------------------------------------- /packages/babel-polyfill/src/core-js/modules/es6.typed.uint8-array.js: -------------------------------------------------------------------------------- 1 | require("core-js/modules/es6.typed.uint8-array"); -------------------------------------------------------------------------------- /packages/babel-polyfill/src/core-js/modules/es7.string.pad-start.js: -------------------------------------------------------------------------------- 1 | require("core-js/modules/es7.string.pad-start"); -------------------------------------------------------------------------------- /packages/babel-preset-es2015/test/fixtures/traceur/Modules/resources/m.js: -------------------------------------------------------------------------------- 1 | export var a = 1; 2 | export var b = 2; 3 | -------------------------------------------------------------------------------- /packages/babel-preset-es2015/test/fixtures/traceur/Modules/resources/m2.js: -------------------------------------------------------------------------------- 1 | var z = 'z'; 2 | export {z as var}; 3 | -------------------------------------------------------------------------------- /packages/babel-preset-es2015/test/fixtures/traceur/Modules/resources/side-effect2.js: -------------------------------------------------------------------------------- 1 | this.sideEffect++; 2 | 3 | 4 | -------------------------------------------------------------------------------- /packages/babel-preset-es2015/test/fixtures/traceur/Spread/NoIterator.js: -------------------------------------------------------------------------------- 1 | assert.throw(() => [...{}], TypeError); 2 | -------------------------------------------------------------------------------- /packages/babel-preset-es2015/test/fixtures/traceur/Spread/NotAnObject.js: -------------------------------------------------------------------------------- 1 | assert.throw(() => [...null], TypeError); 2 | -------------------------------------------------------------------------------- /packages/babel-cli/bin/babel-doctor.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | throw new Error("babel-doctor has been removed."); 4 | -------------------------------------------------------------------------------- /packages/babel-cli/bin/babel-external-helpers.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | require("../lib/babel-external-helpers"); 4 | -------------------------------------------------------------------------------- /packages/babel-cli/test/fixtures/babel-node/filename/in-files/bar.js: -------------------------------------------------------------------------------- 1 | var foo = () => console.log("foo"); 2 | foo(); 3 | -------------------------------------------------------------------------------- /packages/babel-cli/test/fixtures/babel-node/require/in-files/bar2.js: -------------------------------------------------------------------------------- 1 | var bar = () => console.log("bar"); 2 | bar(); 3 | -------------------------------------------------------------------------------- /packages/babel-cli/test/fixtures/babel/--copy-files with ignore/out-files/lib/index.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | index; 4 | -------------------------------------------------------------------------------- /packages/babel-cli/test/fixtures/babel/dir --out-dir --source-maps/in-files/src/foo.js: -------------------------------------------------------------------------------- 1 | arr.map(x => x * MULTIPLIER); 2 | -------------------------------------------------------------------------------- /packages/babel-cli/test/fixtures/babel/dir --out-dir/options.json: -------------------------------------------------------------------------------- 1 | { 2 | "args": ["src", "--out-dir", "lib"] 3 | } 4 | -------------------------------------------------------------------------------- /packages/babel-cli/test/fixtures/babel/filenames --out-file --source-maps/in-files/script.js: -------------------------------------------------------------------------------- 1 | class Test { 2 | 3 | } 4 | -------------------------------------------------------------------------------- /packages/babel-cli/test/fixtures/babel/stdin --out-file/options.json: -------------------------------------------------------------------------------- 1 | { 2 | "args": ["--out-file", "script.js"] 3 | } 4 | -------------------------------------------------------------------------------- /packages/babel-core/test/fixtures/config/complex-plugin-config/eight.js: -------------------------------------------------------------------------------- 1 | module.exports = require("./plugin")("eight"); 2 | -------------------------------------------------------------------------------- /packages/babel-core/test/fixtures/config/complex-plugin-config/five.js: -------------------------------------------------------------------------------- 1 | module.exports = require("./plugin")("five"); 2 | -------------------------------------------------------------------------------- /packages/babel-core/test/fixtures/config/complex-plugin-config/four.js: -------------------------------------------------------------------------------- 1 | module.exports = require("./plugin")("four"); 2 | -------------------------------------------------------------------------------- /packages/babel-core/test/fixtures/config/complex-plugin-config/nine.js: -------------------------------------------------------------------------------- 1 | module.exports = require("./plugin")("nine"); 2 | -------------------------------------------------------------------------------- /packages/babel-core/test/fixtures/config/complex-plugin-config/seven.js: -------------------------------------------------------------------------------- 1 | module.exports = require("./plugin")("seven"); 2 | -------------------------------------------------------------------------------- /packages/babel-core/test/fixtures/config/complex-plugin-config/three.js: -------------------------------------------------------------------------------- 1 | module.exports = require("./plugin")("three"); 2 | -------------------------------------------------------------------------------- /packages/babel-core/test/fixtures/config/extended.babelrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "plugins": [ 3 | "extended" 4 | ] 5 | } 6 | -------------------------------------------------------------------------------- /packages/babel-core/test/fixtures/config/json-pkg-config/.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "plugins": [ 3 | "json" 4 | ] 5 | } 6 | -------------------------------------------------------------------------------- /packages/babel-core/test/fixtures/option-manager/presets/es5_invalid.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | module.exports = "invalid"; 3 | -------------------------------------------------------------------------------- /packages/babel-core/test/fixtures/transformation/misc/shebang/expected.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | 4 | foobar(); 5 | -------------------------------------------------------------------------------- /packages/babel-core/test/fixtures/transformation/source-maps/options.json: -------------------------------------------------------------------------------- 1 | { 2 | "plugins": ["external-helpers"] 3 | } 4 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/comments/do-while-line-comment/actual.js: -------------------------------------------------------------------------------- 1 | do { 2 | } // LINE 3 | while (true); 4 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/harmony-edgecase/export-default-function/actual.js: -------------------------------------------------------------------------------- 1 | export default function(){} 2 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/harmony-edgecase/export-default-iife/actual.js: -------------------------------------------------------------------------------- 1 | export default (function(){})(); 2 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/retainFunctionParens/options.json: -------------------------------------------------------------------------------- 1 | { 2 | "retainFunctionParens": true 3 | } 4 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/types/AwaitExpression/actual.js: -------------------------------------------------------------------------------- 1 | async function foo() { 2 | await bar(); 3 | } 4 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/types/ExportDefaultDeclaration7/expected.js: -------------------------------------------------------------------------------- 1 | export default function foo() {} 2 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/types/ExportSpecifier10/actual.js: -------------------------------------------------------------------------------- 1 | export { foo as default, bar } from "foo"; 2 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/types/ExportSpecifier10/expected.js: -------------------------------------------------------------------------------- 1 | export { foo as default, bar } from "foo"; 2 | -------------------------------------------------------------------------------- /packages/babel-helper-bindify-decorators/README.md: -------------------------------------------------------------------------------- 1 | # babel-helper-bindify-decorators 2 | 3 | ## Usage 4 | 5 | TODO 6 | -------------------------------------------------------------------------------- /packages/babel-helper-get-function-arity/README.md: -------------------------------------------------------------------------------- 1 | # babel-helper-get-function-arity 2 | 3 | ## Usage 4 | 5 | TODO 6 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-do-expressions/test/fixtures/do-expressions/empty.js: -------------------------------------------------------------------------------- 1 | assert.equal(do {}, undefined); 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-classes/test/fixtures/loose/super-class/actual.js: -------------------------------------------------------------------------------- 1 | class Test extends Foo { } 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-classes/test/fixtures/spec/export-default/actual.js: -------------------------------------------------------------------------------- 1 | export default class Foo {} 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-duplicate-keys/test/fixtures/combination/dupes/actual.js: -------------------------------------------------------------------------------- 1 | var x = { a: 5, a: 6 }; 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-modules-amd/test/fixtures/amd/export-default-4/actual.js: -------------------------------------------------------------------------------- 1 | export default foo; 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-modules-amd/test/fixtures/amd/export-default-6/actual.js: -------------------------------------------------------------------------------- 1 | export default class {} 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-modules-amd/test/fixtures/amd/export-from-2/actual.js: -------------------------------------------------------------------------------- 1 | export {foo} from "foo"; 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-modules-amd/test/fixtures/amd/export-named-4/actual.js: -------------------------------------------------------------------------------- 1 | export {foo as default}; 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-modules-commonjs/test/fixtures/strict/export-1/actual.js: -------------------------------------------------------------------------------- 1 | export default foo; 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-modules-commonjs/test/fixtures/strict/export-all/actual.js: -------------------------------------------------------------------------------- 1 | export * from 'mod'; 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-modules-commonjs/test/fixtures/strict/export/actual.js: -------------------------------------------------------------------------------- 1 | export function foo() {} 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-modules-systemjs/test/fixtures/systemjs/export-named/actual.js: -------------------------------------------------------------------------------- 1 | export {foo}; 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-modules-umd/test/fixtures/umd/export-default-4/actual.js: -------------------------------------------------------------------------------- 1 | export default foo; 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-modules-umd/test/fixtures/umd/export-default-6/actual.js: -------------------------------------------------------------------------------- 1 | export default class {} 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-modules-umd/test/fixtures/umd/export-from/actual.js: -------------------------------------------------------------------------------- 1 | export {foo} from "foo"; 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-modules-umd/test/fixtures/umd/export-named-2/actual.js: -------------------------------------------------------------------------------- 1 | export {foo as default}; 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-modules-umd/test/fixtures/umd/override-export-name/actual.js: -------------------------------------------------------------------------------- 1 | export default 42; 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-spread/test/fixtures/spread/array-literal-middle/actual.js: -------------------------------------------------------------------------------- 1 | var a = [b, ...c, d]; 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-spread/test/fixtures/spread/method-call-array-literal/actual.js: -------------------------------------------------------------------------------- 1 | f(...[1, 2, 3]); 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-spread/test/fixtures/spread/method-call-single-arg/actual.js: -------------------------------------------------------------------------------- 1 | add(...numbers); 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-template-literals/test/fixtures/normal/only/expected.js: -------------------------------------------------------------------------------- 1 | var foo = "" + test; 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-template-literals/test/fixtures/normal/single/actual.js: -------------------------------------------------------------------------------- 1 | var foo = `test ${foo}`; 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-template-literals/test/fixtures/spec/single/actual.js: -------------------------------------------------------------------------------- 1 | var foo = `test ${foo}`; 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-exponentiation-operator/test/fixtures/exponentian-operator/binary/actual.js: -------------------------------------------------------------------------------- 1 | 2 ** 2; 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-object-rest-spread/test/fixtures/useBuiltIns/assignment-true/actual.js: -------------------------------------------------------------------------------- 1 | z = { x, ...y }; 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-react-inline-elements/test/fixtures/inline-elements/component/actual.js: -------------------------------------------------------------------------------- 1 | ; 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-react-inline-elements/test/fixtures/inline-elements/html-element/actual.js: -------------------------------------------------------------------------------- 1 | ; 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-react-jsx-self/test/fixtures/react-source/basic-sample/actual.js: -------------------------------------------------------------------------------- 1 | var x = 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-react-jsx/test/fixtures/react/should-convert-simple-tags/actual.js: -------------------------------------------------------------------------------- 1 | var x =
; 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-runtime/test/fixtures/runtime/regenerator-runtime/actual.js: -------------------------------------------------------------------------------- 1 | void function* () { 2 | }; 3 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-strict-mode/test/fixtures/strict-mode/undefined-this-root-call/actual.js: -------------------------------------------------------------------------------- 1 | this.foo(); 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-strict-mode/test/fixtures/strict-mode/undefined-this-root-reference/actual.js: -------------------------------------------------------------------------------- 1 | this; 2 | -------------------------------------------------------------------------------- /packages/babel-polyfill/src/core-js/modules/es6.string.code-point-at.js: -------------------------------------------------------------------------------- 1 | require("core-js/modules/es6.string.code-point-at"); -------------------------------------------------------------------------------- /packages/babel-polyfill/src/core-js/modules/es6.string.starts-with.js: -------------------------------------------------------------------------------- 1 | require("core-js/modules/es6.string.starts-with"); -------------------------------------------------------------------------------- /packages/babel-polyfill/src/core-js/modules/es6.typed.array-buffer.js: -------------------------------------------------------------------------------- 1 | require("core-js/modules/es6.typed.array-buffer"); -------------------------------------------------------------------------------- /packages/babel-polyfill/src/core-js/modules/es6.typed.float32-array.js: -------------------------------------------------------------------------------- 1 | require("core-js/modules/es6.typed.float32-array"); -------------------------------------------------------------------------------- /packages/babel-polyfill/src/core-js/modules/es6.typed.float64-array.js: -------------------------------------------------------------------------------- 1 | require("core-js/modules/es6.typed.float64-array"); -------------------------------------------------------------------------------- /packages/babel-polyfill/src/core-js/modules/es6.typed.uint16-array.js: -------------------------------------------------------------------------------- 1 | require("core-js/modules/es6.typed.uint16-array"); -------------------------------------------------------------------------------- /packages/babel-polyfill/src/core-js/modules/es6.typed.uint32-array.js: -------------------------------------------------------------------------------- 1 | require("core-js/modules/es6.typed.uint32-array"); -------------------------------------------------------------------------------- /packages/babel-preset-es2015/test/fixtures/traceur/Modules/resources/p.js: -------------------------------------------------------------------------------- 1 | export var p = 'P'; 2 | export var q = 'Q'; 3 | -------------------------------------------------------------------------------- /packages/babel-runtime/core-js/map.js: -------------------------------------------------------------------------------- 1 | module.exports = { "default": require("core-js/library/fn/map"), __esModule: true }; -------------------------------------------------------------------------------- /packages/babel-traverse/test/index.js: -------------------------------------------------------------------------------- 1 | import runner from "babel-helper-plugin-test-runner"; 2 | 3 | runner(__dirname); 4 | -------------------------------------------------------------------------------- /packages/babel-cli/test/fixtures/babel-node/directory/in-files/foo/index.js: -------------------------------------------------------------------------------- 1 | var foo = () => console.log("foo"); 2 | foo(); 3 | -------------------------------------------------------------------------------- /packages/babel-cli/test/fixtures/babel/dir --out-dir --source-maps inline/in-files/src/bar/bar.js: -------------------------------------------------------------------------------- 1 | class Test { 2 | 3 | } 4 | -------------------------------------------------------------------------------- /packages/babel-cli/test/fixtures/babel/dir --out-dir --source-maps inline/in-files/src/foo.js: -------------------------------------------------------------------------------- 1 | arr.map(x => x * MULTIPLIER); 2 | -------------------------------------------------------------------------------- /packages/babel-cli/test/fixtures/babel/filenames --out-file --source-maps inline/in-files/script.js: -------------------------------------------------------------------------------- 1 | class Test { 2 | 3 | } 4 | -------------------------------------------------------------------------------- /packages/babel-cli/test/fixtures/babel/filenames --out-file --source-maps/in-files/script2.js: -------------------------------------------------------------------------------- 1 | arr.map(x => x * MULTIPLIER); 2 | -------------------------------------------------------------------------------- /packages/babel-cli/test/fixtures/babel/stdin --filename/stderr.txt: -------------------------------------------------------------------------------- 1 | SyntaxError: test.js: Unexpected token, expected ; (2:10) 2 | -------------------------------------------------------------------------------- /packages/babel-core/test/fixtures/browserify/register.js: -------------------------------------------------------------------------------- 1 | require("babel-register").default({ 2 | ignore: false 3 | }); 4 | -------------------------------------------------------------------------------- /packages/babel-core/test/fixtures/config/complex-plugin-config/eighteen.js: -------------------------------------------------------------------------------- 1 | module.exports = require("./plugin")("eighteen"); 2 | -------------------------------------------------------------------------------- /packages/babel-core/test/fixtures/config/complex-plugin-config/eleven.js: -------------------------------------------------------------------------------- 1 | module.exports = require("./plugin")("eleven"); 2 | -------------------------------------------------------------------------------- /packages/babel-core/test/fixtures/config/complex-plugin-config/fifteen.js: -------------------------------------------------------------------------------- 1 | module.exports = require("./plugin")("fifteen"); 2 | -------------------------------------------------------------------------------- /packages/babel-core/test/fixtures/config/complex-plugin-config/fourteen.js: -------------------------------------------------------------------------------- 1 | module.exports = require("./plugin")("fourteen"); 2 | -------------------------------------------------------------------------------- /packages/babel-core/test/fixtures/config/complex-plugin-config/nineteen.js: -------------------------------------------------------------------------------- 1 | module.exports = require("./plugin")("nineteen"); 2 | -------------------------------------------------------------------------------- /packages/babel-core/test/fixtures/config/complex-plugin-config/sixteen.js: -------------------------------------------------------------------------------- 1 | module.exports = require("./plugin")("sixteen"); 2 | -------------------------------------------------------------------------------- /packages/babel-core/test/fixtures/config/complex-plugin-config/thirteen.js: -------------------------------------------------------------------------------- 1 | module.exports = require("./plugin")("thirteen"); 2 | -------------------------------------------------------------------------------- /packages/babel-core/test/fixtures/config/complex-plugin-config/twelve.js: -------------------------------------------------------------------------------- 1 | module.exports = require("./plugin")("twelve"); 2 | -------------------------------------------------------------------------------- /packages/babel-core/test/fixtures/config/complex-plugin-config/twenty.js: -------------------------------------------------------------------------------- 1 | module.exports = require("./plugin")("twenty"); 2 | -------------------------------------------------------------------------------- /packages/babel-core/test/fixtures/config/json-pkg-config-no-babel/.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "plugins": [ 3 | "json" 4 | ] 5 | } 6 | -------------------------------------------------------------------------------- /packages/babel-core/test/fixtures/transformation/errors/syntax/actual.js: -------------------------------------------------------------------------------- 1 | arr.map(function () { 2 | return $]!; 3 | }); 4 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/comments/simple-line-comment/actual.js: -------------------------------------------------------------------------------- 1 | // Leading 2 | var i = 20; 3 | // Trailing 4 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/comments/simple-line-comment/expected.js: -------------------------------------------------------------------------------- 1 | // Leading 2 | var i = 20; 3 | // Trailing 4 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/comments/slash-before-leading-comment-compact/expected.js: -------------------------------------------------------------------------------- 1 | var foo=1/ /* leading */1; 2 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/edgecase/bitwise-precedence/actual.js: -------------------------------------------------------------------------------- 1 | x | y ^ z; 2 | x | (y ^ z); 3 | (x | y) ^ z; 4 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/edgecase/bitwise-precedence/expected.js: -------------------------------------------------------------------------------- 1 | x | y ^ z; 2 | x | y ^ z; 3 | (x | y) ^ z; 4 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/edgecase/unary-op/actual.js: -------------------------------------------------------------------------------- 1 | delete delete i; 2 | + +i; 3 | !!i; 4 | + ++i; 5 | - --i; 6 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/harmony-edgecase/export-default-function/expected.js: -------------------------------------------------------------------------------- 1 | export default function () {} 2 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/harmony-edgecase/export-default-iife/expected.js: -------------------------------------------------------------------------------- 1 | export default (function () {})(); 2 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/harmony-edgecase/export-default-invoked-class/actual.js: -------------------------------------------------------------------------------- 1 | export default (class {})(); 2 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/harmony-edgecase/export-default-named-class/actual.js: -------------------------------------------------------------------------------- 1 | export default class Foo {} 2 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/harmony-edgecase/export-default-named-class/expected.js: -------------------------------------------------------------------------------- 1 | export default class Foo {} 2 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/parentheses/tagged-template-expression/actual.js: -------------------------------------------------------------------------------- 1 | (() => {})``; 2 | (function(){}``); 3 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/parentheses/tagged-template-expression/expected.js: -------------------------------------------------------------------------------- 1 | (() => {})``; 2 | (function () {})``; -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/types/AwaitExpression/expected.js: -------------------------------------------------------------------------------- 1 | async function foo() { 2 | await bar(); 3 | } 4 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/types/WithStatement/actual.js: -------------------------------------------------------------------------------- 1 | with (foo) {} 2 | 3 | with (foo) { 4 | bar(); 5 | } 6 | -------------------------------------------------------------------------------- /packages/babel-plugin-check-es2015-constants/test/fixtures/general/update-expression/actual.js: -------------------------------------------------------------------------------- 1 | const foo = 1; 2 | foo++; 3 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-class-properties/test/fixtures/spec/instance/actual.js: -------------------------------------------------------------------------------- 1 | class Foo { 2 | bar = "foo"; 3 | } 4 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-arrow-functions/test/fixtures/arrow-functions/empty-block/actual.js: -------------------------------------------------------------------------------- 1 | var t = () => {}; 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-duplicate-keys/test/fixtures/combination/no-dupes/actual.js: -------------------------------------------------------------------------------- 1 | var x = { a: 5, b: 6 }; 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-duplicate-keys/test/fixtures/combination/no-dupes/expected.js: -------------------------------------------------------------------------------- 1 | var x = { a: 5, b: 6 }; 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-duplicate-keys/test/fixtures/duplicate-keys/dupes/actual.js: -------------------------------------------------------------------------------- 1 | var x = { a: 5, a: 6 }; 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-function-name/test/fixtures/function-name/method-definition/actual.js: -------------------------------------------------------------------------------- 1 | ({ x() {} }); 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-function-name/test/fixtures/function-name/method-definition/expected.js: -------------------------------------------------------------------------------- 1 | ({ x() {} }); 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-modules-amd/test/fixtures/amd/export-default-8/actual.js: -------------------------------------------------------------------------------- 1 | export default class Foo {} 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-modules-amd/test/fixtures/amd/export-default-9/actual.js: -------------------------------------------------------------------------------- 1 | export { foo as default }; 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-modules-amd/test/fixtures/amd/export-from-3/actual.js: -------------------------------------------------------------------------------- 1 | export {foo, bar} from "foo"; 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-modules-amd/test/fixtures/amd/export-from-4/actual.js: -------------------------------------------------------------------------------- 1 | export {foo as bar} from "foo"; 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-modules-amd/test/fixtures/amd/export-named-5/actual.js: -------------------------------------------------------------------------------- 1 | export {foo as default, bar}; 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-modules-commonjs/test/fixtures/interop/export-default-2/actual.js: -------------------------------------------------------------------------------- 1 | export default {}; 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-modules-commonjs/test/fixtures/interop/export-default-3/actual.js: -------------------------------------------------------------------------------- 1 | export default []; 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-modules-commonjs/test/fixtures/interop/export-default-4/actual.js: -------------------------------------------------------------------------------- 1 | export default foo; 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-modules-commonjs/test/fixtures/interop/export-default/actual.js: -------------------------------------------------------------------------------- 1 | export default 42; 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-modules-commonjs/test/fixtures/interop/export-from/actual.js: -------------------------------------------------------------------------------- 1 | export * from "foo"; 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-modules-commonjs/test/fixtures/interop/export-named-2/actual.js: -------------------------------------------------------------------------------- 1 | export {foo, bar}; 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-modules-commonjs/test/fixtures/interop/export-named-3/actual.js: -------------------------------------------------------------------------------- 1 | export {foo as bar}; 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-modules-commonjs/test/fixtures/strict/export-2/actual.js: -------------------------------------------------------------------------------- 1 | export { foo as default }; 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-modules-systemjs/test/fixtures/systemjs/export-default-2/actual.js: -------------------------------------------------------------------------------- 1 | export default {}; 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-modules-systemjs/test/fixtures/systemjs/export-default-3/actual.js: -------------------------------------------------------------------------------- 1 | export default []; 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-modules-systemjs/test/fixtures/systemjs/export-default/actual.js: -------------------------------------------------------------------------------- 1 | export default 42; 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-modules-systemjs/test/fixtures/systemjs/export-from/actual.js: -------------------------------------------------------------------------------- 1 | export * from "foo"; 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-modules-systemjs/test/fixtures/systemjs/export-named-2/actual.js: -------------------------------------------------------------------------------- 1 | export {foo, bar}; 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-modules-systemjs/test/fixtures/systemjs/export-named-3/actual.js: -------------------------------------------------------------------------------- 1 | export {foo as bar}; 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-modules-umd/test/fixtures/umd/export-default-8/actual.js: -------------------------------------------------------------------------------- 1 | export default class Foo {} 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-modules-umd/test/fixtures/umd/export-from-4/actual.js: -------------------------------------------------------------------------------- 1 | export {foo as bar} from "foo"; 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-modules-umd/test/fixtures/umd/export-from-5/actual.js: -------------------------------------------------------------------------------- 1 | export {foo, bar} from "foo"; 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-modules-umd/test/fixtures/umd/export-named-3/actual.js: -------------------------------------------------------------------------------- 1 | export {foo as default, bar}; 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-modules-umd/test/fixtures/umd/override-import-name/actual.js: -------------------------------------------------------------------------------- 1 | import "babel-template"; 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-spread/test/fixtures/spread/method-call-first/actual.js: -------------------------------------------------------------------------------- 1 | add(...numbers, foo, bar); 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-spread/test/fixtures/spread/method-call-middle/actual.js: -------------------------------------------------------------------------------- 1 | add(foo, ...numbers, bar); 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-sticky-regex/test/fixtures/sticky-regex/ignore-non-sticky/actual.js: -------------------------------------------------------------------------------- 1 | var re = /o+/; 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-sticky-regex/test/fixtures/sticky-regex/ignore-non-sticky/expected.js: -------------------------------------------------------------------------------- 1 | var re = /o+/; 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-template-literals/test/fixtures/normal/single/expected.js: -------------------------------------------------------------------------------- 1 | var foo = "test " + foo; 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-template-literals/test/fixtures/spec/only/expected.js: -------------------------------------------------------------------------------- 1 | var foo = "" + String(test); 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-flow-comments/test/fixtures/flow-comments/type/actual.js: -------------------------------------------------------------------------------- 1 | function foo(x: number): string {} 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-react-inline-elements/test/fixtures/inline-elements/multiline/actual.js: -------------------------------------------------------------------------------- 1 | 2 | ; 3 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-react-inline-elements/test/fixtures/inline-elements/ref-deopt/actual.js: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-react-inline-elements/test/fixtures/inline-elements/spread-deopt/actual.js: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-react-jsx/test/fixtures/react/should-allow-js-namespacing/actual.js: -------------------------------------------------------------------------------- 1 | ; 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-react-jsx/test/fixtures/react/should-convert-simple-text/actual.js: -------------------------------------------------------------------------------- 1 | var x =
text
; 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-runtime/test/fixtures/runtime/symbol-iterator-in/actual.js: -------------------------------------------------------------------------------- 1 | Symbol.iterator in Object(arr); 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-strict-mode/test/fixtures/strict-mode/use-strict-exists/actual.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | foo(); 3 | -------------------------------------------------------------------------------- /packages/babel-polyfill/src/core-js/modules/es6.number.is-safe-integer.js: -------------------------------------------------------------------------------- 1 | require("core-js/modules/es6.number.is-safe-integer"); -------------------------------------------------------------------------------- /packages/babel-polyfill/src/core-js/modules/es6.reflect.is-extensible.js: -------------------------------------------------------------------------------- 1 | require("core-js/modules/es6.reflect.is-extensible"); -------------------------------------------------------------------------------- /packages/babel-polyfill/src/core-js/modules/es6.string.from-code-point.js: -------------------------------------------------------------------------------- 1 | require("core-js/modules/es6.string.from-code-point"); -------------------------------------------------------------------------------- /packages/babel-preset-es2015/test/fixtures/preset-options/string-preset/options.json: -------------------------------------------------------------------------------- 1 | { 2 | "presets": ["es2015"] 3 | } 4 | -------------------------------------------------------------------------------- /packages/babel-preset-es2015/test/fixtures/traceur/Modules/EmptyNamedImport.module.js: -------------------------------------------------------------------------------- 1 | import {} from './resources/m.js'; 2 | -------------------------------------------------------------------------------- /packages/babel-preset-es2015/test/fixtures/traceur/Modules/resources/default-name.js: -------------------------------------------------------------------------------- 1 | var p = 4; 2 | export {p as default}; 3 | -------------------------------------------------------------------------------- /packages/babel-preset-es2015/test/fixtures/traceur/Modules/resources/export-destructuring.js: -------------------------------------------------------------------------------- 1 | export var {x, y = 2} = {x: 1}; 2 | -------------------------------------------------------------------------------- /packages/babel-preset-es2015/test/fixtures/traceur/Modules/resources/m3.js: -------------------------------------------------------------------------------- 1 | import {var as x} from './m2.js'; 2 | export {x}; 3 | -------------------------------------------------------------------------------- /packages/babel-cli/test/fixtures/babel-external-helpers/--output-type var/stdout.txt: -------------------------------------------------------------------------------- 1 | var babelHelpers = {}; 2 | babelHelpers; 3 | -------------------------------------------------------------------------------- /packages/babel-cli/test/fixtures/babel-node/arguments/options.json: -------------------------------------------------------------------------------- 1 | { 2 | "args": ["bar", "foo"], 3 | "stdout": "foo" 4 | } 5 | -------------------------------------------------------------------------------- /packages/babel-cli/test/fixtures/babel/.stdin --source-maps inline/options.json: -------------------------------------------------------------------------------- 1 | { 2 | "args": ["--source-maps", "inline"] 3 | } 4 | -------------------------------------------------------------------------------- /packages/babel-cli/test/fixtures/babel/dir --out-dir/stdout.txt: -------------------------------------------------------------------------------- 1 | src/bar/bar.js -> lib/bar/bar.js 2 | src/foo.js -> lib/foo.js 3 | -------------------------------------------------------------------------------- /packages/babel-cli/test/fixtures/babel/filename --out-file --source-maps inline/in-files/script.js: -------------------------------------------------------------------------------- 1 | arr.map(x => x * MULTIPLIER); 2 | -------------------------------------------------------------------------------- /packages/babel-core/test/fixtures/config/.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "plugins": ["root"], 3 | "extends": "./extended.babelrc.json" 4 | } 5 | -------------------------------------------------------------------------------- /packages/babel-core/test/fixtures/config/complex-plugin-config/seventeen.js: -------------------------------------------------------------------------------- 1 | module.exports = require("./plugin")("seventeen"); 2 | -------------------------------------------------------------------------------- /packages/babel-core/test/fixtures/config/ignore-negate/.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | ignore: [ 3 | "*", 4 | "!src.js", 5 | ], 6 | } 7 | -------------------------------------------------------------------------------- /packages/babel-core/test/fixtures/config/js-pkg-config/.babelrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | plugins: [ 3 | "js" 4 | ] 5 | } 6 | -------------------------------------------------------------------------------- /packages/babel-core/test/fixtures/transformation/misc/regression-1149/actual.js: -------------------------------------------------------------------------------- 1 | function foo(bar) { 2 | var bar = bar[0]; 3 | } 4 | -------------------------------------------------------------------------------- /packages/babel-core/test/fixtures/transformation/source-maps/full/expected.js: -------------------------------------------------------------------------------- 1 | arr.map(function (x) { 2 | return x * x; 3 | }); 4 | -------------------------------------------------------------------------------- /packages/babel-core/test/fixtures/transformation/source-maps/input-source-map/options.json: -------------------------------------------------------------------------------- 1 | { 2 | "inputSourceMap": true 3 | } 4 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/comments/block-line-comment-with-concise-format/options.json: -------------------------------------------------------------------------------- 1 | { 2 | "concise": true 3 | } 4 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/comments/return-no-argument/actual.js: -------------------------------------------------------------------------------- 1 | (function() { 2 | return; // comment 3 | }()); 4 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/comments/return-no-argument/expected.js: -------------------------------------------------------------------------------- 1 | (function () { 2 | return; // comment 3 | })(); 4 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/comments/slash-before-leading-comment-compact/actual.js: -------------------------------------------------------------------------------- 1 | var foo = 1 / /* leading */ 1; 2 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/comments/slash-before-leading-comment-compact/options.json: -------------------------------------------------------------------------------- 1 | { 2 | "compact": true 3 | } 4 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/compact/expression-statement/expected.js: -------------------------------------------------------------------------------- 1 | ({[fieldName]:value,...rest}=values);let error; 2 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/edgecase/return-with-retainlines-option/options.json: -------------------------------------------------------------------------------- 1 | { 2 | "retainLines": true 3 | } 4 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/edgecase/unary-op/expected.js: -------------------------------------------------------------------------------- 1 | delete delete i; 2 | + +i; 3 | !!i; 4 | + ++i; 5 | - --i; 6 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/escapes/options.json: -------------------------------------------------------------------------------- 1 | { 2 | "minified": true, 3 | "jsonCompatibleStrings": true 4 | } 5 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/harmony-edgecase/export-default-invoked-class/expected.js: -------------------------------------------------------------------------------- 1 | export default (class {})(); 2 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/harmony-edgecase/export-default-named-function/actual.js: -------------------------------------------------------------------------------- 1 | export default function foo(){} 2 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/types/WhileStatement/actual.js: -------------------------------------------------------------------------------- 1 | while (foo) {} 2 | 3 | while (foo) { 4 | bar(); 5 | } 6 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/types/WhileStatement/expected.js: -------------------------------------------------------------------------------- 1 | while (foo) {} 2 | 3 | while (foo) { 4 | bar(); 5 | } 6 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/types/WithStatement/expected.js: -------------------------------------------------------------------------------- 1 | with (foo) {} 2 | 3 | with (foo) { 4 | bar(); 5 | } 6 | -------------------------------------------------------------------------------- /packages/babel-helper-optimise-call-expression/README.md: -------------------------------------------------------------------------------- 1 | # babel-helper-optimise-call-expression 2 | 3 | ## Usage 4 | 5 | TODO 6 | -------------------------------------------------------------------------------- /packages/babel-helper-remap-async-to-generator/README.md: -------------------------------------------------------------------------------- 1 | # babel-helper-remap-async-to-generator 2 | 3 | ## Usage 4 | 5 | TODO 6 | -------------------------------------------------------------------------------- /packages/babel-plugin-check-es2015-constants/test/fixtures/general/flow-declar/actual.js: -------------------------------------------------------------------------------- 1 | declare class foo {} 2 | const foo = 1; 3 | -------------------------------------------------------------------------------- /packages/babel-plugin-check-es2015-constants/test/fixtures/general/loop/options.json: -------------------------------------------------------------------------------- 1 | { 2 | "throws": "\"i\" is read-only" 3 | } 4 | -------------------------------------------------------------------------------- /packages/babel-plugin-syntax-trailing-function-commas/test/fixtures/trailing-function-commas/call/expected.js: -------------------------------------------------------------------------------- 1 | Math.max(1, 2, 3); 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-async-to-generator/test/fixtures/regression/T6882/exec.js: -------------------------------------------------------------------------------- 1 | foo(); 2 | 3 | async function foo() {} 4 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-class-properties/test/fixtures/general/instance-undefined/actual.js: -------------------------------------------------------------------------------- 1 | class Foo { 2 | bar; 3 | } 4 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-class-properties/test/fixtures/general/instance/actual.js: -------------------------------------------------------------------------------- 1 | class Foo { 2 | bar = "foo"; 3 | } 4 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-class-properties/test/fixtures/spec/instance-undefined/actual.js: -------------------------------------------------------------------------------- 1 | class Foo { 2 | bar; 3 | } 4 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-class-properties/test/fixtures/spec/static/actual.js: -------------------------------------------------------------------------------- 1 | class Foo { 2 | static bar = "foo"; 3 | } 4 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-arrow-functions/test/fixtures/arrow-functions/expression/actual.js: -------------------------------------------------------------------------------- 1 | arr.map(x => x * x); 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-arrow-functions/test/fixtures/arrow-functions/inside-call/actual.js: -------------------------------------------------------------------------------- 1 | arr.map(i => i + 1); 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-block-scoping/test/fixtures/pass/update.js: -------------------------------------------------------------------------------- 1 | let a = 1; 2 | a++; 3 | assert.equal(a, 2); 4 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-classes/test/fixtures/spec/export-super-class/actual.js: -------------------------------------------------------------------------------- 1 | export default class extends A {} 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-destructuring/test/fixtures/destructuring/empty-object-pattern/actual.js: -------------------------------------------------------------------------------- 1 | var {} = null; 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-duplicate-keys/test/fixtures/duplicate-keys/dupes/expected.js: -------------------------------------------------------------------------------- 1 | var x = { a: 5, ["a"]: 6 }; 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-duplicate-keys/test/fixtures/duplicate-keys/no-dupes/actual.js: -------------------------------------------------------------------------------- 1 | var x = { a: 5, b: 6 }; 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-duplicate-keys/test/fixtures/duplicate-keys/no-dupes/expected.js: -------------------------------------------------------------------------------- 1 | var x = { a: 5, b: 6 }; 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-duplicate-keys/test/fixtures/duplicate-keys/one-quoted/actual.js: -------------------------------------------------------------------------------- 1 | var x = { a: 5, "a": 6 }; 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-for-of/test/fixtures/loose/member-expression/actual.js: -------------------------------------------------------------------------------- 1 | for (obj.prop of arr) { 2 | 3 | } 4 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-for-of/test/fixtures/spec/member-expression/actual.js: -------------------------------------------------------------------------------- 1 | for (obj.prop of arr) { 2 | 3 | } 4 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-instanceof/test/fixtures/instanceof/instanceof/expected.js: -------------------------------------------------------------------------------- 1 | babelHelpers.instanceof(a, b); 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-modules-amd/test/fixtures/amd/export-default-5/actual.js: -------------------------------------------------------------------------------- 1 | export default function () {} 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-modules-amd/test/fixtures/amd/export-default-7/actual.js: -------------------------------------------------------------------------------- 1 | export default function foo () {} 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-modules-amd/test/fixtures/amd/export-from-5/actual.js: -------------------------------------------------------------------------------- 1 | export {foo as default} from "foo"; 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-modules-amd/test/fixtures/amd/module-name/options.json: -------------------------------------------------------------------------------- 1 | { 2 | "moduleIds": true 3 | } 4 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-modules-commonjs/test/fixtures/interop/export-default-6/actual.js: -------------------------------------------------------------------------------- 1 | export default class {} 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-modules-commonjs/test/fixtures/interop/export-from-2/actual.js: -------------------------------------------------------------------------------- 1 | export {foo} from "foo"; 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-modules-commonjs/test/fixtures/interop/export-named-4/actual.js: -------------------------------------------------------------------------------- 1 | export {foo as default}; 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-modules-commonjs/test/fixtures/interop/imports-glob/actual.js: -------------------------------------------------------------------------------- 1 | import * as foo from "foo"; 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-modules-systemjs/test/fixtures/systemjs/export-default-4/actual.js: -------------------------------------------------------------------------------- 1 | export default foo; 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-modules-systemjs/test/fixtures/systemjs/export-default-6/actual.js: -------------------------------------------------------------------------------- 1 | export default class {} 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-modules-systemjs/test/fixtures/systemjs/export-from-2/actual.js: -------------------------------------------------------------------------------- 1 | export {foo} from "foo"; 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-modules-systemjs/test/fixtures/systemjs/export-named-4/actual.js: -------------------------------------------------------------------------------- 1 | export {foo as default}; 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-modules-systemjs/test/fixtures/systemjs/export-named-6/actual.js: -------------------------------------------------------------------------------- 1 | export function foo() {} 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-modules-systemjs/test/fixtures/systemjs/imports-glob/actual.js: -------------------------------------------------------------------------------- 1 | import * as foo from "foo"; 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-modules-systemjs/test/fixtures/systemjs/module-name/actual.js: -------------------------------------------------------------------------------- 1 | export var name = __moduleName; -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-modules-umd/test/fixtures/umd/export-default-5/actual.js: -------------------------------------------------------------------------------- 1 | export default function () {} 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-modules-umd/test/fixtures/umd/export-default-7/actual.js: -------------------------------------------------------------------------------- 1 | export default function foo () {} 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-modules-umd/test/fixtures/umd/export-default-9/actual.js: -------------------------------------------------------------------------------- 1 | export { foo as default }; 2 | 3 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-modules-umd/test/fixtures/umd/export-from-2/actual.js: -------------------------------------------------------------------------------- 1 | export {foo as default} from "foo"; 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-modules-umd/test/fixtures/umd/module-id/options.json: -------------------------------------------------------------------------------- 1 | { 2 | "moduleId": "MyLib" 3 | } 4 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-modules-umd/test/fixtures/umd/module-name/options.json: -------------------------------------------------------------------------------- 1 | { 2 | "moduleIds": true 3 | } 4 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-spread/test/fixtures/spread/method-call-multiple-args/actual.js: -------------------------------------------------------------------------------- 1 | add(foo, bar, ...numbers); 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-sticky-regex/test/fixtures/sticky-regex/basic/expected.js: -------------------------------------------------------------------------------- 1 | var re = new RegExp("o+", "y"); 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-template-literals/test/fixtures/normal/multiple/actual.js: -------------------------------------------------------------------------------- 1 | var foo = `test ${foo} ${bar}`; 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-template-literals/test/fixtures/normal/statement/actual.js: -------------------------------------------------------------------------------- 1 | var foo = `test ${foo + bar}`; 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-template-literals/test/fixtures/spec/escape-quotes/actual.js: -------------------------------------------------------------------------------- 1 | var t = `'${foo}' "${bar}"`; 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-template-literals/test/fixtures/spec/multiple/actual.js: -------------------------------------------------------------------------------- 1 | var foo = `test ${foo} ${bar}`; 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-template-literals/test/fixtures/spec/single/expected.js: -------------------------------------------------------------------------------- 1 | var foo = "test " + String(foo); 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-template-literals/test/fixtures/spec/statement/actual.js: -------------------------------------------------------------------------------- 1 | var foo = `test ${foo + bar}`; 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-exponentiation-operator/test/fixtures/exponentian-operator/binary/expected.js: -------------------------------------------------------------------------------- 1 | Math.pow(2, 2); 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-exponentiation-operator/test/fixtures/regression/4403/actual.js: -------------------------------------------------------------------------------- 1 | var a, b; 2 | a[`${b++}`] **= 1; 3 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-export-extensions/test/fixtures/export-extensions/default-es6/actual.js: -------------------------------------------------------------------------------- 1 | export foo from "bar"; 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-object-rest-spread/test/fixtures/object-spread/expression/actual.js: -------------------------------------------------------------------------------- 1 | ({ x, ...y, a, ...b, c }); 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-object-rest-spread/test/fixtures/object-spread/variable-declaration/actual.js: -------------------------------------------------------------------------------- 1 | var z = { ...x }; 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-object-rest-spread/test/fixtures/useBuiltIns/assignment-invalid-option/actual.js: -------------------------------------------------------------------------------- 1 | z = { x, ...y }; 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-proto-to-assign/test/fixtures/proto-to-assign/assignment-statement/actual.js: -------------------------------------------------------------------------------- 1 | obj.__proto__ = bar; 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-react-inline-elements/test/fixtures/inline-elements/component/expected.js: -------------------------------------------------------------------------------- 1 | babelHelpers.jsx(Baz, {}); -------------------------------------------------------------------------------- /packages/babel-plugin-transform-react-inline-elements/test/fixtures/inline-elements/self-closing-component/actual.js: -------------------------------------------------------------------------------- 1 | ; 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-react-inline-elements/test/fixtures/inline-elements/self-closing-html-element/actual.js: -------------------------------------------------------------------------------- 1 | ; 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-react-inline-elements/test/fixtures/inline-elements/shorthand-attributes/actual.js: -------------------------------------------------------------------------------- 1 | ; 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-react-jsx-self/test/fixtures/react-source/basic-sample/expected.js: -------------------------------------------------------------------------------- 1 | var x = ; -------------------------------------------------------------------------------- /packages/babel-plugin-transform-react-jsx/test/fixtures/react/jsx-with-retainlines-option/actual.js: -------------------------------------------------------------------------------- 1 | var div =
test
; 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-react-jsx/test/fixtures/react/jsx-without-retainlines-option/actual.js: -------------------------------------------------------------------------------- 1 | var div =
test
; 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-react-jsx/test/fixtures/react/should-disallow-xml-namespacing/actual.js: -------------------------------------------------------------------------------- 1 | ; 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-react-jsx/test/fixtures/react/should-transform-known-hyphenated-tags/actual.js: -------------------------------------------------------------------------------- 1 | ; 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-regenerator/test/fixtures/regression/T7041/actual.js: -------------------------------------------------------------------------------- 1 | Object.keys({}); 2 | 3 | function * fn(){} 4 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-runtime/src/options.json: -------------------------------------------------------------------------------- 1 | { 2 | "plugins": ["transform-runtime", "transform-regenerator"] 3 | } 4 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-runtime/test/fixtures/use-options/useBuiltIns-useESModules/actual.js: -------------------------------------------------------------------------------- 1 | class Foo extends Bar {} 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-strict-mode/test/fixtures/strict-mode/undefined-this-root-declaration/actual.js: -------------------------------------------------------------------------------- 1 | var self = this; 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-strict-mode/test/fixtures/strict-mode/use-strict-add/expected.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | foo(); 4 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-strict-mode/test/fixtures/strict-mode/use-strict-exists/expected.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | foo(); 4 | -------------------------------------------------------------------------------- /packages/babel-polyfill/src/core-js/modules/es6.number.max-safe-integer.js: -------------------------------------------------------------------------------- 1 | require("core-js/modules/es6.number.max-safe-integer"); -------------------------------------------------------------------------------- /packages/babel-polyfill/src/core-js/modules/es6.number.min-safe-integer.js: -------------------------------------------------------------------------------- 1 | require("core-js/modules/es6.number.min-safe-integer"); -------------------------------------------------------------------------------- /packages/babel-polyfill/src/core-js/modules/es6.object.set-prototype-of.js: -------------------------------------------------------------------------------- 1 | require("core-js/modules/es6.object.set-prototype-of"); -------------------------------------------------------------------------------- /packages/babel-polyfill/src/core-js/modules/es6.reflect.define-property.js: -------------------------------------------------------------------------------- 1 | require("core-js/modules/es6.reflect.define-property"); -------------------------------------------------------------------------------- /packages/babel-polyfill/src/core-js/modules/es6.reflect.delete-property.js: -------------------------------------------------------------------------------- 1 | require("core-js/modules/es6.reflect.delete-property"); -------------------------------------------------------------------------------- /packages/babel-polyfill/src/core-js/modules/es6.reflect.get-prototype-of.js: -------------------------------------------------------------------------------- 1 | require("core-js/modules/es6.reflect.get-prototype-of"); -------------------------------------------------------------------------------- /packages/babel-polyfill/src/core-js/modules/es6.reflect.set-prototype-of.js: -------------------------------------------------------------------------------- 1 | require("core-js/modules/es6.reflect.set-prototype-of"); -------------------------------------------------------------------------------- /packages/babel-polyfill/src/core-js/modules/es6.typed.uint8-clamped-array.js: -------------------------------------------------------------------------------- 1 | require("core-js/modules/es6.typed.uint8-clamped-array"); -------------------------------------------------------------------------------- /packages/babel-preset-es2015/test/fixtures/esnext/es6-templates/no-interpolation.js: -------------------------------------------------------------------------------- 1 | var s = `str`; 2 | assert.equal(s, 'str'); 3 | -------------------------------------------------------------------------------- /packages/babel-preset-es2015/test/fixtures/traceur/Modules/resources/o.js: -------------------------------------------------------------------------------- 1 | export * from './m.js'; 2 | export * from './n.js'; 3 | -------------------------------------------------------------------------------- /packages/babel-preset-es2015/test/fixtures/traceur/Modules/resources/re-export-default.js: -------------------------------------------------------------------------------- 1 | export {default} from './default.js'; 2 | -------------------------------------------------------------------------------- /packages/babel-preset-es2015/test/fixtures/traceur/Syntax/InInBinding.js: -------------------------------------------------------------------------------- 1 | var [x = 'a' in {a: 1}] = []; 2 | assert.equal(true, x); 3 | -------------------------------------------------------------------------------- /packages/babel-register/test/__data__/es2015.js: -------------------------------------------------------------------------------- 1 | import a from "assert"; 2 | 3 | export default () => { a.foo(); return "b"; }; 4 | -------------------------------------------------------------------------------- /packages/babel-runtime/core-js.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | "default": require("core-js/library"), 3 | __esModule: true 4 | }; 5 | -------------------------------------------------------------------------------- /packages/babel-cli/test/fixtures/babel-external-helpers/--whitelist/options.json: -------------------------------------------------------------------------------- 1 | { 2 | "args": ["--whitelist", "createClass"] 3 | } 4 | -------------------------------------------------------------------------------- /packages/babel-cli/test/fixtures/babel/--copy-files/options.json: -------------------------------------------------------------------------------- 1 | { 2 | "args": ["src", "--out-dir", "lib", "--copy-files"] 3 | } 4 | -------------------------------------------------------------------------------- /packages/babel-cli/test/fixtures/babel/--only glob/stdout.txt: -------------------------------------------------------------------------------- 1 | src/a.foo.js -> lib/a.foo.js 2 | src/baz/b.foo.js -> lib/baz/b.foo.js 3 | -------------------------------------------------------------------------------- /packages/babel-cli/test/fixtures/babel/--only/options.json: -------------------------------------------------------------------------------- 1 | { 2 | "args": ["src", "--out-dir", "lib", "--only", "src/bar/*"] 3 | } 4 | -------------------------------------------------------------------------------- /packages/babel-cli/test/fixtures/babel/filenames --out-file --source-maps inline/in-files/script2.js: -------------------------------------------------------------------------------- 1 | arr.map(x => x * MULTIPLIER); 2 | -------------------------------------------------------------------------------- /packages/babel-core/test/fixtures/config/dir3/package.json: -------------------------------------------------------------------------------- 1 | 2 | { 3 | "name": "application-name", 4 | "version": "0.0.1" 5 | } 6 | -------------------------------------------------------------------------------- /packages/babel-core/test/fixtures/config/js-json-config/.babelrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | plugins: [ 3 | "js" 4 | ] 5 | } 6 | -------------------------------------------------------------------------------- /packages/babel-core/test/fixtures/transformation/misc/regression-1149/expected.js: -------------------------------------------------------------------------------- 1 | function foo(bar) { 2 | var bar = bar[0]; 3 | } 4 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/comments/block-line-comment-with-concise-format/expected.js: -------------------------------------------------------------------------------- 1 | { print("hello"); // comment 2 | } 3 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/comments/block-line-comment/actual.js: -------------------------------------------------------------------------------- 1 | // Leading to block 2 | { 3 | print("hello"); 4 | } 5 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/comments/block-line-comment/expected.js: -------------------------------------------------------------------------------- 1 | // Leading to block 2 | { 3 | print("hello"); 4 | } 5 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/comments/comment-only-with-space/actual.js: -------------------------------------------------------------------------------- 1 | 2 | // from #23 3 | 4 | /**/ 5 | 6 | /* 7 | */ 8 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/comments/comment-only-with-space/expected.js: -------------------------------------------------------------------------------- 1 | 2 | // from #23 3 | 4 | /**/ 5 | 6 | /* 7 | */ 8 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/flow/this-types/actual.js: -------------------------------------------------------------------------------- 1 | class Foo { 2 | bar(): this { 3 | return this; 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/flow/this-types/expected.js: -------------------------------------------------------------------------------- 1 | class Foo { 2 | bar(): this { 3 | return this; 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/harmony-edgecase/export-default-named-function/expected.js: -------------------------------------------------------------------------------- 1 | export default function foo() {} 2 | -------------------------------------------------------------------------------- /packages/babel-generator/test/fixtures/minified/block-statements/expected.js: -------------------------------------------------------------------------------- 1 | if(true){foo;bar2}else{foo;bar2}function fn(){foo;bar2} 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-syntax-trailing-function-commas/test/fixtures/trailing-function-commas/arrow-function/actual.js: -------------------------------------------------------------------------------- 1 | (x, y, ) => {}; 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-syntax-trailing-function-commas/test/fixtures/trailing-function-commas/arrow-function/expected.js: -------------------------------------------------------------------------------- 1 | (x, y) => {}; 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-syntax-trailing-function-commas/test/fixtures/trailing-function-commas/new-expression/actual.js: -------------------------------------------------------------------------------- 1 | new Foo(a, b,); 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-syntax-trailing-function-commas/test/fixtures/trailing-function-commas/new-expression/expected.js: -------------------------------------------------------------------------------- 1 | new Foo(a, b); 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-async-to-generator/test/fixtures/export-async/lone-export/actual.js: -------------------------------------------------------------------------------- 1 | export async function foo () { } 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-class-properties/test/fixtures/general/static-undefined/actual.js: -------------------------------------------------------------------------------- 1 | class Foo { 2 | static bar; 3 | } 4 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-class-properties/test/fixtures/general/static/actual.js: -------------------------------------------------------------------------------- 1 | class Foo { 2 | static bar = "foo"; 3 | } 4 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-class-properties/test/fixtures/spec/derived/actual.js: -------------------------------------------------------------------------------- 1 | class Foo extends Bar { 2 | bar = "foo"; 3 | } 4 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-class-properties/test/fixtures/spec/static-undefined/actual.js: -------------------------------------------------------------------------------- 1 | class Foo { 2 | static bar; 3 | } 4 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-arrow-functions/test/fixtures/arrow-functions/empty-arguments/actual.js: -------------------------------------------------------------------------------- 1 | var t = () => 5 + 5; 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-arrow-functions/test/fixtures/arrow-functions/empty-block/expected.js: -------------------------------------------------------------------------------- 1 | var t = function () {}; 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-arrow-functions/test/fixtures/arrow-functions/paran-insertion/actual.js: -------------------------------------------------------------------------------- 1 | var t = i => i * 5; 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-arrow-functions/test/fixtures/arrow-functions/single-argument/actual.js: -------------------------------------------------------------------------------- 1 | var t = (i) => i * 5; 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-block-scoping/test/fixtures/.fail/defaults.js: -------------------------------------------------------------------------------- 1 | function foo(bar = bar2, bar2) {} 2 | 3 | foo(); 4 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-block-scoping/test/fixtures/pass/assignment.js: -------------------------------------------------------------------------------- 1 | let a = 1; 2 | a = 2; 3 | assert.equal(a, 2); 4 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-block-scoping/test/fixtures/pass/defaults.js: -------------------------------------------------------------------------------- 1 | function foo(bar, bar2 = bar) {} 2 | 3 | foo(); 4 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-classes/test/fixtures/spec/inferred-expression-name/actual.js: -------------------------------------------------------------------------------- 1 | var o = { foo: class foo {} }; 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-computed-properties/test/fixtures/loose/argument/actual.js: -------------------------------------------------------------------------------- 1 | foo({ 2 | [bar]: "foobar" 3 | }); 4 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-computed-properties/test/fixtures/spec/argument/actual.js: -------------------------------------------------------------------------------- 1 | foo({ 2 | [bar]: "foobar" 3 | }); 4 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-destructuring/test/fixtures/destructuring/assignment-statement/actual.js: -------------------------------------------------------------------------------- 1 | [a, b] = f(); 2 | ; 3 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-duplicate-keys/test/fixtures/duplicate-keys/one-quoted/expected.js: -------------------------------------------------------------------------------- 1 | var x = { a: 5, ["a"]: 6 }; 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-for-of/test/fixtures/spec/options.json: -------------------------------------------------------------------------------- 1 | { 2 | "plugins": ["transform-es2015-for-of"] 3 | } 4 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-modules-amd/test/fixtures/amd/export-from-6/actual.js: -------------------------------------------------------------------------------- 1 | export {foo as default, bar} from "foo"; 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-modules-amd/test/fixtures/amd/imports-glob/actual.js: -------------------------------------------------------------------------------- 1 | import * as foo from "foo"; 2 | 3 | foo; 4 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-modules-amd/test/fixtures/amd/noInterop-export-from/actual.js: -------------------------------------------------------------------------------- 1 | export { default } from 'foo'; 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-modules-commonjs/test/fixtures/interop/export-default-5/actual.js: -------------------------------------------------------------------------------- 1 | export default function () {} 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-modules-commonjs/test/fixtures/interop/export-default-8/actual.js: -------------------------------------------------------------------------------- 1 | export default class Foo {} 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-modules-commonjs/test/fixtures/interop/export-from-3/actual.js: -------------------------------------------------------------------------------- 1 | export {foo, bar} from "foo"; 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-modules-commonjs/test/fixtures/interop/export-from-4/actual.js: -------------------------------------------------------------------------------- 1 | export {foo as bar} from "foo"; 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-modules-commonjs/test/fixtures/interop/export-named-5/actual.js: -------------------------------------------------------------------------------- 1 | export {foo as default, bar}; 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-modules-commonjs/test/fixtures/noInterop/export-from/actual.js: -------------------------------------------------------------------------------- 1 | export { default } from 'foo'; 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-modules-systemjs/test/fixtures/systemjs/export-default-8/actual.js: -------------------------------------------------------------------------------- 1 | export default class Foo {} 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-modules-systemjs/test/fixtures/systemjs/export-from-3/actual.js: -------------------------------------------------------------------------------- 1 | export {foo, bar} from "foo"; 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-modules-systemjs/test/fixtures/systemjs/export-from-4/actual.js: -------------------------------------------------------------------------------- 1 | export {foo as bar} from "foo"; 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-modules-systemjs/test/fixtures/systemjs/export-named-5/actual.js: -------------------------------------------------------------------------------- 1 | export {foo as default, bar}; 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-modules-systemjs/test/fixtures/systemjs/export-named-7/actual.js: -------------------------------------------------------------------------------- 1 | export function foo2(bar) {} 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-modules-systemjs/test/fixtures/systemjs/imports-numbered/actual.js: -------------------------------------------------------------------------------- 1 | import "2"; 2 | import "1"; 3 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-modules-umd/test/fixtures/umd/export-from-3/actual.js: -------------------------------------------------------------------------------- 1 | export {foo as default, bar} from "foo"; 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-modules-umd/test/fixtures/umd/imports-glob/actual.js: -------------------------------------------------------------------------------- 1 | import * as foo from "foo"; 2 | 3 | foo; 4 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-modules-umd/test/fixtures/umd/module-id-with-overridden-global/actual.js: -------------------------------------------------------------------------------- 1 | export default 42; 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-modules-umd/test/fixtures/umd/module-name-with-overridden-global/actual.js: -------------------------------------------------------------------------------- 1 | export default 42; 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-spread/test/fixtures/spread/array-literal-multiple/actual.js: -------------------------------------------------------------------------------- 1 | var a = [b, ...c, d, e, ...f]; 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-spread/test/fixtures/spread/single/expected.js: -------------------------------------------------------------------------------- 1 | [].concat(babelHelpers.toConsumableArray(foo)); 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-template-literals/test/fixtures/normal/escape-quotes/actual.js: -------------------------------------------------------------------------------- 1 | var t = `'${foo}' "${bar}"`; 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-es2015-template-literals/test/fixtures/normal/statement/expected.js: -------------------------------------------------------------------------------- 1 | var foo = "test " + (foo + bar); 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-export-extensions/test/fixtures/export-extensions/namespace-es6/actual.js: -------------------------------------------------------------------------------- 1 | export * as foo from "bar"; 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-flow-comments/test/fixtures/flow-comments/arrow-single-optional-param/actual.js: -------------------------------------------------------------------------------- 1 | const x = (foo?) => {} 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-flow-strip-types/test/fixtures/regression/arrow-type-declaration/actual.js: -------------------------------------------------------------------------------- 1 | const find2 = () => {} 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-flow-strip-types/test/fixtures/regression/arrow-type-declaration/expected.js: -------------------------------------------------------------------------------- 1 | const find2 = () => {}; 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-object-rest-spread/test/fixtures/useBuiltIns/assignment-true/expected.js: -------------------------------------------------------------------------------- 1 | z = Object.assign({ x }, y); 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-react-display-name/test/fixtures/display-name/nested/actual.js: -------------------------------------------------------------------------------- 1 | var foo = bar(React.createClass({})); 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-react-inline-elements/test/fixtures/inline-elements/html-element/expected.js: -------------------------------------------------------------------------------- 1 | babelHelpers.jsx("foo", {}); -------------------------------------------------------------------------------- /packages/babel-plugin-transform-react-inline-elements/test/fixtures/inline-elements/key/actual.js: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-react-jsx/test/fixtures/useBuiltIns/assignment/actual.js: -------------------------------------------------------------------------------- 1 | var div = 2 | -------------------------------------------------------------------------------- /packages/babel-plugin-transform-regenerator/test/fixtures/regression/options.json: -------------------------------------------------------------------------------- 1 | { 2 | "presets": [ 3 | "es2015" 4 | ] 5 | } 6 | --------------------------------------------------------------------------------