1 line
1.5 KiB
Plaintext
1 line
1.5 KiB
Plaintext
{"version":3,"file":"getBabelPreset.js","sourceRoot":"","sources":["../src/getBabelPreset.ts"],"names":[],"mappings":";;AAAA,MAAM,wBAAwB,GAAG,GAAG,EAAE,CAAC,CAAC;IACtC,OAAO,EAAE;QACP;YACE,6GAA6G;YAC7G,4CAA4C;YAC5C,OAAO,CAAC,mBAAmB,CAAC;YAC5B;gBACE,OAAO,EAAE;oBACP,yCAAyC;oBACzC,IAAI,EAAE,IAAI;iBACX;gBACD,8BAA8B;gBAC9B,OAAO,EAAE,UAAU;aAEpB;SACF;QACD,qBAAqB;QACrB,OAAO,CAAC,0BAA0B,CAAC;KACpC;IACD,OAAO,EAAE;QACP,mCAAmC;QACnC,qGAAqG;QACrG,OAAO,CAAC,yCAAyC,CAAC;KACnD;CACF,CAAC,CAAC;AAEH,SAAgB,cAAc;IAC5B,kEAAkE;IAClE,OAAO,wBAAwB,CAAC;AAClC,CAAC;AAHD,wCAGC","sourcesContent":["const defaultConfigBabelPreset = () => ({\n presets: [\n [\n // Supports nullish-coalescing, optional-chaining, optional-catch-binding, object-rest-spread, dynamic-import\n // on at least node 10 (oldest LTS version).\n require('@babel/preset-env'),\n {\n targets: {\n // Use the user's current version of node\n node: true,\n },\n // Remove import/export syntax\n modules: 'commonjs',\n // debug: true,\n },\n ],\n // Support TypeScript\n require('@babel/preset-typescript'),\n ],\n plugins: [\n // Support static class properties.\n // We don't support all experimental features (shippedProposals), this is purely for legacy purposes.\n require('@babel/plugin-proposal-class-properties'),\n ],\n});\n\nexport function getBabelPreset() {\n // TODO: Support overriding this with `babel.app-config.config.js`\n return defaultConfigBabelPreset;\n}\n"]} |