* docs: add DecimalLiteral to AST spec * add decimal support * fix: throw invalid decimal on start * add DecimalLiteral type definitions * update parser typings * add generator support * add syntax-decimal plugin * Add syntax-decimal to babel-standalone * add syntax-decimal to missing plugin helpers * fix incorrect test macro
14 lines
252 B
JavaScript
14 lines
252 B
JavaScript
import { declare } from "@babel/helper-plugin-utils";
|
|
|
|
export default declare(api => {
|
|
api.assertVersion(7);
|
|
|
|
return {
|
|
name: "syntax-decimal",
|
|
|
|
manipulateOptions(opts, parserOpts) {
|
|
parserOpts.plugins.push("decimal");
|
|
},
|
|
};
|
|
});
|