-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
104 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
// all babel proposal plugins https://github.com/babel/babel/tree/master/packages (preset-stage-n packages are depreacted https://babeljs.io/docs/en/next/babel-preset-stage-1) | ||
// if there are new ones, feel free to add them | ||
exports.transformPlugins = [ | ||
'@babel/plugin-proposal-async-generator-functions', | ||
'@babel/plugin-transform-typescript', | ||
'@babel/plugin-transform-modules-commonjs', // required by dynamicImport | ||
['@babel/plugin-proposal-decorators', { decoratorsBeforeExport: false }], // must be before class-properties https://babeljs.io/docs/en/babel-plugin-proposal-decorators#note-compatibility-with-babel-plugin-proposal-class-properties | ||
'@babel/plugin-proposal-class-properties', | ||
'@babel/plugin-proposal-do-expressions', | ||
'@babel/plugin-proposal-export-default-from', | ||
'@babel/plugin-proposal-export-namespace-from', | ||
'@babel/plugin-proposal-function-sent', | ||
'@babel/plugin-proposal-function-bind', | ||
'@babel/plugin-proposal-json-strings', | ||
'@babel/plugin-proposal-logical-assignment-operators', | ||
'@babel/plugin-proposal-nullish-coalescing-operator', | ||
'@babel/plugin-proposal-numeric-separator', | ||
'@babel/plugin-proposal-optional-catch-binding', | ||
'@babel/plugin-proposal-optional-chaining', | ||
'@babel/plugin-proposal-partial-application', | ||
['@babel/plugin-proposal-pipeline-operator', { proposal: 'minimal' }], | ||
'@babel/plugin-proposal-throw-expressions', | ||
'@babel/plugin-proposal-dynamic-import', | ||
'@babel/plugin-syntax-bigint', | ||
'@babel/plugin-syntax-import-meta', | ||
'@babel/plugin-proposal-unicode-property-regex' | ||
]; | ||
|
||
|
||
// @babel/parser plugins https://babeljs.io/docs/en/next/babel-parser.html#ecmascript-proposals-https-githubcom-babel-proposals | ||
exports.parserPlugins = [ | ||
'asyncGenerators', | ||
'bigInt', | ||
['decorators', { decoratorsBeforeExport: true }], | ||
'classProperties', | ||
'classPrivateProperties', | ||
'classPrivateMethods', | ||
'doExpressions', | ||
'dynamicImport', | ||
'exportDefaultFrom', | ||
'exportNamespaceFrom', | ||
'functionBind', | ||
'functionSent', | ||
'importMeta', | ||
'logicalAssignment', | ||
'nullishCoalescingOperator', | ||
'numericSeparator', | ||
// 'objectRestSpread', // no need, node has it since a long time | ||
'optionalCatchBinding', | ||
'optionalChaining', | ||
'partialApplication', | ||
['pipelineOperator', { proposal: 'minimal' }], | ||
'throwExpressions' | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters