├── packages
├── babel
│ ├── README.md
│ ├── .npmignore
│ └── index.js
├── babel-cli
│ ├── test
│ │ ├── .babelrc
│ │ └── 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
│ │ │ └── --extensions
│ │ │ │ ├── in-files
│ │ │ │ └── foo.bar
│ │ │ │ └── options.json
│ │ │ ├── babel
│ │ │ ├── --ignore
│ │ │ │ ├── in-files
│ │ │ │ │ └── src
│ │ │ │ │ │ ├── foo
│ │ │ │ │ │ └── foo.js
│ │ │ │ │ │ └── bar
│ │ │ │ │ │ └── index.js
│ │ │ │ ├── stdout.txt
│ │ │ │ ├── out-files
│ │ │ │ │ └── lib
│ │ │ │ │ │ └── bar
│ │ │ │ │ │ └── index.js
│ │ │ │ └── options.json
│ │ │ ├── --only
│ │ │ │ ├── in-files
│ │ │ │ │ └── src
│ │ │ │ │ │ ├── foo
│ │ │ │ │ │ └── index.js
│ │ │ │ │ │ └── bar
│ │ │ │ │ │ └── index.js
│ │ │ │ ├── stdout.txt
│ │ │ │ ├── out-files
│ │ │ │ │ └── lib
│ │ │ │ │ │ └── bar
│ │ │ │ │ │ └── index.js
│ │ │ │ └── options.json
│ │ │ ├── stdin
│ │ │ │ ├── stdin.txt
│ │ │ │ └── stdout.txt
│ │ │ ├── .stdin --source-maps inline
│ │ │ │ ├── stdin.txt
│ │ │ │ └── options.json
│ │ │ ├── stdin --out-file
│ │ │ │ ├── stdin.txt
│ │ │ │ ├── options.json
│ │ │ │ └── out-files
│ │ │ │ │ └── script.js
│ │ │ ├── .stdin --out-file --source-maps
│ │ │ │ ├── stdin.txt
│ │ │ │ └── options.json
│ │ │ ├── dir --out-dir
│ │ │ │ ├── in-files
│ │ │ │ │ └── src
│ │ │ │ │ │ ├── bar
│ │ │ │ │ │ └── bar.js
│ │ │ │ │ │ └── foo.js
│ │ │ │ ├── options.json
│ │ │ │ ├── stdout.txt
│ │ │ │ └── out-files
│ │ │ │ │ └── lib
│ │ │ │ │ └── foo.js
│ │ │ ├── filenames --out-file
│ │ │ │ ├── in-files
│ │ │ │ │ ├── script.js
│ │ │ │ │ └── script2.js
│ │ │ │ └── options.json
│ │ │ ├── filename --out-file
│ │ │ │ ├── in-files
│ │ │ │ │ └── script.js
│ │ │ │ └── options.json
│ │ │ ├── dir --out-dir --source-maps
│ │ │ │ ├── in-files
│ │ │ │ │ └── src
│ │ │ │ │ │ ├── bar
│ │ │ │ │ │ └── bar.js
│ │ │ │ │ │ └── foo.js
│ │ │ │ ├── stdout.txt
│ │ │ │ └── options.json
│ │ │ ├── stdin --filename
│ │ │ │ ├── stderr.txt
│ │ │ │ ├── stdin.txt
│ │ │ │ └── options.json
│ │ │ ├── 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
│ │ │ │ └── stdout.txt
│ │ │ ├── filenames --out-file --source-maps inline
│ │ │ │ └── in-files
│ │ │ │ │ ├── script.js
│ │ │ │ │ └── script2.js
│ │ │ ├── filename --out-file --source-maps inline
│ │ │ │ └── in-files
│ │ │ │ │ └── script.js
│ │ │ └── filename-sourcemap --out-file --source-maps inline
│ │ │ │ └── in-files
│ │ │ │ └── .babelrc
│ │ │ └── babel-external-helpers
│ │ │ ├── --output-type var
│ │ │ └── stdout.txt
│ │ │ ├── --whitelist
│ │ │ └── options.json
│ │ │ └── --output-type global
│ │ │ └── options.json
│ ├── .npmignore
│ ├── scripts
│ │ └── bootstrap.sh
│ ├── bin
│ │ ├── babel.js
│ │ ├── babel-doctor.js
│ │ ├── babel-node.js
│ │ └── babel-external-helpers.js
│ └── index.js
├── babel-core
│ ├── test
│ │ ├── .babelrc
│ │ ├── fixtures
│ │ │ ├── api
│ │ │ │ └── file.js
│ │ │ ├── config
│ │ │ │ ├── dir1
│ │ │ │ │ └── src.js
│ │ │ │ ├── dir2
│ │ │ │ │ ├── src.js
│ │ │ │ │ └── .babelrc
│ │ │ │ ├── env
│ │ │ │ │ └── src.js
│ │ │ │ ├── pkg
│ │ │ │ │ ├── src.js
│ │ │ │ │ └── .babelignore
│ │ │ │ ├── .babelignore
│ │ │ │ ├── extended.babelrc.json
│ │ │ │ └── .babelrc
│ │ │ ├── transformation
│ │ │ │ ├── source-maps
│ │ │ │ │ ├── full
│ │ │ │ │ │ ├── actual.js
│ │ │ │ │ │ ├── expected.js
│ │ │ │ │ │ └── options.json
│ │ │ │ │ ├── inline
│ │ │ │ │ │ └── actual.js
│ │ │ │ │ ├── arrow-function
│ │ │ │ │ │ ├── actual.js
│ │ │ │ │ │ └── expected.js
│ │ │ │ │ ├── options.json
│ │ │ │ │ └── input-source-map
│ │ │ │ │ │ ├── options.json
│ │ │ │ │ │ └── expected.js
│ │ │ │ ├── misc
│ │ │ │ │ ├── options.json
│ │ │ │ │ ├── shebang
│ │ │ │ │ │ ├── actual.js
│ │ │ │ │ │ └── expected.js
│ │ │ │ │ ├── regression-1149
│ │ │ │ │ │ ├── actual.js
│ │ │ │ │ │ └── expected.js
│ │ │ │ │ ├── regression-1130
│ │ │ │ │ │ ├── options.json
│ │ │ │ │ │ └── actual.js
│ │ │ │ │ ├── regression-1168
│ │ │ │ │ │ └── actual.js
│ │ │ │ │ └── enforce-newline-modules-blacklist
│ │ │ │ │ │ ├── actual.js
│ │ │ │ │ │ └── expected.js
│ │ │ │ └── errors
│ │ │ │ │ └── syntax
│ │ │ │ │ ├── actual.js
│ │ │ │ │ └── options.json
│ │ │ ├── resolution
│ │ │ │ └── resolve-addons-relative-to-file
│ │ │ │ │ ├── .gitignore
│ │ │ │ │ ├── actual.js
│ │ │ │ │ └── expected.js
│ │ │ └── browserify
│ │ │ │ └── register.js
│ │ ├── plugins.js
│ │ └── transformation.js
│ └── index.js
├── babel-preset-es2015
│ ├── test
│ │ ├── .babelrc
│ │ ├── fixtures
│ │ │ ├── traceur
│ │ │ │ ├── Syntax
│ │ │ │ │ ├── Empty.js
│ │ │ │ │ ├── null.js
│ │ │ │ │ ├── InInBinding.js
│ │ │ │ │ └── NoNewLineHereEndOfFile.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
│ │ │ │ │ │ ├── default-and-named.js
│ │ │ │ │ │ ├── i.js
│ │ │ │ │ │ ├── n.js
│ │ │ │ │ │ ├── re-export-default-as.js
│ │ │ │ │ │ ├── export-star-as.js
│ │ │ │ │ │ ├── default-function-expression.js
│ │ │ │ │ │ └── export-conflict.js
│ │ │ │ │ ├── EmptyNamedImport.module.js
│ │ │ │ │ └── ImportAsExportAs.module.js
│ │ │ │ ├── Classes
│ │ │ │ │ └── SemiColon.js
│ │ │ │ ├── Spread
│ │ │ │ │ ├── NoIterator.js
│ │ │ │ │ └── NotAnObject.js
│ │ │ │ ├── TemplateLiterals
│ │ │ │ │ └── resources
│ │ │ │ │ │ ├── f.js
│ │ │ │ │ │ ├── m.js
│ │ │ │ │ │ └── n.js
│ │ │ │ └── Misc
│ │ │ │ │ └── PromiseResolve.js
│ │ │ ├── preset-options
│ │ │ │ ├── loose
│ │ │ │ │ ├── actual.js
│ │ │ │ │ └── options.json
│ │ │ │ ├── loose-false
│ │ │ │ │ └── actual.js
│ │ │ │ ├── modules-umd
│ │ │ │ │ └── actual.js
│ │ │ │ ├── no-options
│ │ │ │ │ ├── actual.js
│ │ │ │ │ └── options.json
│ │ │ │ ├── empty-options
│ │ │ │ │ ├── actual.js
│ │ │ │ │ └── options.json
│ │ │ │ ├── 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
│ │ │ │ ├── options.json
│ │ │ │ ├── simple-interpolation.js
│ │ │ │ └── multi-line.js
│ │ │ │ ├── es6-rest-parameters
│ │ │ │ └── options.json
│ │ │ │ ├── es6-arrow-functions
│ │ │ │ ├── options.json
│ │ │ │ └── empty-arrow-function.js
│ │ │ │ └── es6-computed-properties
│ │ │ │ └── options.json
│ │ ├── preset-options.js
│ │ └── esnext.js
│ └── .npmignore
├── babel-runtime
│ ├── README.md
│ ├── .npmignore
│ ├── regenerator
│ │ └── index.js
│ └── core-js.js
├── babel-traverse
│ ├── README.md
│ └── .npmignore
├── babel-polyfill
│ ├── README.md
│ ├── .npmignore
│ └── scripts
│ │ └── postpublish.js
├── babel-generator
│ ├── 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
│ │ │ ├── block-line-comment-with-concise-format
│ │ │ │ ├── options.json
│ │ │ │ ├── expected.js
│ │ │ │ └── actual.js
│ │ │ ├── return-no-argument
│ │ │ │ ├── actual.js
│ │ │ │ └── expected.js
│ │ │ ├── block-line-comment
│ │ │ │ ├── actual.js
│ │ │ │ └── expected.js
│ │ │ ├── comment-only-with-space
│ │ │ │ ├── actual.js
│ │ │ │ └── expected.js
│ │ │ ├── block-line-comment-with-retainlines-option
│ │ │ │ ├── options.json
│ │ │ │ ├── actual.js
│ │ │ │ └── expected.js
│ │ │ └── comment-statement-with-retainlines-option
│ │ │ │ └── options.json
│ │ │ ├── types
│ │ │ ├── EmptyStatement
│ │ │ │ ├── actual.js
│ │ │ │ └── expected.js
│ │ │ ├── DebuggerStatement
│ │ │ │ ├── actual.js
│ │ │ │ └── expected.js
│ │ │ ├── XJSEmptyExpression
│ │ │ │ ├── actual.js
│ │ │ │ └── expected.js
│ │ │ ├── Identifier
│ │ │ │ ├── actual.js
│ │ │ │ └── expected.js
│ │ │ ├── ConditionalExpression
│ │ │ │ ├── actual.js
│ │ │ │ └── expected.js
│ │ │ ├── XJSMemberExpression
│ │ │ │ ├── actual.js
│ │ │ │ └── expected.js
│ │ │ ├── XJSNamespacedName
│ │ │ │ ├── actual.js
│ │ │ │ └── expected.js
│ │ │ ├── BlockStatement
│ │ │ │ ├── actual.js
│ │ │ │ └── expected.js
│ │ │ ├── LabeledStatement
│ │ │ │ ├── actual.js
│ │ │ │ └── expected.js
│ │ │ ├── SequenceExpression
│ │ │ │ ├── expected.js
│ │ │ │ └── actual.js
│ │ │ ├── UpdateExpression
│ │ │ │ ├── actual.js
│ │ │ │ └── expected.js
│ │ │ ├── XJSSpreadAttribute
│ │ │ │ ├── actual.js
│ │ │ │ └── expected.js
│ │ │ ├── ClassExpression
│ │ │ │ ├── actual.js
│ │ │ │ └── expected.js
│ │ │ ├── NewExpression
│ │ │ │ ├── actual.js
│ │ │ │ └── expected.js
│ │ │ ├── XJSExpressionContainer
│ │ │ │ ├── actual.js
│ │ │ │ └── expected.js
│ │ │ ├── AwaitExpression
│ │ │ │ ├── actual.js
│ │ │ │ └── expected.js
│ │ │ ├── WithStatement
│ │ │ │ ├── actual.js
│ │ │ │ └── expected.js
│ │ │ ├── WhileStatement
│ │ │ │ ├── actual.js
│ │ │ │ └── expected.js
│ │ │ ├── ClassDeclaration
│ │ │ │ ├── actual.js
│ │ │ │ └── expected.js
│ │ │ ├── DoWhileStatement
│ │ │ │ ├── actual.js
│ │ │ │ └── expected.js
│ │ │ ├── SpreadElement-SpreadProperty
│ │ │ │ ├── actual.js
│ │ │ │ └── expected.js
│ │ │ ├── ThrowStatement
│ │ │ │ ├── actual.js
│ │ │ │ └── expected.js
│ │ │ ├── ThisExpression
│ │ │ │ ├── actual.js
│ │ │ │ └── expected.js
│ │ │ ├── AssignmentExpression-BinaryExpression-LogicalExpression
│ │ │ │ ├── actual.js
│ │ │ │ └── expected.js
│ │ │ ├── CallExpression
│ │ │ │ ├── actual.js
│ │ │ │ └── expected.js
│ │ │ ├── ForStatement
│ │ │ │ ├── actual.js
│ │ │ │ └── expected.js
│ │ │ ├── BindExpression
│ │ │ │ └── actual.js
│ │ │ └── ForOfStatement
│ │ │ │ ├── actual.js
│ │ │ │ └── expected.js
│ │ │ ├── compact
│ │ │ ├── while
│ │ │ │ ├── actual.js
│ │ │ │ └── expected.js
│ │ │ ├── assignment
│ │ │ │ ├── expected.js
│ │ │ │ └── actual.js
│ │ │ ├── options.json
│ │ │ ├── single-line-comment
│ │ │ │ ├── actual.js
│ │ │ │ └── expected.js
│ │ │ └── binary-expressions
│ │ │ │ └── expected.js
│ │ │ ├── flow
│ │ │ ├── null-literal-types
│ │ │ │ ├── actual.js
│ │ │ │ └── expected.js
│ │ │ ├── boolean-literal-types
│ │ │ │ ├── actual.js
│ │ │ │ └── expected.js
│ │ │ ├── this-types
│ │ │ │ ├── actual.js
│ │ │ │ └── expected.js
│ │ │ ├── def-site-variance
│ │ │ │ ├── actual.js
│ │ │ │ └── expected.js
│ │ │ └── qualified-generic-type
│ │ │ │ ├── actual.js
│ │ │ │ └── expected.js
│ │ │ ├── minified
│ │ │ ├── options.json
│ │ │ ├── block-statements
│ │ │ │ └── expected.js
│ │ │ ├── literals
│ │ │ │ └── expected.js
│ │ │ ├── labeled-statement
│ │ │ │ └── expected.js
│ │ │ ├── no-semicolon
│ │ │ │ └── expected.js
│ │ │ ├── arrow-functions
│ │ │ │ └── expected.js
│ │ │ └── new-expression
│ │ │ │ └── expected.js
│ │ │ ├── parentheses
│ │ │ ├── arrow-function
│ │ │ │ ├── actual.js
│ │ │ │ └── expected.js
│ │ │ ├── object
│ │ │ │ ├── actual.js
│ │ │ │ └── expected.js
│ │ │ ├── assignment-expression
│ │ │ │ ├── actual.js
│ │ │ │ └── expected.js
│ │ │ ├── unary-arrow-function
│ │ │ │ ├── actual.js
│ │ │ │ └── expected.js
│ │ │ └── expression
│ │ │ │ ├── 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
│ │ │ ├── for-loop-in
│ │ │ │ └── actual.js
│ │ │ ├── one-property-with-line-terminator
│ │ │ │ ├── actual.js
│ │ │ │ └── expected.js
│ │ │ └── return-with-retainlines-and-compact-option
│ │ │ │ └── expected.js
│ │ │ ├── harmony-edgecase
│ │ │ └── export-default-declaration
│ │ │ │ ├── actual.js
│ │ │ │ └── expected.js
│ │ │ └── auto-indentation
│ │ │ ├── hard-tab
│ │ │ ├── actual.js
│ │ │ └── expected.js
│ │ │ └── soft-tab-2
│ │ │ ├── actual.js
│ │ │ └── expected.js
│ └── .npmignore
├── babel-helpers
│ └── .npmignore
├── babel-messages
│ └── .npmignore
├── babel-register
│ ├── .npmignore
│ └── src
│ │ └── browser.js
├── babel-template
│ └── .npmignore
├── babel-types
│ └── .npmignore
├── babel-code-frame
│ └── .npmignore
├── babel-helper-regex
│ ├── .npmignore
│ └── README.md
├── babel-preset-es2016
│ └── .npmignore
├── babel-preset-react
│ └── .npmignore
├── babel-helper-define-map
│ ├── .npmignore
│ └── README.md
├── babel-helper-fixtures
│ └── .npmignore
├── babel-plugin-syntax-jsx
│ └── .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-explode-class
│ ├── .npmignore
│ └── README.md
├── babel-helper-function-name
│ ├── .npmignore
│ └── README.md
├── babel-helper-hoist-variables
│ ├── .npmignore
│ └── README.md
├── babel-helper-replace-supers
│ ├── .npmignore
│ └── README.md
├── babel-plugin-syntax-flow
│ └── .npmignore
├── babel-plugin-transform-regenerator
│ ├── .npmignore
│ └── test
│ │ ├── index.js
│ │ └── fixtures
│ │ ├── regression
│ │ ├── T7041
│ │ │ └── actual.js
│ │ └── options.json
│ │ └── class-argument-scope
│ │ └── options.json
├── babel-helper-bindify-decorators
│ ├── .npmignore
│ └── README.md
├── babel-helper-builder-react-jsx
│ └── .npmignore
├── babel-helper-get-function-arity
│ ├── .npmignore
│ └── README.md
├── babel-helper-plugin-test-runner
│ └── .npmignore
├── babel-plugin-external-helpers
│ └── .npmignore
├── babel-plugin-syntax-decorators
│ └── .npmignore
├── babel-plugin-syntax-function-bind
│ └── .npmignore
├── babel-plugin-syntax-function-sent
│ └── .npmignore
├── babel-plugin-transform-strict-mode
│ ├── .npmignore
│ └── test
│ │ ├── fixtures
│ │ ├── strict-mode
│ │ │ ├── use-strict-add
│ │ │ │ ├── actual.js
│ │ │ │ └── expected.js
│ │ │ ├── undefined-this-root-call
│ │ │ │ ├── actual.js
│ │ │ │ └── expected.js
│ │ │ ├── undefined-this-root-reference
│ │ │ │ ├── actual.js
│ │ │ │ └── expected.js
│ │ │ ├── use-strict-exists
│ │ │ │ ├── actual.js
│ │ │ │ └── expected.js
│ │ │ ├── undefined-this-root-declaration
│ │ │ │ └── actual.js
│ │ │ ├── undefined-this-arrow-function
│ │ │ │ └── actual.js
│ │ │ ├── leading-comments
│ │ │ │ └── actual.js
│ │ │ └── leading-comments-with-existing
│ │ │ │ └── actual.js
│ │ ├── auxiliary-comment
│ │ │ └── use-strict-add
│ │ │ │ ├── actual.js
│ │ │ │ └── expected.js
│ │ └── disable-strict-mode
│ │ │ └── strictMode-false
│ │ │ ├── actual.js
│ │ │ └── expected.js
│ │ └── index.js
├── babel-helper-optimise-call-expression
│ ├── .npmignore
│ └── README.md
├── babel-helper-remap-async-to-generator
│ ├── .npmignore
│ └── README.md
├── 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-export-extensions
│ └── .npmignore
├── babel-plugin-syntax-object-rest-spread
│ └── .npmignore
├── babel-plugin-transform-es2015-modules-amd
│ ├── test
│ │ ├── fixtures
│ │ │ └── amd
│ │ │ │ ├── exports-default
│ │ │ │ └── untitled
│ │ │ │ ├── get-module-name-option
│ │ │ │ └── actual.js
│ │ │ │ ├── module-name
│ │ │ │ ├── actual.js
│ │ │ │ └── options.json
│ │ │ │ ├── imports-glob
│ │ │ │ └── actual.js
│ │ │ │ ├── export-specifier-default
│ │ │ │ └── actual.js
│ │ │ │ └── imports-mixing
│ │ │ │ └── actual.js
│ │ └── index.js
│ └── .npmignore
├── babel-plugin-transform-eval
│ └── .npmignore
├── babel-helper-explode-assignable-expression
│ ├── .npmignore
│ └── README.md
├── babel-helper-transform-fixture-test-runner
│ └── .npmignore
├── babel-plugin-syntax-class-constructor-call
│ └── .npmignore
├── babel-plugin-syntax-exponentiation-operator
│ └── .npmignore
├── babel-plugin-transform-decorators
│ ├── .npmignore
│ └── test
│ │ └── index.js
├── babel-plugin-transform-es2015-duplicate-keys
│ ├── .npmignore
│ └── test
│ │ ├── fixtures
│ │ ├── combination
│ │ │ ├── dupes
│ │ │ │ ├── actual.js
│ │ │ │ └── expected.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
│ │ │ ├── getter
│ │ │ └── actual.js
│ │ │ └── both-quoted
│ │ │ ├── actual.js
│ │ │ └── expected.js
│ │ └── index.js
├── babel-plugin-transform-es2015-instanceof
│ ├── .npmignore
│ └── test
│ │ ├── fixtures
│ │ └── instanceof
│ │ │ └── instanceof
│ │ │ ├── actual.js
│ │ │ └── expected.js
│ │ └── index.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
│ │ │ ├── override-export-name
│ │ │ └── actual.js
│ │ │ ├── override-import-name
│ │ │ └── actual.js
│ │ │ ├── imports-glob
│ │ │ └── actual.js
│ │ │ ├── module-id-with-overridden-global
│ │ │ └── actual.js
│ │ │ ├── module-name-with-overridden-global
│ │ │ └── actual.js
│ │ │ ├── imports-mixing
│ │ │ └── actual.js
│ │ │ ├── non-default-imports
│ │ │ └── actual.js
│ │ │ └── module-id-with-overridden-global-in-namespace
│ │ │ └── actual.js
│ │ └── index.js
├── babel-plugin-transform-es2015-spread
│ ├── test
│ │ ├── fixtures
│ │ │ └── spread
│ │ │ │ ├── single
│ │ │ │ ├── actual.js
│ │ │ │ └── expected.js
│ │ │ │ ├── array-literal-middle
│ │ │ │ └── actual.js
│ │ │ │ ├── method-call-array-literal
│ │ │ │ ├── actual.js
│ │ │ │ └── expected.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
│ │ │ │ ├── array-literals
│ │ │ │ └── actual.js
│ │ │ │ ├── known-rest
│ │ │ │ └── actual.js
│ │ │ │ ├── method-call-multiple
│ │ │ │ └── actual.js
│ │ │ │ ├── array-literal-first
│ │ │ │ └── actual.js
│ │ │ │ ├── contexted-computed-method-call-single-arg
│ │ │ │ └── actual.js
│ │ │ │ ├── new-expression
│ │ │ │ └── actual.js
│ │ │ │ └── contexted-computed-method-call-multiple-args
│ │ │ │ └── actual.js
│ │ └── index.js
│ └── .npmignore
├── babel-plugin-transform-es2015-typeof-symbol
│ ├── .npmignore
│ └── test
│ │ ├── index.js
│ │ └── fixtures
│ │ └── symbols
│ │ └── shadow
│ │ ├── actual.js
│ │ └── options.json
├── babel-plugin-transform-jscript
│ ├── .npmignore
│ └── test
│ │ ├── fixtures
│ │ └── jscript
│ │ │ └── simple-class
│ │ │ └── actual.js
│ │ └── index.js
├── babel-plugin-transform-react-jsx
│ ├── .npmignore
│ └── test
│ │ ├── index.js
│ │ └── fixtures
│ │ └── react
│ │ ├── should-convert-simple-tags
│ │ ├── actual.js
│ │ └── expected.js
│ │ ├── should-allow-js-namespacing
│ │ ├── actual.js
│ │ ├── expected.js
│ │ └── blacklist.js
│ │ ├── should-convert-simple-text
│ │ └── actual.js
│ │ ├── jsx-with-retainlines-option
│ │ ├── actual.js
│ │ ├── options.json
│ │ └── expected.js
│ │ ├── jsx-without-retainlines-option
│ │ └── actual.js
│ │ ├── should-disallow-xml-namespacing
│ │ └── actual.js
│ │ ├── should-transform-known-hyphenated-tags
│ │ ├── actual.js
│ │ └── expected.js
│ │ ├── should-allow-constructor-as-prop
│ │ └── actual.js
│ │ ├── .should-not-strip-tags-with-a-single-child-of-nbsp
│ │ └── actual.js
│ │ ├── .should-not-strip-nbsp-even-coupled-with-other-whitespace
│ │ └── actual.js
│ │ ├── should-allow-deeper-js-namespacing
│ │ └── actual.js
│ │ ├── should-quote-jsx-attributes
│ │ └── actual.js
│ │ └── should-handle-has-own-property-correctly
│ │ └── 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
│ │ │ └── full
│ │ │ └── options.json
│ │ └── index.js
├── babel-plugin-check-es2015-constants
│ ├── .npmignore
│ └── test
│ │ ├── fixtures
│ │ └── general
│ │ │ ├── flow-declar
│ │ │ ├── expected.js
│ │ │ └── actual.js
│ │ │ ├── update-expression
│ │ │ ├── actual.js
│ │ │ └── options.json
│ │ │ ├── loop
│ │ │ ├── options.json
│ │ │ └── actual.js
│ │ │ ├── destructuring-assignment
│ │ │ ├── actual.js
│ │ │ └── options.json
│ │ │ ├── ignore-member-expressions
│ │ │ ├── actual.js
│ │ │ └── expected.js
│ │ │ ├── no-for-in
│ │ │ ├── actual.js
│ │ │ └── options.json
│ │ │ ├── no-assignment
│ │ │ ├── actual.js
│ │ │ └── options.json
│ │ │ ├── no-classes
│ │ │ ├── actual.js
│ │ │ └── options.json
│ │ │ ├── no-declaration
│ │ │ ├── actual.js
│ │ │ └── options.json
│ │ │ ├── block-scoped
│ │ │ └── exec.js
│ │ │ └── no-functions
│ │ │ ├── actual.js
│ │ │ └── options.json
│ │ └── index.js
├── babel-plugin-syntax-trailing-function-commas
│ ├── .npmignore
│ └── test
│ │ ├── index.js
│ │ └── fixtures
│ │ └── trailing-function-commas
│ │ ├── call
│ │ ├── expected.js
│ │ └── actual.js
│ │ ├── arrow-function
│ │ ├── actual.js
│ │ └── expected.js
│ │ └── new-expression
│ │ ├── actual.js
│ │ └── expected.js
├── babel-plugin-transform-async-functions
│ └── .npmignore
├── babel-plugin-transform-class-properties
│ ├── .npmignore
│ └── test
│ │ ├── index.js
│ │ └── fixtures
│ │ └── general
│ │ ├── instance-undefined
│ │ └── actual.js
│ │ ├── instance
│ │ └── actual.js
│ │ ├── static-undefined
│ │ └── actual.js
│ │ ├── static
│ │ └── actual.js
│ │ ├── derived
│ │ └── actual.js
│ │ └── static-infer-name
│ │ └── actual.js
├── babel-plugin-transform-do-expressions
│ ├── .npmignore
│ └── test
│ │ ├── fixtures
│ │ └── do-expressions
│ │ │ ├── empty.js
│ │ │ ├── options.json
│ │ │ ├── single-expression.js
│ │ │ └── if.js
│ │ └── index.js
├── babel-plugin-transform-es2015-classes
│ ├── .npmignore
│ └── test
│ │ ├── fixtures
│ │ ├── spec
│ │ │ ├── plain-class
│ │ │ │ └── actual.js
│ │ │ ├── super-class
│ │ │ │ └── actual.js
│ │ │ ├── export-super-class
│ │ │ │ └── actual.js
│ │ │ ├── inferred-expression-name
│ │ │ │ └── actual.js
│ │ │ ├── instance-method
│ │ │ │ └── actual.js
│ │ │ └── instance-getter
│ │ │ │ └── actual.js
│ │ ├── regression
│ │ │ ├── 2941
│ │ │ │ └── actual.js
│ │ │ ├── T2494
│ │ │ │ └── actual.js
│ │ │ └── T6712
│ │ │ │ └── actual.js
│ │ └── loose
│ │ │ ├── super-class
│ │ │ └── actual.js
│ │ │ └── literal-key
│ │ │ └── actual.js
│ │ └── index.js
├── babel-plugin-transform-es2015-for-of
│ ├── .npmignore
│ └── test
│ │ ├── fixtures
│ │ ├── loose
│ │ │ ├── identifier
│ │ │ │ └── actual.js
│ │ │ ├── let
│ │ │ │ └── actual.js
│ │ │ ├── var
│ │ │ │ └── actual.js
│ │ │ ├── member-expression
│ │ │ │ └── actual.js
│ │ │ └── options.json
│ │ └── spec
│ │ │ ├── identifier
│ │ │ └── actual.js
│ │ │ ├── let
│ │ │ └── actual.js
│ │ │ ├── var
│ │ │ └── actual.js
│ │ │ ├── member-expression
│ │ │ └── actual.js
│ │ │ └── options.json
│ │ └── index.js
├── babel-plugin-transform-es2015-literals
│ └── .npmignore
├── babel-plugin-transform-es2015-modules-systemjs
│ ├── .npmignore
│ └── test
│ │ ├── fixtures
│ │ └── systemjs
│ │ │ ├── get-module-name-option
│ │ │ └── actual.js
│ │ │ ├── imports-glob
│ │ │ └── actual.js
│ │ │ ├── module-name
│ │ │ └── actual.js
│ │ │ └── imports-mixing
│ │ │ └── actual.js
│ │ └── index.js
├── babel-plugin-transform-flow-comments
│ ├── .npmignore
│ └── test
│ │ ├── index.js
│ │ └── fixtures
│ │ └── flow-comments
│ │ ├── type
│ │ ├── actual.js
│ │ └── expected.js
│ │ ├── optional-parameters
│ │ ├── actual.js
│ │ └── expected.js
│ │ ├── options.json
│ │ ├── type-cast
│ │ └── actual.js
│ │ └── optional-type
│ │ └── actual.js
├── babel-plugin-transform-flow-strip-types
│ ├── .npmignore
│ └── test
│ │ ├── index.js
│ │ └── fixtures
│ │ └── strip-types
│ │ ├── def-site-variance
│ │ └── expected.js
│ │ ├── strip-call-properties
│ │ └── expected.js
│ │ ├── strip-directive
│ │ └── expected.js
│ │ └── type-comments
│ │ └── expected.js
├── babel-plugin-transform-function-bind
│ ├── .npmignore
│ └── test
│ │ └── index.js
├── babel-plugin-transform-object-assign
│ └── .npmignore
├── babel-plugin-transform-proto-to-assign
│ ├── .npmignore
│ └── test
│ │ ├── index.js
│ │ └── fixtures
│ │ └── proto-to-assign
│ │ └── assignment-statement
│ │ ├── actual.js
│ │ └── expected.js
├── babel-plugin-transform-react-jsx-compat
│ ├── .npmignore
│ └── test
│ │ ├── index.js
│ │ └── fixtures
│ │ └── react-compat
│ │ └── convert-tags
│ │ └── actual.js
├── babel-plugin-transform-react-jsx-self
│ ├── .npmignore
│ └── test
│ │ ├── fixtures
│ │ └── react-source
│ │ │ ├── basic-sample
│ │ │ ├── actual.js
│ │ │ └── expected.js
│ │ │ └── options.json
│ │ └── index.js
├── babel-plugin-transform-react-jsx-source
│ ├── .npmignore
│ └── test
│ │ ├── fixtures
│ │ └── react-source
│ │ │ └── no-jsx
│ │ │ ├── actual.js
│ │ │ └── expected.js
│ │ └── index.js
├── babel-plugin-undeclared-variables-check
│ ├── .npmignore
│ └── test
│ │ ├── index.js
│ │ └── fixtures
│ │ └── validation.undeclared-variable-check
│ │ ├── undeclared
│ │ └── exec.js
│ │ └── undeclared-shorthand-property
│ │ └── exec.js
├── babel-plugin-transform-async-to-generator
│ ├── .npmignore
│ └── test
│ │ ├── index.js
│ │ └── fixtures
│ │ ├── regression
│ │ └── T6882
│ │ │ └── exec.js
│ │ ├── export-async
│ │ └── lone-export
│ │ │ └── actual.js
│ │ └── async-to-generator
│ │ ├── parameters
│ │ └── actual.js
│ │ └── no-parameters-and-no-id
│ │ └── 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
│ │ │ └── function
│ │ │ ├── actual.js
│ │ │ └── expected.js
│ │ └── index.js
├── babel-plugin-transform-es2015-destructuring
│ ├── .npmignore
│ └── test
│ │ ├── index.js
│ │ └── fixtures
│ │ └── destructuring
│ │ ├── empty-object-pattern
│ │ └── actual.js
│ │ ├── assignment-statement
│ │ └── actual.js
│ │ ├── assignment-expression
│ │ └── actual.js
│ │ ├── known-array
│ │ ├── actual.js
│ │ └── expected.js
│ │ ├── member-expression
│ │ └── actual.js
│ │ ├── object-basic
│ │ └── actual.js
│ │ └── export-variable
│ │ └── actual.js
├── babel-plugin-transform-es2015-function-name
│ ├── .npmignore
│ └── test
│ │ ├── fixtures
│ │ └── function-name
│ │ │ ├── method-definition
│ │ │ ├── actual.js
│ │ │ └── expected.js
│ │ │ ├── basic
│ │ │ ├── actual.js
│ │ │ └── expected.js
│ │ │ └── .smoke
│ │ │ └── options.json
│ │ └── index.js
├── babel-plugin-transform-es2015-object-super
│ ├── .npmignore
│ └── test
│ │ └── index.js
├── babel-plugin-transform-es2015-parameters
│ ├── .npmignore
│ └── test
│ │ ├── index.js
│ │ └── fixtures
│ │ └── parameters
│ │ └── default-before-last
│ │ └── actual.js
├── babel-plugin-transform-es2015-sticky-regex
│ ├── .npmignore
│ └── test
│ │ ├── fixtures
│ │ └── sticky-regex
│ │ │ ├── basic
│ │ │ ├── actual.js
│ │ │ └── expected.js
│ │ │ ├── ignore-non-sticky
│ │ │ ├── actual.js
│ │ │ └── expected.js
│ │ │ └── options.json
│ │ └── index.js
├── babel-plugin-transform-es2015-unicode-regex
│ ├── .npmignore
│ └── test
│ │ ├── index.js
│ │ └── fixtures
│ │ └── unicode-regex
│ │ └── options.json
├── babel-plugin-transform-es3-property-literals
│ ├── .npmignore
│ └── test
│ │ └── index.js
├── babel-plugin-transform-es5-property-mutators
│ ├── .npmignore
│ └── test
│ │ └── index.js
├── babel-plugin-transform-export-extensions
│ ├── .npmignore
│ └── test
│ │ ├── index.js
│ │ └── fixtures
│ │ └── export-extensions
│ │ ├── default-es6
│ │ └── actual.js
│ │ ├── namespace-es6
│ │ └── actual.js
│ │ ├── namespace-compound-es6
│ │ └── actual.js
│ │ └── default-compound-es6
│ │ └── actual.js
├── babel-plugin-transform-object-rest-spread
│ ├── .npmignore
│ └── test
│ │ ├── index.js
│ │ └── fixtures
│ │ └── object-rest-spread
│ │ ├── assignment
│ │ └── actual.js
│ │ ├── expression
│ │ └── actual.js
│ │ ├── variable-declaration
│ │ └── actual.js
│ │ └── options.json
├── babel-plugin-transform-react-display-name
│ ├── .npmignore
│ └── test
│ │ ├── index.js
│ │ └── fixtures
│ │ └── display-name
│ │ ├── nested
│ │ └── actual.js
│ │ ├── assignment-expression
│ │ └── actual.js
│ │ ├── variable-declarator
│ │ └── actual.js
│ │ ├── object-property
│ │ └── actual.js
│ │ └── options.json
├── 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
│ │ │ └── expected.js
│ │ │ ├── ref-deopt
│ │ │ ├── actual.js
│ │ │ └── expected.js
│ │ │ ├── spread-deopt
│ │ │ ├── actual.js
│ │ │ └── expected.js
│ │ │ ├── self-closing-component
│ │ │ ├── actual.js
│ │ │ └── expected.js
│ │ │ ├── self-closing-html-element
│ │ │ ├── actual.js
│ │ │ └── expected.js
│ │ │ ├── shorthand-attributes
│ │ │ └── actual.js
│ │ │ ├── key
│ │ │ └── actual.js
│ │ │ ├── component-with-props
│ │ │ └── actual.js
│ │ │ ├── children-exists
│ │ │ └── actual.js
│ │ │ ├── html-element-with-props
│ │ │ └── actual.js
│ │ │ ├── nested-html-elements
│ │ │ └── actual.js
│ │ │ ├── self-closing-component-with-props
│ │ │ └── actual.js
│ │ │ ├── self-closing-html-element-with-props
│ │ │ └── actual.js
│ │ │ ├── key-computed
│ │ │ └── actual.js
│ │ │ └── nested
│ │ │ └── actual.js
│ │ └── index.js
├── babel-helper-builder-binary-assignment-operator-visitor
│ └── .npmignore
├── babel-plugin-transform-async-to-module-method
│ ├── .npmignore
│ └── test
│ │ ├── index.js
│ │ └── fixtures
│ │ └── bluebird-coroutines
│ │ ├── arrow-function
│ │ └── actual.js
│ │ └── class
│ │ └── options.json
├── babel-plugin-transform-class-constructor-call
│ ├── .npmignore
│ └── test
│ │ ├── fixtures
│ │ └── class-constructor-call
│ │ │ └── none
│ │ │ ├── actual.js
│ │ │ └── expected.js
│ │ └── index.js
├── babel-plugin-transform-es2015-arrow-functions
│ ├── .npmignore
│ └── test
│ │ ├── fixtures
│ │ └── arrow-functions
│ │ │ ├── empty-block
│ │ │ ├── actual.js
│ │ │ └── expected.js
│ │ │ ├── expression
│ │ │ ├── actual.js
│ │ │ └── expected.js
│ │ │ ├── inside-call
│ │ │ ├── actual.js
│ │ │ └── expected.js
│ │ │ ├── empty-arguments
│ │ │ └── actual.js
│ │ │ ├── paran-insertion
│ │ │ └── actual.js
│ │ │ ├── single-argument
│ │ │ └── actual.js
│ │ │ └── multiple-arguments
│ │ │ └── actual.js
│ │ └── index.js
├── babel-plugin-transform-es2015-computed-properties
│ ├── .npmignore
│ └── test
│ │ ├── index.js
│ │ └── fixtures
│ │ ├── loose
│ │ ├── argument
│ │ │ └── actual.js
│ │ ├── assignment
│ │ │ └── actual.js
│ │ ├── single
│ │ │ └── actual.js
│ │ ├── variable
│ │ │ └── actual.js
│ │ ├── this
│ │ │ └── actual.js
│ │ ├── coerce
│ │ │ └── actual.js
│ │ ├── ignore-symbol
│ │ │ └── actual.js
│ │ └── two
│ │ │ └── actual.js
│ │ └── spec
│ │ ├── argument
│ │ ├── actual.js
│ │ └── expected.js
│ │ ├── assignment
│ │ ├── actual.js
│ │ └── expected.js
│ │ ├── single
│ │ ├── actual.js
│ │ └── expected.js
│ │ ├── variable
│ │ ├── actual.js
│ │ └── expected.js
│ │ ├── this
│ │ ├── actual.js
│ │ └── expected.js
│ │ └── ignore-symbol
│ │ └── actual.js
├── babel-plugin-transform-es2015-modules-commonjs
│ ├── .npmignore
│ └── test
│ │ ├── fixtures
│ │ ├── interop
│ │ │ ├── imports-hoisting
│ │ │ │ └── actual.js
│ │ │ ├── imports-glob
│ │ │ │ └── actual.js
│ │ │ ├── illegal-export-esmodule-2
│ │ │ │ └── actual.js
│ │ │ ├── illegal-export-esmodule
│ │ │ │ └── actual.js
│ │ │ ├── module-shadow
│ │ │ │ └── actual.js
│ │ │ ├── overview
│ │ │ │ └── options.json
│ │ │ ├── imports-default
│ │ │ │ └── options.json
│ │ │ └── imports-mixing
│ │ │ │ └── options.json
│ │ ├── strict
│ │ │ ├── export-1
│ │ │ │ ├── actual.js
│ │ │ │ └── expected.js
│ │ │ ├── export-all
│ │ │ │ └── actual.js
│ │ │ ├── export
│ │ │ │ ├── actual.js
│ │ │ │ └── expected.js
│ │ │ ├── export-2
│ │ │ │ ├── actual.js
│ │ │ │ └── expected.js
│ │ │ └── export-3
│ │ │ │ ├── actual.js
│ │ │ │ └── expected.js
│ │ └── regression
│ │ │ ├── T7160
│ │ │ └── options.json
│ │ │ ├── T7272
│ │ │ ├── actual.js
│ │ │ └── options.json
│ │ │ └── T7199
│ │ │ └── actual.js
│ │ └── index.js
├── 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
│ │ │ │ └── expected.js
│ │ │ ├── statement
│ │ │ │ ├── actual.js
│ │ │ │ └── expected.js
│ │ │ ├── functions
│ │ │ │ └── actual.js
│ │ │ └── multiline
│ │ │ │ ├── expected.js
│ │ │ │ └── actual.js
│ │ └── normal
│ │ │ ├── none
│ │ │ ├── actual.js
│ │ │ └── expected.js
│ │ │ ├── only
│ │ │ ├── actual.js
│ │ │ └── expected.js
│ │ │ ├── single
│ │ │ ├── actual.js
│ │ │ └── expected.js
│ │ │ ├── multiple
│ │ │ ├── actual.js
│ │ │ └── expected.js
│ │ │ ├── statement
│ │ │ ├── actual.js
│ │ │ └── expected.js
│ │ │ ├── escape-quotes
│ │ │ ├── actual.js
│ │ │ └── expected.js
│ │ │ ├── functions
│ │ │ ├── actual.js
│ │ │ └── expected.js
│ │ │ ├── tag
│ │ │ └── actual.js
│ │ │ ├── multiline
│ │ │ ├── expected.js
│ │ │ └── actual.js
│ │ │ └── options.json
│ │ └── index.js
├── babel-plugin-transform-exponentiation-operator
│ ├── .npmignore
│ └── test
│ │ ├── fixtures
│ │ └── exponentian-operator
│ │ │ ├── binary
│ │ │ ├── actual.js
│ │ │ └── expected.js
│ │ │ └── assignment
│ │ │ └── actual.js
│ │ └── index.js
├── babel-plugin-transform-react-constant-elements
│ ├── .npmignore
│ └── test
│ │ └── index.js
├── babel-helper-builder-conditional-assignment-operator-visitor
│ └── .npmignore
├── babel-plugin-transform-es2015-block-scoped-functions
│ └── .npmignore
├── babel-plugin-transform-es2015-shorthand-properties
│ ├── .npmignore
│ └── test
│ │ ├── index.js
│ │ └── fixtures
│ │ └── shorthand-properties
│ │ ├── shorthand-single
│ │ ├── actual.js
│ │ └── expected.js
│ │ └── shorthand-multiple
│ │ ├── actual.js
│ │ └── expected.js
├── babel-plugin-transform-es3-member-expression-literals
│ ├── .npmignore
│ └── test
│ │ └── index.js
├── babel-plugin-transform-object-set-prototype-of-to-assign
│ └── .npmignore
└── README.md
├── test
├── mocha.opts
└── warning.js
├── NPM_OWNERS
├── .istanbul.yml
├── doc
├── design
│ └── versioning.md
└── ast
│ └── spec.md
└── circle.yml
/packages/babel/README.md:
--------------------------------------------------------------------------------
1 | # babel
2 |
--------------------------------------------------------------------------------
/packages/babel-cli/test/.babelrc:
--------------------------------------------------------------------------------
1 | {}
2 |
--------------------------------------------------------------------------------
/packages/babel-core/test/.babelrc:
--------------------------------------------------------------------------------
1 | {}
2 |
--------------------------------------------------------------------------------
/packages/babel-preset-es2015/test/.babelrc:
--------------------------------------------------------------------------------
1 | {}
2 |
--------------------------------------------------------------------------------
/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-cli/.npmignore:
--------------------------------------------------------------------------------
1 | src
2 | test
3 | node_modules
4 |
--------------------------------------------------------------------------------
/packages/babel-polyfill/README.md:
--------------------------------------------------------------------------------
1 | # babel-polyfill
2 |
3 |
--------------------------------------------------------------------------------
/packages/babel-runtime/.npmignore:
--------------------------------------------------------------------------------
1 | scripts
2 | node_modules
3 |
--------------------------------------------------------------------------------
/packages/babel/.npmignore:
--------------------------------------------------------------------------------
1 | src
2 | test
3 | node_modules
4 |
--------------------------------------------------------------------------------
/test/mocha.opts:
--------------------------------------------------------------------------------
1 | --reporter dot --ui tdd --timeout 10000
2 |
--------------------------------------------------------------------------------
/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/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-helpers/.npmignore:
--------------------------------------------------------------------------------
1 | src
2 | test
3 | node_modules
4 |
--------------------------------------------------------------------------------
/packages/babel-messages/.npmignore:
--------------------------------------------------------------------------------
1 | src
2 | test
3 | node_modules
4 |
--------------------------------------------------------------------------------
/packages/babel-polyfill/.npmignore:
--------------------------------------------------------------------------------
1 | src
2 | test
3 | node_modules
4 |
--------------------------------------------------------------------------------
/packages/babel-preset-es2015/test/fixtures/traceur/Syntax/Empty.js:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/packages/babel-register/.npmignore:
--------------------------------------------------------------------------------
1 | src
2 | test
3 | node_modules
4 |
--------------------------------------------------------------------------------
/packages/babel-template/.npmignore:
--------------------------------------------------------------------------------
1 | src
2 | test
3 | node_modules
4 |
--------------------------------------------------------------------------------
/packages/babel-traverse/.npmignore:
--------------------------------------------------------------------------------
1 | src
2 | test
3 | node_modules
4 |
--------------------------------------------------------------------------------
/packages/babel-types/.npmignore:
--------------------------------------------------------------------------------
1 | src
2 | test
3 | node_modules
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/--ignore/in-files/src/foo/foo.js:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/packages/babel-cli/test/fixtures/babel/--only/in-files/src/foo/index.js:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/packages/babel-code-frame/.npmignore:
--------------------------------------------------------------------------------
1 | src
2 | test
3 | node_modules
4 |
--------------------------------------------------------------------------------
/packages/babel-core/test/fixtures/config/.babelignore:
--------------------------------------------------------------------------------
1 | root-ignore
2 |
--------------------------------------------------------------------------------
/packages/babel-core/test/fixtures/config/pkg/.babelignore:
--------------------------------------------------------------------------------
1 | pkg-ignore
2 |
--------------------------------------------------------------------------------
/packages/babel-generator/.npmignore:
--------------------------------------------------------------------------------
1 | src
2 | test
3 | node_modules
4 |
--------------------------------------------------------------------------------
/packages/babel-generator/test/fixtures/comments/empty/expected.js:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/packages/babel-helper-regex/.npmignore:
--------------------------------------------------------------------------------
1 | src
2 | test
3 | node_modules
4 |
--------------------------------------------------------------------------------
/packages/babel-preset-es2015/.npmignore:
--------------------------------------------------------------------------------
1 | src
2 | test
3 | node_modules
4 |
--------------------------------------------------------------------------------
/packages/babel-preset-es2015/test/fixtures/traceur/Syntax/null.js:
--------------------------------------------------------------------------------
1 | null
--------------------------------------------------------------------------------
/packages/babel-preset-es2016/.npmignore:
--------------------------------------------------------------------------------
1 | src
2 | test
3 | node_modules
4 |
--------------------------------------------------------------------------------
/packages/babel-preset-react/.npmignore:
--------------------------------------------------------------------------------
1 | src
2 | test
3 | node_modules
4 |
--------------------------------------------------------------------------------
/packages/babel-cli/test/fixtures/babel-node/require/stdout.txt:
--------------------------------------------------------------------------------
1 | bar
2 | foo
3 |
--------------------------------------------------------------------------------
/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-define-map/.npmignore:
--------------------------------------------------------------------------------
1 | src
2 | test
3 | node_modules
4 |
--------------------------------------------------------------------------------
/packages/babel-helper-fixtures/.npmignore:
--------------------------------------------------------------------------------
1 | src
2 | test
3 | node_modules
4 |
--------------------------------------------------------------------------------
/packages/babel-plugin-syntax-jsx/.npmignore:
--------------------------------------------------------------------------------
1 | node_modules
2 | *.log
3 | src
4 |
--------------------------------------------------------------------------------
/packages/babel-preset-stage-0/.npmignore:
--------------------------------------------------------------------------------
1 | src
2 | test
3 | node_modules
4 |
--------------------------------------------------------------------------------
/packages/babel-preset-stage-1/.npmignore:
--------------------------------------------------------------------------------
1 | src
2 | test
3 | node_modules
4 |
--------------------------------------------------------------------------------
/packages/babel-preset-stage-2/.npmignore:
--------------------------------------------------------------------------------
1 | src
2 | test
3 | node_modules
4 |
--------------------------------------------------------------------------------
/packages/babel-preset-stage-3/.npmignore:
--------------------------------------------------------------------------------
1 | src
2 | test
3 | node_modules
4 |
--------------------------------------------------------------------------------
/NPM_OWNERS:
--------------------------------------------------------------------------------
1 | sebmck
2 | thejameskyle
3 | amasad
4 | hzoo
5 | loganfsmyth
6 | jmm
7 |
--------------------------------------------------------------------------------
/packages/babel-cli/test/fixtures/babel/--ignore/in-files/src/bar/index.js:
--------------------------------------------------------------------------------
1 | bar;
2 |
--------------------------------------------------------------------------------
/packages/babel-cli/test/fixtures/babel/--only/in-files/src/bar/index.js:
--------------------------------------------------------------------------------
1 | bar;
2 |
--------------------------------------------------------------------------------
/packages/babel-core/index.js:
--------------------------------------------------------------------------------
1 | module.exports = require("./lib/api/node.js");
2 |
--------------------------------------------------------------------------------
/packages/babel-generator/test/fixtures/compact/while/actual.js:
--------------------------------------------------------------------------------
1 | while(true) x();
2 |
--------------------------------------------------------------------------------
/packages/babel-helper-call-delegate/.npmignore:
--------------------------------------------------------------------------------
1 | src
2 | test
3 | node_modules
4 |
--------------------------------------------------------------------------------
/packages/babel-helper-explode-class/.npmignore:
--------------------------------------------------------------------------------
1 | src
2 | test
3 | node_modules
4 |
--------------------------------------------------------------------------------
/packages/babel-helper-function-name/.npmignore:
--------------------------------------------------------------------------------
1 | src
2 | test
3 | node_modules
4 |
--------------------------------------------------------------------------------
/packages/babel-helper-hoist-variables/.npmignore:
--------------------------------------------------------------------------------
1 | src
2 | test
3 | node_modules
4 |
--------------------------------------------------------------------------------
/packages/babel-helper-replace-supers/.npmignore:
--------------------------------------------------------------------------------
1 | src
2 | test
3 | node_modules
4 |
--------------------------------------------------------------------------------
/packages/babel-plugin-syntax-flow/.npmignore:
--------------------------------------------------------------------------------
1 | node_modules
2 | *.log
3 | src
4 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-regenerator/.npmignore:
--------------------------------------------------------------------------------
1 | /node_modules
2 | /test
3 |
--------------------------------------------------------------------------------
/.istanbul.yml:
--------------------------------------------------------------------------------
1 | instrumentation:
2 | root: .
3 | excludes: "**/node_modules/**"
4 |
--------------------------------------------------------------------------------
/packages/babel-cli/scripts/bootstrap.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | set -e
3 | npm link babel-core
4 |
--------------------------------------------------------------------------------
/packages/babel-cli/test/fixtures/babel/stdin/stdin.txt:
--------------------------------------------------------------------------------
1 | arr.map(x => x * MULTIPLIER);
2 |
--------------------------------------------------------------------------------
/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/XJSEmptyExpression/actual.js:
--------------------------------------------------------------------------------
1 | {} ;
2 |
--------------------------------------------------------------------------------
/packages/babel-helper-bindify-decorators/.npmignore:
--------------------------------------------------------------------------------
1 | src
2 | test
3 | node_modules
4 |
--------------------------------------------------------------------------------
/packages/babel-helper-builder-react-jsx/.npmignore:
--------------------------------------------------------------------------------
1 | src
2 | test
3 | node_modules
4 |
--------------------------------------------------------------------------------
/packages/babel-helper-get-function-arity/.npmignore:
--------------------------------------------------------------------------------
1 | src
2 | test
3 | node_modules
4 |
--------------------------------------------------------------------------------
/packages/babel-helper-plugin-test-runner/.npmignore:
--------------------------------------------------------------------------------
1 | src
2 | test
3 | node_modules
4 |
--------------------------------------------------------------------------------
/packages/babel-plugin-external-helpers/.npmignore:
--------------------------------------------------------------------------------
1 | node_modules
2 | *.log
3 | src
4 |
--------------------------------------------------------------------------------
/packages/babel-plugin-syntax-decorators/.npmignore:
--------------------------------------------------------------------------------
1 | node_modules
2 | *.log
3 | src
4 |
--------------------------------------------------------------------------------
/packages/babel-plugin-syntax-function-bind/.npmignore:
--------------------------------------------------------------------------------
1 | node_modules
2 | *.log
3 | src
4 |
--------------------------------------------------------------------------------
/packages/babel-plugin-syntax-function-sent/.npmignore:
--------------------------------------------------------------------------------
1 | node_modules
2 | *.log
3 | src
4 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-strict-mode/.npmignore:
--------------------------------------------------------------------------------
1 | src
2 | test
3 | node_modules
4 |
--------------------------------------------------------------------------------
/packages/babel-polyfill/scripts/postpublish.js:
--------------------------------------------------------------------------------
1 | rm(__dirname + "/../browser.js");
2 |
--------------------------------------------------------------------------------
/packages/babel-cli/bin/babel.js:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env node
2 |
3 | require("../lib/babel");
4 |
--------------------------------------------------------------------------------
/packages/babel-cli/index.js:
--------------------------------------------------------------------------------
1 | throw new Error("Use the `babel-core` package not `babel`.");
2 |
--------------------------------------------------------------------------------
/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/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-optimise-call-expression/.npmignore:
--------------------------------------------------------------------------------
1 | src
2 | test
3 | node_modules
4 |
--------------------------------------------------------------------------------
/packages/babel-helper-remap-async-to-generator/.npmignore:
--------------------------------------------------------------------------------
1 | src
2 | test
3 | node_modules
4 |
--------------------------------------------------------------------------------
/packages/babel-plugin-syntax-async-functions/.npmignore:
--------------------------------------------------------------------------------
1 | node_modules
2 | *.log
3 | src
4 |
--------------------------------------------------------------------------------
/packages/babel-plugin-syntax-async-generators/.npmignore:
--------------------------------------------------------------------------------
1 | src
2 | test
3 | node_modules
4 |
--------------------------------------------------------------------------------
/packages/babel-plugin-syntax-class-properties/.npmignore:
--------------------------------------------------------------------------------
1 | node_modules
2 | *.log
3 | src
4 |
--------------------------------------------------------------------------------
/packages/babel-plugin-syntax-do-expressions/.npmignore:
--------------------------------------------------------------------------------
1 | node_modules
2 | *.log
3 | src
4 |
--------------------------------------------------------------------------------
/packages/babel-plugin-syntax-export-extensions/.npmignore:
--------------------------------------------------------------------------------
1 | node_modules
2 | *.log
3 | src
4 |
--------------------------------------------------------------------------------
/packages/babel-plugin-syntax-object-rest-spread/.npmignore:
--------------------------------------------------------------------------------
1 | node_modules
2 | *.log
3 | src
4 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-es2015-modules-amd/test/fixtures/amd/exports-default/untitled:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-eval/.npmignore:
--------------------------------------------------------------------------------
1 | node_modules
2 | *.log
3 | src
4 | test
5 |
--------------------------------------------------------------------------------
/packages/babel-cli/test/fixtures/babel/--only/stdout.txt:
--------------------------------------------------------------------------------
1 | src/bar/index.js -> lib/bar/index.js
2 |
--------------------------------------------------------------------------------
/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/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-explode-assignable-expression/.npmignore:
--------------------------------------------------------------------------------
1 | src
2 | test
3 | node_modules
4 |
--------------------------------------------------------------------------------
/packages/babel-helper-regex/README.md:
--------------------------------------------------------------------------------
1 | # babel-helper-regex
2 |
3 | ## Usage
4 |
5 | TODO
6 |
--------------------------------------------------------------------------------
/packages/babel-helper-transform-fixture-test-runner/.npmignore:
--------------------------------------------------------------------------------
1 | src
2 | test
3 | node_modules
4 |
--------------------------------------------------------------------------------
/packages/babel-plugin-syntax-class-constructor-call/.npmignore:
--------------------------------------------------------------------------------
1 | node_modules
2 | *.log
3 | src
4 |
--------------------------------------------------------------------------------
/packages/babel-plugin-syntax-exponentiation-operator/.npmignore:
--------------------------------------------------------------------------------
1 | node_modules
2 | *.log
3 | src
4 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-decorators/.npmignore:
--------------------------------------------------------------------------------
1 | node_modules
2 | *.log
3 | src
4 | test
5 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-es2015-duplicate-keys/.npmignore:
--------------------------------------------------------------------------------
1 | node_modules
2 | src
3 | test
4 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-es2015-instanceof/.npmignore:
--------------------------------------------------------------------------------
1 | src
2 | test
3 | node_modules
4 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-es2015-modules-amd/.npmignore:
--------------------------------------------------------------------------------
1 | src
2 | test
3 | node_modules
4 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-es2015-modules-umd/.npmignore:
--------------------------------------------------------------------------------
1 | src
2 | test
3 | node_modules
4 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-es2015-spread/test/fixtures/spread/single/actual.js:
--------------------------------------------------------------------------------
1 | [...foo];
2 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-es2015-typeof-symbol/.npmignore:
--------------------------------------------------------------------------------
1 | src
2 | test
3 | node_modules
4 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-jscript/.npmignore:
--------------------------------------------------------------------------------
1 | node_modules
2 | *.log
3 | src
4 | test
5 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-react-jsx/.npmignore:
--------------------------------------------------------------------------------
1 | node_modules
2 | *.log
3 | src
4 | test
5 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-runtime/.npmignore:
--------------------------------------------------------------------------------
1 | node_modules
2 | *.log
3 | src
4 | test
5 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-runtime/test/fixtures/runtime/class/actual.js:
--------------------------------------------------------------------------------
1 | class Foo {}
2 |
--------------------------------------------------------------------------------
/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-doctor.js:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env node
2 |
3 | require("../lib/babel-doctor");
4 |
--------------------------------------------------------------------------------
/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/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/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/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/object/actual.js:
--------------------------------------------------------------------------------
1 | ({}) === foo;
2 | ({}) && foo;
3 |
--------------------------------------------------------------------------------
/packages/babel-generator/test/fixtures/types/ConditionalExpression/expected.js:
--------------------------------------------------------------------------------
1 | foo ? foo : bar;
2 |
--------------------------------------------------------------------------------
/packages/babel-generator/test/fixtures/types/XJSMemberExpression/expected.js:
--------------------------------------------------------------------------------
1 | ;
2 |
--------------------------------------------------------------------------------
/packages/babel-plugin-check-es2015-constants/.npmignore:
--------------------------------------------------------------------------------
1 | node_modules
2 | *.log
3 | src
4 | test
5 |
--------------------------------------------------------------------------------
/packages/babel-plugin-syntax-trailing-function-commas/.npmignore:
--------------------------------------------------------------------------------
1 | node_modules
2 | *.log
3 | src
4 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-async-functions/.npmignore:
--------------------------------------------------------------------------------
1 | node_modules
2 | *.log
3 | src
4 | test
5 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-class-properties/.npmignore:
--------------------------------------------------------------------------------
1 | node_modules
2 | *.log
3 | src
4 | test
5 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-do-expressions/.npmignore:
--------------------------------------------------------------------------------
1 | node_modules
2 | *.log
3 | src
4 | test
5 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-es2015-classes/.npmignore:
--------------------------------------------------------------------------------
1 | node_modules
2 | *.log
3 | src
4 | test
5 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-es2015-for-of/.npmignore:
--------------------------------------------------------------------------------
1 | node_modules
2 | *.log
3 | src
4 | test
5 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-es2015-literals/.npmignore:
--------------------------------------------------------------------------------
1 | node_modules
2 | *.log
3 | src
4 | test
5 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-es2015-modules-amd/test/fixtures/amd/get-module-name-option/actual.js:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-es2015-modules-systemjs/.npmignore:
--------------------------------------------------------------------------------
1 | src
2 | test
3 | node_modules
4 |
--------------------------------------------------------------------------------
/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-es2015-spread/.npmignore:
--------------------------------------------------------------------------------
1 | node_modules
2 | *.log
3 | src
4 | test
5 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-flow-comments/.npmignore:
--------------------------------------------------------------------------------
1 | node_modules
2 | *.log
3 | src
4 | test
5 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-flow-strip-types/.npmignore:
--------------------------------------------------------------------------------
1 | node_modules
2 | *.log
3 | src
4 | test
5 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-function-bind/.npmignore:
--------------------------------------------------------------------------------
1 | node_modules
2 | *.log
3 | src
4 | test
5 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-object-assign/.npmignore:
--------------------------------------------------------------------------------
1 | node_modules
2 | *.log
3 | src
4 | test
5 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-proto-to-assign/.npmignore:
--------------------------------------------------------------------------------
1 | node_modules
2 | *.log
3 | src
4 | test
5 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-react-jsx-compat/.npmignore:
--------------------------------------------------------------------------------
1 | node_modules
2 | *.log
3 | src
4 | test
5 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-react-jsx-self/.npmignore:
--------------------------------------------------------------------------------
1 | node_modules
2 | *.log
3 | src
4 | test
5 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-react-jsx-source/.npmignore:
--------------------------------------------------------------------------------
1 | node_modules
2 | *.log
3 | src
4 | test
5 |
--------------------------------------------------------------------------------
/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-plugin-undeclared-variables-check/.npmignore:
--------------------------------------------------------------------------------
1 | node_modules
2 | *.log
3 | src
4 | test
5 |
--------------------------------------------------------------------------------
/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/test/fixtures/babel/--ignore/out-files/lib/bar/index.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 |
3 | bar;
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-core/test/fixtures/resolution/resolve-addons-relative-to-file/.gitignore:
--------------------------------------------------------------------------------
1 | !node_modules/
2 |
--------------------------------------------------------------------------------
/packages/babel-core/test/fixtures/resolution/resolve-addons-relative-to-file/actual.js:
--------------------------------------------------------------------------------
1 | var x = "before";
2 |
--------------------------------------------------------------------------------
/packages/babel-generator/test/fixtures/parentheses/arrow-function/expected.js:
--------------------------------------------------------------------------------
1 | foo || (bar => bar());
2 |
--------------------------------------------------------------------------------
/packages/babel-generator/test/fixtures/parentheses/object/expected.js:
--------------------------------------------------------------------------------
1 | ({}) === foo;
2 | ({}) && foo;
3 |
--------------------------------------------------------------------------------
/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/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/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-async-to-generator/.npmignore:
--------------------------------------------------------------------------------
1 | node_modules
2 | *.log
3 | src
4 | test
5 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-es2015-block-scoping/.npmignore:
--------------------------------------------------------------------------------
1 | node_modules
2 | *.log
3 | src
4 | test
5 |
--------------------------------------------------------------------------------
/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-destructuring/.npmignore:
--------------------------------------------------------------------------------
1 | node_modules
2 | *.log
3 | src
4 | test
5 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-es2015-function-name/.npmignore:
--------------------------------------------------------------------------------
1 | node_modules
2 | *.log
3 | src
4 | test
5 |
--------------------------------------------------------------------------------
/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-es2015-object-super/.npmignore:
--------------------------------------------------------------------------------
1 | node_modules
2 | *.log
3 | src
4 | test
5 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-es2015-parameters/.npmignore:
--------------------------------------------------------------------------------
1 | node_modules
2 | *.log
3 | src
4 | test
5 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-es2015-sticky-regex/.npmignore:
--------------------------------------------------------------------------------
1 | node_modules
2 | *.log
3 | src
4 | test
5 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-es2015-unicode-regex/.npmignore:
--------------------------------------------------------------------------------
1 | node_modules
2 | *.log
3 | src
4 | test
5 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-es3-property-literals/.npmignore:
--------------------------------------------------------------------------------
1 | node_modules
2 | *.log
3 | src
4 | test
5 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-es5-property-mutators/.npmignore:
--------------------------------------------------------------------------------
1 | node_modules
2 | *.log
3 | src
4 | test
5 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-export-extensions/.npmignore:
--------------------------------------------------------------------------------
1 | node_modules
2 | *.log
3 | src
4 | test
5 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-jscript/test/fixtures/jscript/simple-class/actual.js:
--------------------------------------------------------------------------------
1 | class Test {
2 | }
3 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-object-rest-spread/.npmignore:
--------------------------------------------------------------------------------
1 | node_modules
2 | *.log
3 | src
4 | test
5 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-react-display-name/.npmignore:
--------------------------------------------------------------------------------
1 | node_modules
2 | *.log
3 | src
4 | test
5 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-react-inline-elements/.npmignore:
--------------------------------------------------------------------------------
1 | node_modules
2 | *.log
3 | src
4 | test
5 |
--------------------------------------------------------------------------------
/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-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/index.js:
--------------------------------------------------------------------------------
1 | throw new Error("The node API for `babel` has been moved to `babel-core`.");
2 |
--------------------------------------------------------------------------------
/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/filenames --out-file/in-files/script2.js:
--------------------------------------------------------------------------------
1 | arr.map(x => x * MULTIPLIER);
2 |
--------------------------------------------------------------------------------
/packages/babel-core/test/fixtures/resolution/resolve-addons-relative-to-file/expected.js:
--------------------------------------------------------------------------------
1 | var x = "AFTER";
2 |
--------------------------------------------------------------------------------
/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/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-helper-builder-binary-assignment-operator-visitor/.npmignore:
--------------------------------------------------------------------------------
1 | src
2 | test
3 | node_modules
4 |
--------------------------------------------------------------------------------
/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-async-to-module-method/.npmignore:
--------------------------------------------------------------------------------
1 | node_modules
2 | *.log
3 | src
4 | test
5 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-class-constructor-call/.npmignore:
--------------------------------------------------------------------------------
1 | node_modules
2 | *.log
3 | src
4 | test
5 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-es2015-arrow-functions/.npmignore:
--------------------------------------------------------------------------------
1 | node_modules
2 | *.log
3 | src
4 | test
5 |
--------------------------------------------------------------------------------
/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-computed-properties/.npmignore:
--------------------------------------------------------------------------------
1 | node_modules
2 | *.log
3 | src
4 | test
5 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-es2015-modules-commonjs/.npmignore:
--------------------------------------------------------------------------------
1 | node_modules
2 | *.log
3 | src
4 | test
5 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-es2015-modules-systemjs/test/fixtures/systemjs/get-module-name-option/actual.js:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-es2015-template-literals/.npmignore:
--------------------------------------------------------------------------------
1 | node_modules
2 | *.log
3 | src
4 | test
5 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-es2015-template-literals/test/fixtures/spec/none/actual.js:
--------------------------------------------------------------------------------
1 | var foo = `test`;
2 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-exponentiation-operator/.npmignore:
--------------------------------------------------------------------------------
1 | node_modules
2 | *.log
3 | src
4 | test
5 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-jscript/test/index.js:
--------------------------------------------------------------------------------
1 | require("babel-helper-plugin-test-runner")(__dirname);
2 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-react-constant-elements/.npmignore:
--------------------------------------------------------------------------------
1 | node_modules
2 | *.log
3 | src
4 | test
5 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-react-jsx-source/test/fixtures/react-source/no-jsx/expected.js:
--------------------------------------------------------------------------------
1 | var x = 42;
2 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-runtime/test/index.js:
--------------------------------------------------------------------------------
1 | require("babel-helper-plugin-test-runner")(__dirname);
2 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-strict-mode/test/fixtures/auxiliary-comment/use-strict-add/actual.js:
--------------------------------------------------------------------------------
1 | foo();
2 |
--------------------------------------------------------------------------------
/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-preset-es2015/test/preset-options.js:
--------------------------------------------------------------------------------
1 | require("babel-helper-plugin-test-runner")(__dirname);
2 |
--------------------------------------------------------------------------------
/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/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/stderr.txt:
--------------------------------------------------------------------------------
1 | SyntaxError: test.js: Unexpected token (2:10)
2 |
--------------------------------------------------------------------------------
/packages/babel-cli/test/fixtures/babel/stdin --filename/stdin.txt:
--------------------------------------------------------------------------------
1 | arr.map(function () {
2 | return $]!;
3 | });
4 |
--------------------------------------------------------------------------------
/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/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/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-helper-builder-conditional-assignment-operator-visitor/.npmignore:
--------------------------------------------------------------------------------
1 | src
2 | test
3 | node_modules
4 |
--------------------------------------------------------------------------------
/packages/babel-helper-hoist-variables/README.md:
--------------------------------------------------------------------------------
1 | # babel-helper-hoist-variables
2 |
3 | ## Usage
4 |
5 | TODO
6 |
--------------------------------------------------------------------------------
/packages/babel-plugin-check-es2015-constants/test/index.js:
--------------------------------------------------------------------------------
1 | require("babel-helper-plugin-test-runner")(__dirname);
2 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-decorators/test/index.js:
--------------------------------------------------------------------------------
1 | require("babel-helper-plugin-test-runner")(__dirname);
2 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-es2015-block-scoped-functions/.npmignore:
--------------------------------------------------------------------------------
1 | node_modules
2 | *.log
3 | src
4 | test
5 |
--------------------------------------------------------------------------------
/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-for-of/test/index.js:
--------------------------------------------------------------------------------
1 | require("babel-helper-plugin-test-runner")(__dirname);
2 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-es2015-instanceof/test/fixtures/instanceof/instanceof/actual.js:
--------------------------------------------------------------------------------
1 | a instanceof b;
2 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-es2015-modules-commonjs/test/fixtures/interop/imports-hoisting/actual.js:
--------------------------------------------------------------------------------
1 | tag`foo`;
2 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-es2015-shorthand-properties/.npmignore:
--------------------------------------------------------------------------------
1 | node_modules
2 | *.log
3 | src
4 | test
5 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-es2015-spread/test/index.js:
--------------------------------------------------------------------------------
1 | require("babel-helper-plugin-test-runner")(__dirname);
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-es3-member-expression-literals/.npmignore:
--------------------------------------------------------------------------------
1 | node_modules
2 | *.log
3 | src
4 | test
5 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-flow-comments/test/index.js:
--------------------------------------------------------------------------------
1 | require("babel-helper-plugin-test-runner")(__dirname);
2 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-function-bind/test/index.js:
--------------------------------------------------------------------------------
1 | require("babel-helper-plugin-test-runner")(__dirname);
2 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-react-jsx/test/index.js:
--------------------------------------------------------------------------------
1 | require("babel-helper-plugin-test-runner")(__dirname);
2 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-regenerator/test/index.js:
--------------------------------------------------------------------------------
1 | require("babel-helper-plugin-test-runner")(__dirname);
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-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-plugin-transform-strict-mode/test/index.js:
--------------------------------------------------------------------------------
1 | require("babel-helper-plugin-test-runner")(__dirname);
2 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/circle.yml:
--------------------------------------------------------------------------------
1 | machine:
2 | node:
3 | version:
4 | 0.10.0
5 |
6 | test:
7 | override:
8 | - make test-ci
9 |
--------------------------------------------------------------------------------
/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/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/browserify/register.js:
--------------------------------------------------------------------------------
1 | require("../../../register")({
2 | ignore: false
3 | });
4 |
--------------------------------------------------------------------------------
/packages/babel-core/test/fixtures/config/extended.babelrc.json:
--------------------------------------------------------------------------------
1 | {
2 | "plugins": [
3 | "extended"
4 | ]
5 | }
6 |
--------------------------------------------------------------------------------
/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/types/AwaitExpression/actual.js:
--------------------------------------------------------------------------------
1 | async function foo() {
2 | await bar();
3 | }
4 |
--------------------------------------------------------------------------------
/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-async-to-generator/test/index.js:
--------------------------------------------------------------------------------
1 | require("babel-helper-plugin-test-runner")(__dirname);
2 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-class-constructor-call/test/fixtures/class-constructor-call/none/actual.js:
--------------------------------------------------------------------------------
1 | class Foo {}
2 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-class-properties/test/index.js:
--------------------------------------------------------------------------------
1 | require("babel-helper-plugin-test-runner")(__dirname);
2 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-do-expressions/test/fixtures/do-expressions/empty.js:
--------------------------------------------------------------------------------
1 | assert.equal(do {}, undefined);
2 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-do-expressions/test/index.js:
--------------------------------------------------------------------------------
1 | require("babel-helper-plugin-test-runner")(__dirname);
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/index.js:
--------------------------------------------------------------------------------
1 | require("babel-helper-plugin-test-runner")(__dirname);
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-instanceof/test/index.js:
--------------------------------------------------------------------------------
1 | require("babel-helper-plugin-test-runner")(__dirname);
2 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-es2015-modules-amd/test/index.js:
--------------------------------------------------------------------------------
1 | require("babel-helper-plugin-test-runner")(__dirname);
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-umd/test/fixtures/umd/override-export-name/actual.js:
--------------------------------------------------------------------------------
1 | export default 42;
2 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-es2015-modules-umd/test/index.js:
--------------------------------------------------------------------------------
1 | require("babel-helper-plugin-test-runner")(__dirname);
2 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-es2015-parameters/test/index.js:
--------------------------------------------------------------------------------
1 | require("babel-helper-plugin-test-runner")(__dirname);
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-export-extensions/test/index.js:
--------------------------------------------------------------------------------
1 | require("babel-helper-plugin-test-runner")(__dirname);
2 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-flow-strip-types/test/index.js:
--------------------------------------------------------------------------------
1 | require("babel-helper-plugin-test-runner")(__dirname);
2 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-object-rest-spread/test/index.js:
--------------------------------------------------------------------------------
1 | require("babel-helper-plugin-test-runner")(__dirname);
2 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-object-set-prototype-of-to-assign/.npmignore:
--------------------------------------------------------------------------------
1 | node_modules
2 | *.log
3 | src
4 | test
5 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-proto-to-assign/test/index.js:
--------------------------------------------------------------------------------
1 | require("babel-helper-plugin-test-runner")(__dirname);
2 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-react-display-name/test/index.js:
--------------------------------------------------------------------------------
1 | require("babel-helper-plugin-test-runner")(__dirname);
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-compat/test/index.js:
--------------------------------------------------------------------------------
1 | require("babel-helper-plugin-test-runner")(__dirname);
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-self/test/index.js:
--------------------------------------------------------------------------------
1 | require("babel-helper-plugin-test-runner")(__dirname);
2 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-react-jsx-source/test/index.js:
--------------------------------------------------------------------------------
1 | require("babel-helper-plugin-test-runner")(__dirname);
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-plugin-undeclared-variables-check/test/index.js:
--------------------------------------------------------------------------------
1 | require("babel-helper-plugin-test-runner")(__dirname);
2 |
--------------------------------------------------------------------------------
/packages/babel-preset-es2015/test/fixtures/traceur/Modules/resources/p.js:
--------------------------------------------------------------------------------
1 | export var p = 'P';
2 | export var q = 'Q';
3 |
--------------------------------------------------------------------------------
/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-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/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/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-syntax-trailing-function-commas/test/index.js:
--------------------------------------------------------------------------------
1 | require("babel-helper-plugin-test-runner")(__dirname);
2 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-async-to-module-method/test/index.js:
--------------------------------------------------------------------------------
1 | require("babel-helper-plugin-test-runner")(__dirname);
2 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-class-constructor-call/test/fixtures/class-constructor-call/none/expected.js:
--------------------------------------------------------------------------------
1 | class Foo {}
2 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-class-constructor-call/test/index.js:
--------------------------------------------------------------------------------
1 | require("babel-helper-plugin-test-runner")(__dirname);
2 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-es2015-arrow-functions/test/fixtures/arrow-functions/empty-block/actual.js:
--------------------------------------------------------------------------------
1 | var t = () => {};
2 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-es2015-arrow-functions/test/index.js:
--------------------------------------------------------------------------------
1 | require("babel-helper-plugin-test-runner")(__dirname);
2 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-es2015-block-scoping/test/index.js:
--------------------------------------------------------------------------------
1 | require("babel-helper-plugin-test-runner")(__dirname);
2 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-es2015-destructuring/test/index.js:
--------------------------------------------------------------------------------
1 | require("babel-helper-plugin-test-runner")(__dirname);
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-duplicate-keys/test/index.js:
--------------------------------------------------------------------------------
1 | require("babel-helper-plugin-test-runner")(__dirname);
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-function-name/test/index.js:
--------------------------------------------------------------------------------
1 | require("babel-helper-plugin-test-runner")(__dirname);
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-commonjs/test/index.js:
--------------------------------------------------------------------------------
1 | require("babel-helper-plugin-test-runner")(__dirname);
2 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-es2015-modules-systemjs/test/index.js:
--------------------------------------------------------------------------------
1 | require("babel-helper-plugin-test-runner")(__dirname);
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-object-super/test/index.js:
--------------------------------------------------------------------------------
1 | require("babel-helper-plugin-test-runner")(__dirname);
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-sticky-regex/test/index.js:
--------------------------------------------------------------------------------
1 | require("babel-helper-plugin-test-runner")(__dirname);
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-es2015-typeof-symbol/test/index.js:
--------------------------------------------------------------------------------
1 | require("babel-helper-plugin-test-runner")(__dirname);
2 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-es2015-unicode-regex/test/index.js:
--------------------------------------------------------------------------------
1 | require("babel-helper-plugin-test-runner")(__dirname);
2 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-es3-property-literals/test/index.js:
--------------------------------------------------------------------------------
1 | require("babel-helper-plugin-test-runner")(__dirname);
2 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-es5-property-mutators/test/index.js:
--------------------------------------------------------------------------------
1 | require("babel-helper-plugin-test-runner")(__dirname);
2 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-exponentiation-operator/test/index.js:
--------------------------------------------------------------------------------
1 | require("babel-helper-plugin-test-runner")(__dirname);
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-object-rest-spread/test/fixtures/object-rest-spread/assignment/actual.js:
--------------------------------------------------------------------------------
1 | z = { x, ...y };
2 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-react-constant-elements/test/index.js:
--------------------------------------------------------------------------------
1 | require("babel-helper-plugin-test-runner")(__dirname);
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-inline-elements/test/index.js:
--------------------------------------------------------------------------------
1 | require("babel-helper-plugin-test-runner")(__dirname);
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-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/.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/transformation/errors/syntax/options.json:
--------------------------------------------------------------------------------
1 | {
2 | "throws": "Unexpected token (2:10)"
3 | }
4 |
--------------------------------------------------------------------------------
/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/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/harmony-edgecase/export-default-declaration/actual.js:
--------------------------------------------------------------------------------
1 | export default function a () { }
2 |
--------------------------------------------------------------------------------
/packages/babel-generator/test/fixtures/harmony-edgecase/export-default-declaration/expected.js:
--------------------------------------------------------------------------------
1 | export default function a() {}
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-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-computed-properties/test/index.js:
--------------------------------------------------------------------------------
1 | require("babel-helper-plugin-test-runner")(__dirname);
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/module-name/options.json:
--------------------------------------------------------------------------------
1 | {
2 | "moduleIds": true
3 | }
4 |
--------------------------------------------------------------------------------
/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/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/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-shorthand-properties/test/index.js:
--------------------------------------------------------------------------------
1 | require("babel-helper-plugin-test-runner")(__dirname);
2 |
--------------------------------------------------------------------------------
/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-es2015-template-literals/test/index.js:
--------------------------------------------------------------------------------
1 | require("babel-helper-plugin-test-runner")(__dirname);
2 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-exponentiation-operator/test/fixtures/exponentian-operator/binary/expected.js:
--------------------------------------------------------------------------------
1 | Math.pow(2, 2);
2 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-export-extensions/test/fixtures/export-extensions/default-es6/actual.js:
--------------------------------------------------------------------------------
1 | export foo from "bar";
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-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-plugin-undeclared-variables-check/test/fixtures/validation.undeclared-variable-check/undeclared/exec.js:
--------------------------------------------------------------------------------
1 | foo();
2 |
--------------------------------------------------------------------------------
/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-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/--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/transformation/misc/regression-1149/expected.js:
--------------------------------------------------------------------------------
1 | function foo(bar) {
2 | var bar = bar[0];
3 | }
4 |
--------------------------------------------------------------------------------
/packages/babel-core/test/plugins.js:
--------------------------------------------------------------------------------
1 | require("babel-helper-transform-fixture-test-runner")(__dirname + "/fixtures/plugins", "plugins");
2 |
--------------------------------------------------------------------------------
/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/minified/block-statements/expected.js:
--------------------------------------------------------------------------------
1 | if(true){foo;bar2}else{foo;bar2}function fn(){foo;bar2}
2 |
--------------------------------------------------------------------------------
/packages/babel-generator/test/fixtures/minified/literals/expected.js:
--------------------------------------------------------------------------------
1 | 5;5;"foobar";" ";"\n\r";"😂";/foobar/g;null;true;false;5;2;56;31;
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-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/imports-glob/actual.js:
--------------------------------------------------------------------------------
1 | import * as foo from "foo";
2 |
3 | foo;
4 |
--------------------------------------------------------------------------------
/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-es3-member-expression-literals/test/index.js:
--------------------------------------------------------------------------------
1 | require("babel-helper-plugin-test-runner")(__dirname);
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-object-rest-spread/test/fixtures/object-rest-spread/expression/actual.js:
--------------------------------------------------------------------------------
1 | ({ x, ...y, a, ...b, c });
2 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-object-rest-spread/test/fixtures/object-rest-spread/variable-declaration/actual.js:
--------------------------------------------------------------------------------
1 | var z = { ...x };
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-regenerator/test/fixtures/regression/options.json:
--------------------------------------------------------------------------------
1 | {
2 | "presets": [
3 | "es2015"
4 | ]
5 | }
6 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-strict-mode/test/fixtures/strict-mode/undefined-this-arrow-function/actual.js:
--------------------------------------------------------------------------------
1 | var foo = () => this;
2 |
--------------------------------------------------------------------------------
/packages/babel-cli/test/fixtures/babel/--ignore/options.json:
--------------------------------------------------------------------------------
1 | {
2 | "args": ["src", "--out-dir", "lib", "--ignore", "src/foo/*"]
3 | }
4 |
--------------------------------------------------------------------------------
/packages/babel-cli/test/fixtures/babel/dir --out-dir --source-maps/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/options.json:
--------------------------------------------------------------------------------
1 | {
2 | "args": ["script.js", "--out-file", "script2.js"]
3 | }
4 |
--------------------------------------------------------------------------------
/packages/babel-cli/test/fixtures/babel/stdin/stdout.txt:
--------------------------------------------------------------------------------
1 | "use strict";
2 |
3 | arr.map(function (x) {
4 | return x * MULTIPLIER;
5 | });
6 |
--------------------------------------------------------------------------------
/packages/babel-core/test/fixtures/transformation/source-maps/arrow-function/expected.js:
--------------------------------------------------------------------------------
1 | var t = function t(x) {
2 | return x * x;
3 | };
4 |
--------------------------------------------------------------------------------
/packages/babel-core/test/fixtures/transformation/source-maps/input-source-map/expected.js:
--------------------------------------------------------------------------------
1 | var foo = function () {
2 | return 4;
3 | };
4 |
--------------------------------------------------------------------------------
/packages/babel-generator/test/fixtures/comments/block-line-comment-with-retainlines-option/options.json:
--------------------------------------------------------------------------------
1 | {
2 | "retainLines": true
3 | }
4 |
--------------------------------------------------------------------------------
/packages/babel-generator/test/fixtures/comments/comment-statement-with-retainlines-option/options.json:
--------------------------------------------------------------------------------
1 | {
2 | "retainLines": true
3 | }
4 |
--------------------------------------------------------------------------------
/packages/babel-generator/test/fixtures/parentheses/assignment-expression/actual.js:
--------------------------------------------------------------------------------
1 | 1 + (a = 2);
2 | 1 + (a += 2);
3 | a = a || (a = {});
4 |
--------------------------------------------------------------------------------
/packages/babel-generator/test/fixtures/parentheses/assignment-expression/expected.js:
--------------------------------------------------------------------------------
1 | 1 + (a = 2);
2 | 1 + (a += 2);
3 | a = a || (a = {});
4 |
--------------------------------------------------------------------------------
/packages/babel-generator/test/fixtures/parentheses/unary-arrow-function/actual.js:
--------------------------------------------------------------------------------
1 | void (() => {});
2 | typeof (() => {});
3 | !(() => {});
4 |
--------------------------------------------------------------------------------
/packages/babel-generator/test/fixtures/types/ClassDeclaration/actual.js:
--------------------------------------------------------------------------------
1 | var foo = class Foo {};
2 | var foo = class Foo extends Bar {};
3 |
--------------------------------------------------------------------------------
/packages/babel-generator/test/fixtures/types/ClassDeclaration/expected.js:
--------------------------------------------------------------------------------
1 | var foo = class Foo {};
2 | var foo = class Foo extends Bar {};
3 |
--------------------------------------------------------------------------------
/packages/babel-generator/test/fixtures/types/DoWhileStatement/actual.js:
--------------------------------------------------------------------------------
1 | do {
2 | test();
3 | } while (true);
4 |
5 | do {} while (true);
6 |
--------------------------------------------------------------------------------
/packages/babel-generator/test/fixtures/types/SpreadElement-SpreadProperty/actual.js:
--------------------------------------------------------------------------------
1 | [...foo];
2 | foo(bar, ...items);
3 | new Foo(...foo);
4 |
--------------------------------------------------------------------------------
/packages/babel-generator/test/fixtures/types/ThrowStatement/actual.js:
--------------------------------------------------------------------------------
1 | throw err;
2 | throw Error("foobar");
3 | throw new Error("foobar");
4 |
--------------------------------------------------------------------------------
/packages/babel-helper-explode-assignable-expression/README.md:
--------------------------------------------------------------------------------
1 | # babel-helper-explode-assignable-expression
2 |
3 | ## Usage
4 |
5 | TODO
6 |
--------------------------------------------------------------------------------
/packages/babel-plugin-check-es2015-constants/test/fixtures/general/destructuring-assignment/actual.js:
--------------------------------------------------------------------------------
1 | const [a, b] = [1, 2];
2 | a = 3;
3 |
--------------------------------------------------------------------------------
/packages/babel-plugin-check-es2015-constants/test/fixtures/general/ignore-member-expressions/actual.js:
--------------------------------------------------------------------------------
1 | const x = {};
2 | x.key = "value";
3 |
--------------------------------------------------------------------------------
/packages/babel-plugin-check-es2015-constants/test/fixtures/general/ignore-member-expressions/expected.js:
--------------------------------------------------------------------------------
1 | var x = {};
2 | x.key = "value";
3 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-class-properties/test/fixtures/general/derived/actual.js:
--------------------------------------------------------------------------------
1 | class Foo extends Bar {
2 | bar = "foo";
3 | }
4 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-es2015-arrow-functions/test/fixtures/arrow-functions/multiple-arguments/actual.js:
--------------------------------------------------------------------------------
1 | var t = (i, x) => i * x;
2 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-es2015-classes/test/fixtures/loose/literal-key/actual.js:
--------------------------------------------------------------------------------
1 | class Foo {
2 | "bar"() {
3 |
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-es2015-classes/test/fixtures/regression/T2494/actual.js:
--------------------------------------------------------------------------------
1 | var x = {
2 | Foo: class extends Foo {}
3 | };
4 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-es2015-computed-properties/test/fixtures/loose/assignment/actual.js:
--------------------------------------------------------------------------------
1 | foo = {
2 | [bar]: "foobar"
3 | };
4 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-es2015-computed-properties/test/fixtures/loose/single/actual.js:
--------------------------------------------------------------------------------
1 | var obj = {
2 | ["x" + foo]: "heh"
3 | };
4 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-es2015-computed-properties/test/fixtures/loose/variable/actual.js:
--------------------------------------------------------------------------------
1 | var foo = {
2 | [bar]: "foobar"
3 | };
4 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-es2015-computed-properties/test/fixtures/spec/assignment/actual.js:
--------------------------------------------------------------------------------
1 | foo = {
2 | [bar]: "foobar"
3 | };
4 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-es2015-computed-properties/test/fixtures/spec/single/actual.js:
--------------------------------------------------------------------------------
1 | var obj = {
2 | ["x" + foo]: "heh"
3 | };
4 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-es2015-computed-properties/test/fixtures/spec/variable/actual.js:
--------------------------------------------------------------------------------
1 | var foo = {
2 | [bar]: "foobar"
3 | };
4 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-es2015-destructuring/test/fixtures/destructuring/assignment-expression/actual.js:
--------------------------------------------------------------------------------
1 | console.log([x] = [123]);
2 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-es2015-destructuring/test/fixtures/destructuring/known-array/actual.js:
--------------------------------------------------------------------------------
1 | var z = [];
2 | var [x, ...y] = z;
3 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-es2015-duplicate-keys/test/fixtures/duplicate-keys/getter/actual.js:
--------------------------------------------------------------------------------
1 | var x = { a: 5, get a() {return 6;} };
2 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-es2015-modules-commonjs/test/fixtures/interop/illegal-export-esmodule-2/actual.js:
--------------------------------------------------------------------------------
1 | export { __esModule };
2 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-es2015-modules-commonjs/test/fixtures/regression/T7160/options.json:
--------------------------------------------------------------------------------
1 | {
2 | "presets": ["es2015"]
3 | }
4 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-es2015-modules-commonjs/test/fixtures/regression/T7272/actual.js:
--------------------------------------------------------------------------------
1 | export const state = (state) => state.a
2 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-es2015-modules-commonjs/test/fixtures/regression/T7272/options.json:
--------------------------------------------------------------------------------
1 | {
2 | "presets": ["es2015"]
3 | }
4 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-es2015-modules-commonjs/test/fixtures/strict/export-1/expected.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 |
3 | exports.default = foo;
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-es2015-modules-commonjs/test/fixtures/strict/export-2/expected.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 |
3 | exports.default = foo;
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-es2015-modules-commonjs/test/fixtures/strict/export-3/actual.js:
--------------------------------------------------------------------------------
1 | export {};
2 |
3 | export {} from 'foo';
4 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-es2015-modules-umd/test/fixtures/umd/imports-mixing/actual.js:
--------------------------------------------------------------------------------
1 | import foo, {baz as xyz} from "foo";
2 | xyz;
3 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-es2015-modules-umd/test/fixtures/umd/non-default-imports/actual.js:
--------------------------------------------------------------------------------
1 | import { render } from "./lib/render";
2 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-es2015-spread/test/fixtures/spread/array-literals/actual.js:
--------------------------------------------------------------------------------
1 | var lyrics = ["head", "and", "toes", ...parts];
2 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-es2015-spread/test/fixtures/spread/known-rest/actual.js:
--------------------------------------------------------------------------------
1 | function foo(...bar) {
2 | return [...bar];
3 | }
4 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-es2015-spread/test/fixtures/spread/method-call-array-literal/expected.js:
--------------------------------------------------------------------------------
1 | f.apply(undefined, [1, 2, 3]);
2 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-es2015-spread/test/fixtures/spread/method-call-multiple/actual.js:
--------------------------------------------------------------------------------
1 | add(foo, ...numbers, bar, what, ...test);
2 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-es2015-template-literals/test/fixtures/normal/functions/actual.js:
--------------------------------------------------------------------------------
1 | var foo = `test ${_.test(foo)} ${bar}`;
2 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-es2015-template-literals/test/fixtures/normal/multiple/expected.js:
--------------------------------------------------------------------------------
1 | var foo = "test " + foo + " " + bar;
2 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-es2015-template-literals/test/fixtures/normal/tag/actual.js:
--------------------------------------------------------------------------------
1 | var foo = bar`wow\na${ 42 }b ${_.foobar()}`;
2 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-es2015-template-literals/test/fixtures/spec/functions/actual.js:
--------------------------------------------------------------------------------
1 | var foo = `test ${_.test(foo)} ${bar}`;
2 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-es2015-template-literals/test/fixtures/spec/statement/expected.js:
--------------------------------------------------------------------------------
1 | var foo = "test " + String(foo + bar);
2 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-flow-comments/test/fixtures/flow-comments/optional-parameters/actual.js:
--------------------------------------------------------------------------------
1 | function multiply(num?: number) {}
2 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-flow-comments/test/fixtures/flow-comments/options.json:
--------------------------------------------------------------------------------
1 | {
2 | "plugins": ["transform-flow-comments"]
3 | }
4 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-flow-comments/test/fixtures/flow-comments/type/expected.js:
--------------------------------------------------------------------------------
1 | function foo(x /*: number*/) /*: string*/ {}
2 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-flow-strip-types/test/fixtures/strip-types/def-site-variance/expected.js:
--------------------------------------------------------------------------------
1 | class C {}
2 | function f() {}
3 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-react-display-name/test/fixtures/display-name/assignment-expression/actual.js:
--------------------------------------------------------------------------------
1 | foo = React.createClass({});
2 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-react-inline-elements/test/fixtures/inline-elements/component-with-props/actual.js:
--------------------------------------------------------------------------------
1 | ;
2 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-react-inline-elements/test/fixtures/inline-elements/multiline/expected.js:
--------------------------------------------------------------------------------
1 | babelHelpers.jsx(Baz, {}, void 0);
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-react-inline-elements/test/fixtures/inline-elements/spread-deopt/expected.js:
--------------------------------------------------------------------------------
1 | React.createElement(Foo, bar);
2 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-react-jsx/test/fixtures/react/jsx-with-retainlines-option/options.json:
--------------------------------------------------------------------------------
1 | {
2 | "retainLines": true
3 | }
4 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-react-jsx/test/fixtures/react/should-allow-constructor-as-prop/actual.js:
--------------------------------------------------------------------------------
1 | ;
2 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-strict-mode/test/fixtures/strict-mode/leading-comments/actual.js:
--------------------------------------------------------------------------------
1 | // comments
2 |
3 | module.exports = {};
4 |
--------------------------------------------------------------------------------
/packages/babel-preset-es2015/test/fixtures/esnext/es6-rest-parameters/options.json:
--------------------------------------------------------------------------------
1 | {
2 | "plugins": ["transform-es2015-parameters"]
3 | }
4 |
--------------------------------------------------------------------------------
/packages/babel-preset-es2015/test/fixtures/preset-options/no-options/options.json:
--------------------------------------------------------------------------------
1 | {
2 | "presets": [
3 | ["es2015"]
4 | ]
5 | }
6 |
--------------------------------------------------------------------------------
/packages/babel-preset-es2015/test/fixtures/traceur/Modules/resources/default-and-named.js:
--------------------------------------------------------------------------------
1 | export default 'default';
2 | export var x = 'x';
3 |
--------------------------------------------------------------------------------
/packages/babel-preset-es2015/test/fixtures/traceur/Modules/resources/i.js:
--------------------------------------------------------------------------------
1 | export var i = 0;
2 | export function inc() {
3 | i++;
4 | }
5 |
--------------------------------------------------------------------------------
/packages/babel-preset-es2015/test/fixtures/traceur/Modules/resources/n.js:
--------------------------------------------------------------------------------
1 | export var c = 3;
2 | export var d = 4;
3 | export default 5;
4 |
--------------------------------------------------------------------------------
/packages/babel-preset-es2015/test/fixtures/traceur/Modules/resources/re-export-default-as.js:
--------------------------------------------------------------------------------
1 | export {default as x} from './default.js';
2 |
--------------------------------------------------------------------------------
/packages/babel-preset-es2015/test/fixtures/traceur/Syntax/NoNewLineHereEndOfFile.js:
--------------------------------------------------------------------------------
1 | // Comment not closed.
2 | var f = (x) /*
3 | => {}
4 |
--------------------------------------------------------------------------------
/packages/babel-preset-es2015/test/fixtures/traceur/TemplateLiterals/resources/f.js:
--------------------------------------------------------------------------------
1 | export function f(...args) {
2 | return args;
3 | }
4 |
--------------------------------------------------------------------------------
/packages/babel-cli/test/fixtures/babel-external-helpers/--output-type global/options.json:
--------------------------------------------------------------------------------
1 | {
2 | "args": ["--whitelist", "nonexistent"]
3 | }
4 |
--------------------------------------------------------------------------------
/packages/babel-core/test/fixtures/transformation/misc/regression-1130/options.json:
--------------------------------------------------------------------------------
1 | {
2 | "plugins": ["transform-es2015-block-scoping"]
3 | }
4 |
--------------------------------------------------------------------------------
/packages/babel-core/test/fixtures/transformation/misc/regression-1168/actual.js:
--------------------------------------------------------------------------------
1 | function test(x: string = "hi"): string {
2 | return x;
3 | }
4 |
--------------------------------------------------------------------------------
/packages/babel-core/test/fixtures/transformation/source-maps/full/options.json:
--------------------------------------------------------------------------------
1 | {
2 | "plugins": ["transform-es2015-arrow-functions"]
3 | }
4 |
--------------------------------------------------------------------------------
/packages/babel-generator/test/fixtures/comments/block-line-comment-with-concise-format/actual.js:
--------------------------------------------------------------------------------
1 | {
2 | print("hello");
3 | // comment
4 | }
5 |
--------------------------------------------------------------------------------
/packages/babel-generator/test/fixtures/edgecase/for-loop-in/actual.js:
--------------------------------------------------------------------------------
1 | for ((a in b) ? a : b; i;);
2 | for (function(){for(;;);} && (a in b);;);
3 |
--------------------------------------------------------------------------------
/packages/babel-generator/test/fixtures/flow/def-site-variance/actual.js:
--------------------------------------------------------------------------------
1 | class C<+T, -U> {}
2 | function f<+T, -U>() {}
3 | type T<+T, -U> = {};
4 |
--------------------------------------------------------------------------------
/packages/babel-generator/test/fixtures/minified/labeled-statement/expected.js:
--------------------------------------------------------------------------------
1 | function x(){return-1;return--i;return!2;return void 0}throw-1;
2 |
--------------------------------------------------------------------------------
/packages/babel-generator/test/fixtures/parentheses/unary-arrow-function/expected.js:
--------------------------------------------------------------------------------
1 | void (() => {});
2 | typeof (() => {});
3 | !(() => {});
4 |
--------------------------------------------------------------------------------
/packages/babel-generator/test/fixtures/types/DoWhileStatement/expected.js:
--------------------------------------------------------------------------------
1 | do {
2 | test();
3 | } while (true);
4 |
5 | do {} while (true);
6 |
--------------------------------------------------------------------------------
/packages/babel-generator/test/fixtures/types/SpreadElement-SpreadProperty/expected.js:
--------------------------------------------------------------------------------
1 | [...foo];
2 | foo(bar, ...items);
3 | new Foo(...foo);
4 |
--------------------------------------------------------------------------------
/packages/babel-generator/test/fixtures/types/ThisExpression/actual.js:
--------------------------------------------------------------------------------
1 | this;
2 | this.foo;
3 | this["foo"];
4 | this.foo();
5 | this["foo"]();
6 |
--------------------------------------------------------------------------------
/packages/babel-generator/test/fixtures/types/ThisExpression/expected.js:
--------------------------------------------------------------------------------
1 | this;
2 | this.foo;
3 | this["foo"];
4 | this.foo();
5 | this["foo"]();
6 |
--------------------------------------------------------------------------------
/packages/babel-generator/test/fixtures/types/ThrowStatement/expected.js:
--------------------------------------------------------------------------------
1 | throw err;
2 | throw Error("foobar");
3 | throw new Error("foobar");
4 |
--------------------------------------------------------------------------------
/packages/babel-plugin-check-es2015-constants/test/fixtures/general/no-for-in/actual.js:
--------------------------------------------------------------------------------
1 | const MULTIPLIER = 5;
2 |
3 | for (MULTIPLIER in arr);
4 |
--------------------------------------------------------------------------------
/packages/babel-plugin-check-es2015-constants/test/fixtures/general/no-for-in/options.json:
--------------------------------------------------------------------------------
1 | {
2 | "throws": "\"MULTIPLIER\" is read-only"
3 | }
4 |
--------------------------------------------------------------------------------
/packages/babel-plugin-check-es2015-constants/test/fixtures/general/update-expression/options.json:
--------------------------------------------------------------------------------
1 | {
2 | "throws": "\"foo\" is read-only"
3 | }
4 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-async-to-generator/test/fixtures/async-to-generator/parameters/actual.js:
--------------------------------------------------------------------------------
1 | async function foo(bar) {
2 |
3 | }
4 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-class-properties/test/fixtures/general/static-infer-name/actual.js:
--------------------------------------------------------------------------------
1 | var Foo = class {
2 | static num = 0;
3 | }
4 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-do-expressions/test/fixtures/do-expressions/options.json:
--------------------------------------------------------------------------------
1 | {
2 | "plugins": ["transform-do-expressions"]
3 | }
4 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-do-expressions/test/fixtures/do-expressions/single-expression.js:
--------------------------------------------------------------------------------
1 | assert.equal(do {
2 | "foo";
3 | }, "foo");
4 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-es2015-block-scoping/test/fixtures/general/function/actual.js:
--------------------------------------------------------------------------------
1 | function test() {
2 | let foo = "bar";
3 | }
4 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-es2015-block-scoping/test/fixtures/general/function/expected.js:
--------------------------------------------------------------------------------
1 | function test() {
2 | var foo = "bar";
3 | }
4 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-es2015-computed-properties/test/fixtures/loose/this/actual.js:
--------------------------------------------------------------------------------
1 | var obj = {
2 | ["x" + foo.bar]: "heh"
3 | };
4 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-es2015-computed-properties/test/fixtures/spec/this/actual.js:
--------------------------------------------------------------------------------
1 | var obj = {
2 | ["x" + foo.bar]: "heh"
3 | };
4 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-es2015-destructuring/test/fixtures/destructuring/member-expression/actual.js:
--------------------------------------------------------------------------------
1 | [foo.foo, foo.bar] = [1, 2];
2 | ;
3 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-es2015-duplicate-keys/test/fixtures/duplicate-keys/both-quoted/actual.js:
--------------------------------------------------------------------------------
1 | var x = { "a\n b": 5, "a\n b": 6 };
2 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-es2015-duplicate-keys/test/fixtures/duplicate-keys/both-quoted/expected.js:
--------------------------------------------------------------------------------
1 | var x = { "a\n b": 5, ["a\n b"]: 6 };
2 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-es2015-function-name/test/fixtures/function-name/basic/actual.js:
--------------------------------------------------------------------------------
1 | var g = function () {
2 | doSmth();
3 | };
4 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-es2015-function-name/test/fixtures/function-name/basic/expected.js:
--------------------------------------------------------------------------------
1 | var g = function g() {
2 | doSmth();
3 | };
4 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-es2015-modules-amd/test/fixtures/amd/export-specifier-default/actual.js:
--------------------------------------------------------------------------------
1 | var a = 1;
2 | export { a as default };
3 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-es2015-modules-commonjs/test/fixtures/interop/illegal-export-esmodule/actual.js:
--------------------------------------------------------------------------------
1 | export var __esModule = false;
2 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-es2015-modules-commonjs/test/fixtures/interop/module-shadow/actual.js:
--------------------------------------------------------------------------------
1 | export function module() {
2 |
3 | }
4 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-es2015-modules-commonjs/test/fixtures/regression/T7199/actual.js:
--------------------------------------------------------------------------------
1 | import foo from 'foo';
2 | const [x] = bar;
3 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-es2015-modules-systemjs/test/fixtures/systemjs/imports-mixing/actual.js:
--------------------------------------------------------------------------------
1 | import foo, {baz as xyz} from "foo";
2 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-es2015-modules-umd/test/fixtures/umd/module-id-with-overridden-global-in-namespace/actual.js:
--------------------------------------------------------------------------------
1 | export default 42;
2 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-es2015-parameters/test/fixtures/parameters/default-before-last/actual.js:
--------------------------------------------------------------------------------
1 | function foo(a = "foo", b) {
2 |
3 | }
4 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-es2015-shorthand-properties/test/fixtures/shorthand-properties/shorthand-single/actual.js:
--------------------------------------------------------------------------------
1 | var coords = { x };
2 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-es2015-spread/test/fixtures/spread/array-literal-first/actual.js:
--------------------------------------------------------------------------------
1 | var lyrics = [...parts, "head", "and", "toes"];
2 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-es2015-spread/test/fixtures/spread/contexted-computed-method-call-single-arg/actual.js:
--------------------------------------------------------------------------------
1 | obj[method](...args);
2 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-es2015-spread/test/fixtures/spread/new-expression/actual.js:
--------------------------------------------------------------------------------
1 | new Numbers(...nums);
2 | new Numbers(1, ...nums);
3 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-es2015-template-literals/test/fixtures/normal/escape-quotes/expected.js:
--------------------------------------------------------------------------------
1 | var t = "'" + foo + "' \"" + bar + "\"";
2 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-es2015-template-literals/test/fixtures/normal/functions/expected.js:
--------------------------------------------------------------------------------
1 | var foo = "test " + _.test(foo) + " " + bar;
2 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-es2015-template-literals/test/fixtures/normal/multiline/expected.js:
--------------------------------------------------------------------------------
1 | var o = "wow\nthis is\nactually multiline!";
2 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-es2015-template-literals/test/fixtures/spec/multiline/expected.js:
--------------------------------------------------------------------------------
1 | var o = "wow\nthis is\nactually multiline!";
2 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-es2015-typeof-symbol/test/fixtures/symbols/shadow/actual.js:
--------------------------------------------------------------------------------
1 | var Symbol = foo();
2 | typeof s;
3 | foo(Symbol);
4 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-export-extensions/test/fixtures/export-extensions/namespace-compound-es6/actual.js:
--------------------------------------------------------------------------------
1 | export v, * as ns from "mod";
2 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-flow-comments/test/fixtures/flow-comments/type-cast/actual.js:
--------------------------------------------------------------------------------
1 | var a = (y: any);
2 | var a = ((y: foo): any);
3 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-proto-to-assign/test/fixtures/proto-to-assign/assignment-statement/expected.js:
--------------------------------------------------------------------------------
1 | babelHelpers.defaults(obj, bar);
2 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-react-display-name/test/fixtures/display-name/variable-declarator/actual.js:
--------------------------------------------------------------------------------
1 | var foo = React.createClass({});
2 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-react-inline-elements/test/fixtures/inline-elements/children-exists/actual.js:
--------------------------------------------------------------------------------
1 | bar
;
2 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-react-inline-elements/test/fixtures/inline-elements/html-element-with-props/actual.js:
--------------------------------------------------------------------------------
1 | ;
2 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-react-inline-elements/test/fixtures/inline-elements/self-closing-component/expected.js:
--------------------------------------------------------------------------------
1 | babelHelpers.jsx(Baz, {});
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-react-jsx/test/fixtures/react/.should-not-strip-tags-with-a-single-child-of-nbsp/actual.js:
--------------------------------------------------------------------------------
1 |
;
2 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-react-jsx/test/fixtures/react/should-convert-simple-tags/expected.js:
--------------------------------------------------------------------------------
1 | var x = React.createElement("div", null);
2 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-regenerator/test/fixtures/class-argument-scope/options.json:
--------------------------------------------------------------------------------
1 | {
2 | "presets": [
3 | "es2015"
4 | ]
5 | }
6 |
--------------------------------------------------------------------------------
/packages/babel-preset-es2015/test/esnext.js:
--------------------------------------------------------------------------------
1 | require("babel-helper-transform-fixture-test-runner")(__dirname + "/fixtures/esnext", "esnext");
2 |
--------------------------------------------------------------------------------
/packages/babel-preset-es2015/test/fixtures/esnext/es6-arrow-functions/options.json:
--------------------------------------------------------------------------------
1 | {
2 | "plugins": ["transform-es2015-arrow-functions"]
3 | }
4 |
--------------------------------------------------------------------------------
/packages/babel-preset-es2015/test/fixtures/esnext/es6-templates/options.json:
--------------------------------------------------------------------------------
1 | {
2 | "plugins": ["transform-es2015-template-literals"]
3 | }
4 |
--------------------------------------------------------------------------------
/packages/babel-preset-es2015/test/fixtures/preset-options/empty-options/options.json:
--------------------------------------------------------------------------------
1 | {
2 | "presets": [
3 | ["es2015", {}]
4 | ]
5 | }
6 |
--------------------------------------------------------------------------------
/test/warning.js:
--------------------------------------------------------------------------------
1 | console.error("Don't run `mocha` directly. Use `make test`. See CONTRIBUTING.md for usage instructions.");
2 | process.exit(0);
3 |
--------------------------------------------------------------------------------
/packages/babel-cli/test/fixtures/babel/.stdin --out-file --source-maps/options.json:
--------------------------------------------------------------------------------
1 | {
2 | "args": ["--source-maps", "--out-file", "test.js"]
3 | }
4 |
--------------------------------------------------------------------------------
/packages/babel-cli/test/fixtures/babel/dir --out-dir --source-maps inline/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/dir --out-dir --source-maps/options.json:
--------------------------------------------------------------------------------
1 | {
2 | "args": ["src", "--source-maps", "--out-dir", "lib"]
3 | }
4 |
--------------------------------------------------------------------------------
/packages/babel-cli/test/fixtures/babel/filename-sourcemap --out-file --source-maps inline/in-files/.babelrc:
--------------------------------------------------------------------------------
1 | {
2 | "inlineSourceMap": true
3 | }
4 |
--------------------------------------------------------------------------------
/packages/babel-cli/test/fixtures/babel/stdin --filename/options.json:
--------------------------------------------------------------------------------
1 | {
2 | "args": ["--filename", "test.js"],
3 | "stderrContains": true
4 | }
5 |
--------------------------------------------------------------------------------
/packages/babel-generator/test/fixtures/auto-indentation/hard-tab/actual.js:
--------------------------------------------------------------------------------
1 | function foo() {
2 | bar();
3 | if (foo) {
4 | bar();
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/packages/babel-generator/test/fixtures/auto-indentation/hard-tab/expected.js:
--------------------------------------------------------------------------------
1 | function foo() {
2 | bar();
3 | if (foo) {
4 | bar();
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/packages/babel-generator/test/fixtures/comments/block-line-comment-with-retainlines-option/actual.js:
--------------------------------------------------------------------------------
1 | {
2 | print("hello");
3 | // comment
4 | }
5 |
--------------------------------------------------------------------------------
/packages/babel-generator/test/fixtures/comments/block-line-comment-with-retainlines-option/expected.js:
--------------------------------------------------------------------------------
1 | {
2 | print("hello");
3 | // comment
4 | }
5 |
--------------------------------------------------------------------------------
/packages/babel-generator/test/fixtures/flow/def-site-variance/expected.js:
--------------------------------------------------------------------------------
1 | class C<+T, -U> {}
2 | function f<+T, -U>() {}
3 | type T<+T, -U> = {};
4 |
--------------------------------------------------------------------------------
/packages/babel-generator/test/fixtures/minified/no-semicolon/expected.js:
--------------------------------------------------------------------------------
1 | function foo(){var x=1;y();if(bar){baz()}return}function bar(){for(;;);}
2 |
--------------------------------------------------------------------------------
/packages/babel-generator/test/fixtures/parentheses/expression/actual.js:
--------------------------------------------------------------------------------
1 | a && (a.b && a.b.c()) && function() {}() && {a: 1}.a
2 | !function () {}();
3 |
--------------------------------------------------------------------------------
/packages/babel-plugin-check-es2015-constants/test/fixtures/general/destructuring-assignment/options.json:
--------------------------------------------------------------------------------
1 | {
2 | "throws": "\"a\" is read-only"
3 | }
4 |
--------------------------------------------------------------------------------
/packages/babel-plugin-check-es2015-constants/test/fixtures/general/loop/actual.js:
--------------------------------------------------------------------------------
1 | for (const i = 0; i < 3; i = i + 1) {
2 | console.log(i);
3 | }
4 |
--------------------------------------------------------------------------------
/packages/babel-plugin-check-es2015-constants/test/fixtures/general/no-assignment/actual.js:
--------------------------------------------------------------------------------
1 | const MULTIPLIER = 5;
2 |
3 | MULTIPLIER = "overwrite";
4 |
--------------------------------------------------------------------------------
/packages/babel-plugin-check-es2015-constants/test/fixtures/general/no-assignment/options.json:
--------------------------------------------------------------------------------
1 | {
2 | "throws": "\"MULTIPLIER\" is read-only"
3 | }
4 |
--------------------------------------------------------------------------------
/packages/babel-plugin-check-es2015-constants/test/fixtures/general/no-classes/actual.js:
--------------------------------------------------------------------------------
1 | const MULTIPLIER = 5;
2 |
3 | class MULTIPLIER {
4 |
5 | }
6 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-async-to-module-method/test/fixtures/bluebird-coroutines/arrow-function/actual.js:
--------------------------------------------------------------------------------
1 | (async () => { await foo(); })()
2 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-es2015-classes/test/fixtures/regression/T6712/actual.js:
--------------------------------------------------------------------------------
1 | class A {
2 | foo() {
3 | const foo = 2;
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-es2015-modules-commonjs/test/fixtures/interop/overview/options.json:
--------------------------------------------------------------------------------
1 | {
2 | "plugins": ["external-helpers"]
3 | }
4 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-es2015-modules-commonjs/test/fixtures/strict/export-3/expected.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | var _foo = require('foo');
4 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-es2015-shorthand-properties/test/fixtures/shorthand-properties/shorthand-multiple/actual.js:
--------------------------------------------------------------------------------
1 | var coords = { x, y };
2 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-es2015-shorthand-properties/test/fixtures/shorthand-properties/shorthand-single/expected.js:
--------------------------------------------------------------------------------
1 | var coords = { x: x };
2 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-es2015-template-literals/test/fixtures/normal/multiline/actual.js:
--------------------------------------------------------------------------------
1 | var o = `wow
2 | this is
3 | actually multiline!`;
4 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-es2015-template-literals/test/fixtures/spec/multiline/actual.js:
--------------------------------------------------------------------------------
1 | var o = `wow
2 | this is
3 | actually multiline!`;
4 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-es2015-template-literals/test/fixtures/spec/multiple/expected.js:
--------------------------------------------------------------------------------
1 | var foo = "test " + String(foo) + " " + String(bar);
2 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-exponentiation-operator/test/fixtures/exponentian-operator/assignment/actual.js:
--------------------------------------------------------------------------------
1 | var num = 1;
2 | num **= 2;
3 | ;
4 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-export-extensions/test/fixtures/export-extensions/default-compound-es6/actual.js:
--------------------------------------------------------------------------------
1 | export v, { x, y as w } from "mod";
2 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-flow-comments/test/fixtures/flow-comments/optional-parameters/expected.js:
--------------------------------------------------------------------------------
1 | function multiply(num /*:: ?: number*/) {}
2 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-flow-strip-types/test/fixtures/strip-types/strip-call-properties/expected.js:
--------------------------------------------------------------------------------
1 | var a;
2 | var a;
3 | var a;
4 | var a;
5 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-flow-strip-types/test/fixtures/strip-types/strip-directive/expected.js:
--------------------------------------------------------------------------------
1 | /**
2 | * @providesModule Foo
3 | *
4 | */
5 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-flow-strip-types/test/fixtures/strip-types/type-comments/expected.js:
--------------------------------------------------------------------------------
1 | var x = 1;
2 | // comment 1
3 |
4 | var y = 2;
5 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-react-display-name/test/fixtures/display-name/object-property/actual.js:
--------------------------------------------------------------------------------
1 | ({
2 | foo: React.createClass({})
3 | });
4 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-react-display-name/test/fixtures/display-name/options.json:
--------------------------------------------------------------------------------
1 | {
2 | "plugins": ["transform-react-display-name"]
3 | }
4 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-react-inline-elements/test/fixtures/inline-elements/nested-html-elements/actual.js:
--------------------------------------------------------------------------------
1 | {bar}
;
2 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-react-inline-elements/test/fixtures/inline-elements/ref-deopt/expected.js:
--------------------------------------------------------------------------------
1 | React.createElement(Foo, { ref: "bar" });
2 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-react-inline-elements/test/fixtures/inline-elements/self-closing-component-with-props/actual.js:
--------------------------------------------------------------------------------
1 | ;
2 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-react-inline-elements/test/fixtures/inline-elements/self-closing-html-element-with-props/actual.js:
--------------------------------------------------------------------------------
1 | ;
2 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-react-inline-elements/test/fixtures/inline-elements/self-closing-html-element/expected.js:
--------------------------------------------------------------------------------
1 | babelHelpers.jsx("foo", {});
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-react-jsx/test/fixtures/react/.should-not-strip-nbsp-even-coupled-with-other-whitespace/actual.js:
--------------------------------------------------------------------------------
1 |
;
2 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-react-jsx/test/fixtures/react/should-allow-deeper-js-namespacing/actual.js:
--------------------------------------------------------------------------------
1 | ;
2 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-react-jsx/test/fixtures/react/should-allow-js-namespacing/expected.js:
--------------------------------------------------------------------------------
1 | React.createElement(Namespace.Component, null);
2 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-react-jsx/test/fixtures/react/should-quote-jsx-attributes/actual.js:
--------------------------------------------------------------------------------
1 | Button ;
2 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-strict-mode/test/fixtures/strict-mode/leading-comments-with-existing/actual.js:
--------------------------------------------------------------------------------
1 | // comments
2 | module.exports = {};
3 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-strict-mode/test/fixtures/strict-mode/undefined-this-root-call/expected.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 |
3 | undefined.foo();
4 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-strict-mode/test/fixtures/strict-mode/undefined-this-root-reference/expected.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 |
3 | undefined;
4 |
--------------------------------------------------------------------------------
/packages/babel-plugin-undeclared-variables-check/test/fixtures/validation.undeclared-variable-check/undeclared-shorthand-property/exec.js:
--------------------------------------------------------------------------------
1 | ({foo})
2 |
--------------------------------------------------------------------------------
/packages/babel-preset-es2015/test/fixtures/esnext/es6-templates/simple-interpolation.js:
--------------------------------------------------------------------------------
1 | var s = `1 + 1 = ${1 + 1}`;
2 | assert.equal(s, '1 + 1 = 2');
3 |
--------------------------------------------------------------------------------
/packages/babel-preset-es2015/test/fixtures/preset-options/loose/options.json:
--------------------------------------------------------------------------------
1 | {
2 | "presets": [
3 | ["es2015", { "loose": true }]
4 | ]
5 | }
6 |
--------------------------------------------------------------------------------
/packages/babel-preset-es2015/test/fixtures/traceur/Misc/PromiseResolve.js:
--------------------------------------------------------------------------------
1 | var p = Promise.resolve(42);
2 |
3 | assert.equal(p, Promise.resolve(p));
4 |
--------------------------------------------------------------------------------
/packages/babel-preset-es2015/test/fixtures/traceur/Modules/resources/export-star-as.js:
--------------------------------------------------------------------------------
1 | export * as a from './m.js';
2 | export * as b from './n.js';
3 |
--------------------------------------------------------------------------------
/packages/babel-register/src/browser.js:
--------------------------------------------------------------------------------
1 | // required to safely use babel/register within a browserify codebase
2 |
3 | export default function () {}
4 |
--------------------------------------------------------------------------------
/doc/ast/spec.md:
--------------------------------------------------------------------------------
1 | The [AST specification](https://github.com/babel/babylon/blob/master/ast/spec.md) has been moved to the Babylon repo, `babel/babylon`.
2 |
--------------------------------------------------------------------------------
/packages/babel-cli/test/fixtures/babel-node/--extensions/options.json:
--------------------------------------------------------------------------------
1 | {
2 | "args": ["foo", "--extensions", ".bar"],
3 | "stdout": "[ 1, 4, 9 ]"
4 | }
5 |
--------------------------------------------------------------------------------
/packages/babel-cli/test/fixtures/babel/filenames --out-file/options.json:
--------------------------------------------------------------------------------
1 | {
2 | "args": ["script.js", "script2.js", "--out-file", "script3.js"]
3 | }
4 |
--------------------------------------------------------------------------------
/packages/babel-generator/test/fixtures/auto-indentation/soft-tab-2/actual.js:
--------------------------------------------------------------------------------
1 | function foo() {
2 | bar();
3 | if (foo) {
4 | bar();
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/packages/babel-generator/test/fixtures/auto-indentation/soft-tab-2/expected.js:
--------------------------------------------------------------------------------
1 | function foo() {
2 | bar();
3 | if (foo) {
4 | bar();
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/packages/babel-generator/test/fixtures/edgecase/one-property-with-line-terminator/actual.js:
--------------------------------------------------------------------------------
1 | dejavu.Class.declare({
2 | method2: function () {}
3 | });
4 |
--------------------------------------------------------------------------------
/packages/babel-generator/test/fixtures/edgecase/one-property-with-line-terminator/expected.js:
--------------------------------------------------------------------------------
1 | dejavu.Class.declare({
2 | method2: function () {}
3 | });
4 |
--------------------------------------------------------------------------------
/packages/babel-generator/test/fixtures/flow/qualified-generic-type/actual.js:
--------------------------------------------------------------------------------
1 | var a: A.B;
2 | var a: A.B.C;
3 | var a: A.B;
4 | var a: typeof A.B;
5 |
--------------------------------------------------------------------------------
/packages/babel-generator/test/fixtures/flow/qualified-generic-type/expected.js:
--------------------------------------------------------------------------------
1 | var a: A.B;
2 | var a: A.B.C;
3 | var a: A.B;
4 | var a: typeof A.B;
5 |
--------------------------------------------------------------------------------
/packages/babel-generator/test/fixtures/parentheses/expression/expected.js:
--------------------------------------------------------------------------------
1 | a && a.b && a.b.c() && function () {}() && { a: 1 }.a;
2 | !function () {}();
3 |
--------------------------------------------------------------------------------
/packages/babel-generator/test/fixtures/types/AssignmentExpression-BinaryExpression-LogicalExpression/actual.js:
--------------------------------------------------------------------------------
1 | foo === bar;
2 | foo + bar;
3 | foo = bar;
4 |
--------------------------------------------------------------------------------
/packages/babel-generator/test/fixtures/types/CallExpression/actual.js:
--------------------------------------------------------------------------------
1 | foo();
2 | foo("foo");
3 | foo("foo", "bar");
4 | foo(bar());
5 | foo(bar("test"));
6 |
--------------------------------------------------------------------------------
/packages/babel-generator/test/fixtures/types/ForStatement/actual.js:
--------------------------------------------------------------------------------
1 | for (var i = 0;;) {}
2 | for (var i = 0; i < 5;) {}
3 | for (var i = 0; i < 5; i++) {}
4 |
--------------------------------------------------------------------------------
/packages/babel-plugin-check-es2015-constants/test/fixtures/general/no-classes/options.json:
--------------------------------------------------------------------------------
1 | {
2 | "throws": "Duplicate declaration \"MULTIPLIER\""
3 | }
4 |
--------------------------------------------------------------------------------
/packages/babel-plugin-check-es2015-constants/test/fixtures/general/no-declaration/actual.js:
--------------------------------------------------------------------------------
1 | const MULTIPLIER = 5;
2 |
3 | var MULTIPLIER = "overwrite";
4 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-async-to-module-method/test/fixtures/bluebird-coroutines/class/options.json:
--------------------------------------------------------------------------------
1 | {
2 | "plugins": ["external-helpers"]
3 | }
4 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-es2015-classes/test/fixtures/spec/instance-method/actual.js:
--------------------------------------------------------------------------------
1 | class Test {
2 | test() {
3 | return 5 + 5;
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-es2015-computed-properties/test/fixtures/loose/coerce/actual.js:
--------------------------------------------------------------------------------
1 | var obj = {
2 | foo: "bar",
3 | [bar]: "foo"
4 | };
5 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-es2015-computed-properties/test/fixtures/spec/argument/expected.js:
--------------------------------------------------------------------------------
1 | foo(babelHelpers.defineProperty({}, bar, "foobar"));
2 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-es2015-computed-properties/test/fixtures/spec/assignment/expected.js:
--------------------------------------------------------------------------------
1 | foo = babelHelpers.defineProperty({}, bar, "foobar");
2 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-es2015-computed-properties/test/fixtures/spec/ignore-symbol/actual.js:
--------------------------------------------------------------------------------
1 | var foo = {
2 | [Symbol.iterator]: "foobar"
3 | };
4 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-es2015-destructuring/test/fixtures/destructuring/object-basic/actual.js:
--------------------------------------------------------------------------------
1 | var coords = [1, 2];
2 | var { x, y } = coords;
3 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-es2015-duplicate-keys/test/fixtures/combination/dupes/expected.js:
--------------------------------------------------------------------------------
1 | var x = babelHelpers.defineProperty({ a: 5 }, "a", 6);
2 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-es2015-for-of/test/fixtures/loose/options.json:
--------------------------------------------------------------------------------
1 | {
2 | "plugins": [["transform-es2015-for-of", { "loose": true }]]
3 | }
4 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-es2015-function-name/test/fixtures/function-name/.smoke/options.json:
--------------------------------------------------------------------------------
1 | {
2 | "plugins": ["transform-decorators"]
3 | }
4 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-es2015-modules-amd/test/fixtures/amd/imports-mixing/actual.js:
--------------------------------------------------------------------------------
1 | import foo, {baz as xyz} from "foo";
2 |
3 | foo;
4 | xyz;
5 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-es2015-modules-commonjs/test/fixtures/interop/imports-default/options.json:
--------------------------------------------------------------------------------
1 | {
2 | "plugins": ["external-helpers"]
3 | }
4 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-es2015-modules-commonjs/test/fixtures/interop/imports-mixing/options.json:
--------------------------------------------------------------------------------
1 | {
2 | "plugins": ["external-helpers"]
3 | }
4 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-es2015-modules-commonjs/test/fixtures/strict/export/expected.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 |
3 | exports.foo = foo;
4 | function foo() {}
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-es2015-shorthand-properties/test/fixtures/shorthand-properties/shorthand-multiple/expected.js:
--------------------------------------------------------------------------------
1 | var coords = { x: x, y: y };
2 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-es2015-spread/test/fixtures/spread/contexted-computed-method-call-multiple-args/actual.js:
--------------------------------------------------------------------------------
1 | obj[method](foo, bar, ...args);
2 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-es2015-sticky-regex/test/fixtures/sticky-regex/options.json:
--------------------------------------------------------------------------------
1 | {
2 | "plugins": ["transform-es2015-sticky-regex"]
3 | }
4 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-es2015-template-literals/test/fixtures/normal/options.json:
--------------------------------------------------------------------------------
1 | {
2 | "plugins": ["transform-es2015-template-literals"]
3 | }
4 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-es2015-typeof-symbol/test/fixtures/symbols/shadow/options.json:
--------------------------------------------------------------------------------
1 | {
2 | "plugins": ["transform-es2015-typeof-symbol"]
3 | }
4 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-es2015-unicode-regex/test/fixtures/unicode-regex/options.json:
--------------------------------------------------------------------------------
1 | {
2 | "plugins": ["transform-es2015-unicode-regex"]
3 | }
4 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-flow-comments/test/fixtures/flow-comments/optional-type/actual.js:
--------------------------------------------------------------------------------
1 | function foo(bar?) {}
2 | function foo2(bar?: string) {}
3 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-object-rest-spread/test/fixtures/object-rest-spread/options.json:
--------------------------------------------------------------------------------
1 | {
2 | "plugins": ["transform-object-rest-spread"]
3 | }
4 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-react-inline-elements/test/fixtures/inline-elements/key-computed/actual.js:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-react-inline-elements/test/fixtures/inline-elements/nested/actual.js:
--------------------------------------------------------------------------------
1 | {bar}
2 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-react-jsx-compat/test/fixtures/react-compat/convert-tags/actual.js:
--------------------------------------------------------------------------------
1 | var x =
;
2 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-react-jsx-self/test/fixtures/react-source/options.json:
--------------------------------------------------------------------------------
1 | {
2 | "plugins": ["syntax-jsx", "transform-react-jsx-self"]
3 | }
4 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-react-jsx/test/fixtures/react/jsx-with-retainlines-option/expected.js:
--------------------------------------------------------------------------------
1 | var div = React.createElement("div", null, "test");
2 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-react-jsx/test/fixtures/react/should-allow-js-namespacing/blacklist.js:
--------------------------------------------------------------------------------
1 | React.createElement(Namespace.Component, null);
2 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-react-jsx/test/fixtures/react/should-handle-has-own-property-correctly/actual.js:
--------------------------------------------------------------------------------
1 | testing ;
2 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-react-jsx/test/fixtures/react/should-transform-known-hyphenated-tags/expected.js:
--------------------------------------------------------------------------------
1 | React.createElement("font-face", null);
2 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-runtime/test/fixtures/runtime/full/options.json:
--------------------------------------------------------------------------------
1 | {
2 | "plugins": ["transform-runtime", "transform-regenerator"]
3 | }
4 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-strict-mode/test/fixtures/auxiliary-comment/use-strict-add/expected.js:
--------------------------------------------------------------------------------
1 | /*before*/"use strict";
2 |
3 | /*after*/foo();
4 |
--------------------------------------------------------------------------------
/packages/babel-preset-es2015/test/fixtures/esnext/es6-arrow-functions/empty-arrow-function.js:
--------------------------------------------------------------------------------
1 | var empty = () => {};
2 | assert.equal(empty(), undefined);
3 |
--------------------------------------------------------------------------------
/packages/babel-preset-es2015/test/fixtures/esnext/es6-computed-properties/options.json:
--------------------------------------------------------------------------------
1 | {
2 | "plugins": ["transform-es2015-computed-properties"]
3 | }
4 |
--------------------------------------------------------------------------------
/packages/babel-preset-es2015/test/fixtures/esnext/es6-templates/multi-line.js:
--------------------------------------------------------------------------------
1 | var s = `a
2 | b
3 | c`;
4 | assert.equal(s, 'a\n b\n c');
5 |
--------------------------------------------------------------------------------
/packages/babel-preset-es2015/test/fixtures/traceur/Modules/ImportAsExportAs.module.js:
--------------------------------------------------------------------------------
1 | import * as m from './resources/m3.js';
2 | assert.equal(m.x, 'z');
3 |
--------------------------------------------------------------------------------
/packages/babel-preset-es2015/test/fixtures/traceur/Modules/resources/default-function-expression.js:
--------------------------------------------------------------------------------
1 | export default function() {
2 | return 456;
3 | }
4 |
--------------------------------------------------------------------------------
/packages/babel-preset-es2015/test/fixtures/traceur/Modules/resources/export-conflict.js:
--------------------------------------------------------------------------------
1 | export var a = 'a';
2 | export * from './a.js'; // also exports a
3 |
--------------------------------------------------------------------------------
/packages/babel-preset-es2015/test/fixtures/traceur/TemplateLiterals/resources/m.js:
--------------------------------------------------------------------------------
1 | import {f} from './f.js';
2 |
3 | assert.equal('a', (f `a`)[0][0]);
4 |
--------------------------------------------------------------------------------
/packages/babel-preset-es2015/test/fixtures/traceur/TemplateLiterals/resources/n.js:
--------------------------------------------------------------------------------
1 | import {f} from './f.js';
2 |
3 | assert.equal('b', (f `b`)[0][0]);
4 |
--------------------------------------------------------------------------------
/packages/README.md:
--------------------------------------------------------------------------------
1 | # Woah, what's going on here?
2 |
3 | A monorepo, muhahahahahaha. See the [monorepo design doc](/doc/design/monorepo.md) for reasoning.
4 |
--------------------------------------------------------------------------------
/packages/babel-cli/test/fixtures/babel/dir --out-dir/out-files/lib/foo.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 |
3 | arr.map(function (x) {
4 | return x * MULTIPLIER;
5 | });
6 |
--------------------------------------------------------------------------------
/packages/babel-cli/test/fixtures/babel/stdin --out-file/out-files/script.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 |
3 | arr.map(function (x) {
4 | return x * MULTIPLIER;
5 | });
6 |
--------------------------------------------------------------------------------
/packages/babel-core/test/fixtures/transformation/misc/enforce-newline-modules-blacklist/actual.js:
--------------------------------------------------------------------------------
1 | export function foo() {}
2 |
3 | export function bar() {}
4 |
--------------------------------------------------------------------------------
/packages/babel-core/test/fixtures/transformation/misc/enforce-newline-modules-blacklist/expected.js:
--------------------------------------------------------------------------------
1 | export function foo() {}
2 |
3 | export function bar() {}
4 |
--------------------------------------------------------------------------------
/packages/babel-core/test/fixtures/transformation/misc/regression-1130/actual.js:
--------------------------------------------------------------------------------
1 | function A() {
2 | let a;
3 | }
4 |
5 | function B() {
6 | let a;
7 | }
8 |
--------------------------------------------------------------------------------
/packages/babel-core/test/transformation.js:
--------------------------------------------------------------------------------
1 | require("babel-helper-transform-fixture-test-runner")(__dirname + "/fixtures/transformation", "transformation");
2 |
--------------------------------------------------------------------------------
/packages/babel-generator/test/fixtures/compact/binary-expressions/expected.js:
--------------------------------------------------------------------------------
1 | 1*1;1&&1;1+ +1;x+ ++y;a+ +b*2;a+ +b*2*2*2;a- -b;1+-b;1- --b;a- -b*2;1- --t*t;
2 |
--------------------------------------------------------------------------------
/packages/babel-generator/test/fixtures/edgecase/return-with-retainlines-and-compact-option/expected.js:
--------------------------------------------------------------------------------
1 | function foo(l){
2 | return(
3 |
4 | l);
5 |
6 | }
7 |
--------------------------------------------------------------------------------
/packages/babel-generator/test/fixtures/minified/arrow-functions/expected.js:
--------------------------------------------------------------------------------
1 | var foo=(arg1,arg2)=>{arg1;arg2};var foo2=(arg1,arg2)=>{arg1};var foo3=arg1=>arg1;
2 |
--------------------------------------------------------------------------------
/packages/babel-generator/test/fixtures/minified/new-expression/expected.js:
--------------------------------------------------------------------------------
1 | new X;new Y()();new F().z;new new x();new new x()(a);new new x(a);new new x(a)(a);
2 |
--------------------------------------------------------------------------------
/packages/babel-generator/test/fixtures/types/AssignmentExpression-BinaryExpression-LogicalExpression/expected.js:
--------------------------------------------------------------------------------
1 | foo === bar;
2 | foo + bar;
3 | foo = bar;
4 |
--------------------------------------------------------------------------------
/packages/babel-generator/test/fixtures/types/BindExpression/actual.js:
--------------------------------------------------------------------------------
1 | ::foo.bar.foo;
2 | ::foo.bar["foo"];
3 |
4 | ctx::foo.bar.foo;
5 | ctx::foo.bar["foo"];
6 |
--------------------------------------------------------------------------------
/packages/babel-generator/test/fixtures/types/CallExpression/expected.js:
--------------------------------------------------------------------------------
1 | foo();
2 | foo("foo");
3 | foo("foo", "bar");
4 | foo(bar());
5 | foo(bar("test"));
6 |
--------------------------------------------------------------------------------
/packages/babel-generator/test/fixtures/types/ForOfStatement/actual.js:
--------------------------------------------------------------------------------
1 | for (var x of nums) {}
2 |
3 | for (var x of nums) {
4 | console.log(x * x);
5 | }
6 |
--------------------------------------------------------------------------------
/packages/babel-generator/test/fixtures/types/ForOfStatement/expected.js:
--------------------------------------------------------------------------------
1 | for (var x of nums) {}
2 |
3 | for (var x of nums) {
4 | console.log(x * x);
5 | }
6 |
--------------------------------------------------------------------------------
/packages/babel-generator/test/fixtures/types/ForStatement/expected.js:
--------------------------------------------------------------------------------
1 | for (var i = 0;;) {}
2 | for (var i = 0; i < 5;) {}
3 | for (var i = 0; i < 5; i++) {}
4 |
--------------------------------------------------------------------------------
/packages/babel-plugin-check-es2015-constants/test/fixtures/general/block-scoped/exec.js:
--------------------------------------------------------------------------------
1 | const bar = 123;
2 | { const bar = 456; }
3 | assert.equal(bar, 123);
4 |
--------------------------------------------------------------------------------
/packages/babel-plugin-check-es2015-constants/test/fixtures/general/no-declaration/options.json:
--------------------------------------------------------------------------------
1 | {
2 | "throws": "Duplicate declaration \"MULTIPLIER\""
3 | }
4 |
--------------------------------------------------------------------------------
/packages/babel-plugin-check-es2015-constants/test/fixtures/general/no-functions/actual.js:
--------------------------------------------------------------------------------
1 | const MULTIPLIER = 5;
2 |
3 | function MULTIPLIER() {
4 |
5 | }
6 |
--------------------------------------------------------------------------------
/packages/babel-plugin-check-es2015-constants/test/fixtures/general/no-functions/options.json:
--------------------------------------------------------------------------------
1 | {
2 | "throws": "Duplicate declaration \"MULTIPLIER\""
3 | }
4 |
--------------------------------------------------------------------------------
/packages/babel-plugin-syntax-trailing-function-commas/test/fixtures/trailing-function-commas/call/actual.js:
--------------------------------------------------------------------------------
1 | Math.max(1,
2 | 2,
3 | 3,
4 | );
5 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-async-to-generator/test/fixtures/async-to-generator/no-parameters-and-no-id/actual.js:
--------------------------------------------------------------------------------
1 | foo(async function () {
2 |
3 | });
4 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-do-expressions/test/fixtures/do-expressions/if.js:
--------------------------------------------------------------------------------
1 | assert.equal(do {
2 | if (true) {
3 | "bar";
4 | }
5 | }, "bar");
6 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-es2015-arrow-functions/test/fixtures/arrow-functions/expression/expected.js:
--------------------------------------------------------------------------------
1 | arr.map(function (x) {
2 | return x * x;
3 | });
4 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-es2015-arrow-functions/test/fixtures/arrow-functions/inside-call/expected.js:
--------------------------------------------------------------------------------
1 | arr.map(function (i) {
2 | return i + 1;
3 | });
4 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-es2015-classes/test/fixtures/spec/instance-getter/actual.js:
--------------------------------------------------------------------------------
1 | class Test {
2 | get test() {
3 | return 5 + 5;
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-es2015-computed-properties/test/fixtures/loose/ignore-symbol/actual.js:
--------------------------------------------------------------------------------
1 | var foo = {
2 | [Symbol.iterator]: "foobar"
3 | };
4 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-es2015-computed-properties/test/fixtures/loose/two/actual.js:
--------------------------------------------------------------------------------
1 | var obj = {
2 | first: "first",
3 | [second]: "second",
4 | };
5 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-es2015-computed-properties/test/fixtures/spec/single/expected.js:
--------------------------------------------------------------------------------
1 | var obj = babelHelpers.defineProperty({}, "x" + foo, "heh");
2 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-es2015-computed-properties/test/fixtures/spec/this/expected.js:
--------------------------------------------------------------------------------
1 | var obj = babelHelpers.defineProperty({}, "x" + foo.bar, "heh");
2 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-es2015-computed-properties/test/fixtures/spec/variable/expected.js:
--------------------------------------------------------------------------------
1 | var foo = babelHelpers.defineProperty({}, bar, "foobar");
2 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-es2015-destructuring/test/fixtures/destructuring/export-variable/actual.js:
--------------------------------------------------------------------------------
1 |
2 | export let {a, b, c: {d, e: {f = 4}}} = {};
3 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-es2015-destructuring/test/fixtures/destructuring/known-array/expected.js:
--------------------------------------------------------------------------------
1 | var z = [];
2 | var x = z[0];
3 | var y = z.slice(1);
4 |
--------------------------------------------------------------------------------