Debian Codegraph @

packages/babel-standalone/src/preset-stage-0.ts

raw symbols SCIP
1 import presetStage1 from "./preset-stage-1";
2 import { proposalFunctionBind } from "./generated/plugins";
3
4 export default (_: any, opts: any = {}) => {
5 const {
6 loose = false,
7 useBuiltIns = false,
8 decoratorsLegacy,
9 decoratorsVersion,
10 decoratorsBeforeExport,
11 pipelineProposal,
12 pipelineTopicToken,
13 importAssertionsVersion = "september-2020",
14 } = opts;
15
16 return {
17 presets: [
18 [
19 presetStage1,
20 {
21 loose,
22 useBuiltIns,
23 decoratorsLegacy,
24 decoratorsVersion,
25 decoratorsBeforeExport,
26 pipelineProposal,
27 pipelineTopicToken,
28 importAssertionsVersion,
29 },
30 ],
31 ],
32 plugins: [proposalFunctionBind],
33 };
34 };