@powerlines/plugin-babel 0.13.64 → 0.13.66
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +1 -0
- package/dist/index.mjs +1 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +13 -11
package/dist/index.cjs
CHANGED
|
@@ -56,6 +56,7 @@ const plugin = (options = {}) => {
|
|
|
56
56
|
id
|
|
57
57
|
};
|
|
58
58
|
if (!this.config.babel?.skipConfigResolution) {
|
|
59
|
+
if (!require_helpers_filters.isDuplicatePlugin(plugins, "@babel/plugin-transform-json-modules")) plugins.push("@babel/plugin-transform-json-modules");
|
|
59
60
|
if (/^(?:m|c)?tsx?$/.test((0, _stryke_path_file_path_fns.findFileExtensionSafe)(id, { fullExtension: true })) && !require_helpers_filters.isDuplicatePlugin(plugins, "@babel/plugin-syntax-typescript") && !require_helpers_filters.isDuplicatePreset(presets, "@babel/preset-typescript")) plugins.unshift("@babel/plugin-syntax-typescript");
|
|
60
61
|
if (/^(?:t|j)sx$/.test((0, _stryke_path_file_path_fns.findFileExtensionSafe)(id, { fullExtension: true })) && !require_helpers_filters.isDuplicatePlugin(plugins, "@babel/plugin-syntax-jsx") && !require_helpers_filters.isDuplicatePreset(presets, "@babel/preset-react")) plugins.unshift("@babel/plugin-syntax-jsx");
|
|
61
62
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -53,6 +53,7 @@ const plugin = (options = {}) => {
|
|
|
53
53
|
id
|
|
54
54
|
};
|
|
55
55
|
if (!this.config.babel?.skipConfigResolution) {
|
|
56
|
+
if (!isDuplicatePlugin(plugins, "@babel/plugin-transform-json-modules")) plugins.push("@babel/plugin-transform-json-modules");
|
|
56
57
|
if (/^(?:m|c)?tsx?$/.test(findFileExtensionSafe(id, { fullExtension: true })) && !isDuplicatePlugin(plugins, "@babel/plugin-syntax-typescript") && !isDuplicatePreset(presets, "@babel/preset-typescript")) plugins.unshift("@babel/plugin-syntax-typescript");
|
|
57
58
|
if (/^(?:t|j)sx$/.test(findFileExtensionSafe(id, { fullExtension: true })) && !isDuplicatePlugin(plugins, "@babel/plugin-syntax-jsx") && !isDuplicatePreset(presets, "@babel/preset-react")) plugins.unshift("@babel/plugin-syntax-jsx");
|
|
58
59
|
}
|
package/dist/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","names":[],"sources":["../src/index.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport type { PluginItem, PresetItem } from \"@babel/core\";\nimport { transformAsync } from \"@babel/core\";\nimport { omit } from \"@stryke/helpers/omit\";\nimport { findFileExtensionSafe } from \"@stryke/path/file-path-fns\";\nimport { isEmptyObject } from \"@stryke/type-checks/is-empty-object\";\nimport { isSetObject } from \"@stryke/type-checks/is-set-object\";\nimport defu from \"defu\";\nimport { isSet } from \"node:util/types\";\nimport type { Plugin } from \"powerlines\";\nimport { removeVirtualPrefix } from \"powerlines/plugin-utils\";\nimport { isDuplicatePlugin, isDuplicatePreset } from \"./helpers/filters\";\nimport {\n getUniquePlugins,\n getUniquePresets,\n resolveBabelPlugin,\n resolveBabelPreset\n} from \"./helpers/options\";\nimport type {\n ResolvedBabelTransformPluginOptions,\n ResolvedBabelTransformPresetOptions\n} from \"./types/config\";\nimport type { BabelPluginContext, BabelPluginOptions } from \"./types/plugin\";\n\nexport * from \"./helpers\";\nexport type * from \"./types\";\n\ndeclare module \"powerlines\" {\n interface Config {\n babel?: BabelPluginOptions;\n }\n}\n\n/**\n * Babel plugin for Powerlines.\n *\n * @param options - The Babel plugin user configuration options.\n * @returns A Powerlines plugin that integrates Babel transformations.\n */\nexport const plugin = <\n TContext extends BabelPluginContext = BabelPluginContext\n>(\n options: BabelPluginOptions = {}\n): Plugin<TContext> => {\n return {\n name: \"babel\",\n config() {\n if (!isSetObject(options)) {\n return undefined;\n }\n\n return {\n babel: options\n };\n },\n configResolved: {\n order: \"pre\",\n handler() {\n this.config.babel = defu(this.config.babel ?? {}, {\n plugins: [],\n presets: []\n });\n\n this.config.babel.plugins = getUniquePlugins(this.config.babel.plugins);\n this.config.babel.presets = getUniquePresets(this.config.babel.presets);\n }\n },\n async transform(code: string, id: string) {\n if (\n // isParentPath(id, this.powerlinesPath) ||\n code.includes(\"/* @powerlines-ignore */\") ||\n code.includes(\"/* @powerlines-disable */\")\n ) {\n this.trace(`Skipping Babel transformation for: ${id}`);\n\n return { code, id };\n }\n\n const plugins = getUniquePlugins(\n this.config.babel.plugins\n .map(plugin => resolveBabelPlugin(this, code, id, plugin))\n .filter(Boolean) as ResolvedBabelTransformPluginOptions[]\n );\n const presets = getUniquePresets(\n this.config.babel.presets\n .map(preset => resolveBabelPreset(this, code, id, preset))\n .filter(Boolean) as ResolvedBabelTransformPresetOptions[]\n );\n\n if (\n Array.isArray(plugins) &&\n plugins.length === 0 &&\n Array.isArray(presets) &&\n presets.length === 0\n ) {\n return { code, id };\n }\n\n if (!this.config.babel?.skipConfigResolution) {\n if (\n /^(?:m|c)?tsx?$/.test(\n findFileExtensionSafe(id, {\n fullExtension: true\n })\n ) &&\n !isDuplicatePlugin(plugins, \"@babel/plugin-syntax-typescript\") &&\n !isDuplicatePreset(presets, \"@babel/preset-typescript\")\n ) {\n plugins.unshift(\"@babel/plugin-syntax-typescript\");\n }\n\n if (\n /^(?:t|j)sx$/.test(\n findFileExtensionSafe(id, {\n fullExtension: true\n })\n ) &&\n !isDuplicatePlugin(plugins, \"@babel/plugin-syntax-jsx\") &&\n !isDuplicatePreset(presets, \"@babel/preset-react\")\n ) {\n plugins.unshift(\"@babel/plugin-syntax-jsx\");\n }\n }\n\n this.trace(\n `Running babel transformations with ${plugins.length} plugins and ${\n presets.length\n } presets for file: ${id}`\n );\n\n const result = await transformAsync(code, {\n cwd: this.config.cwd,\n highlightCode: true,\n code: true,\n ast: false,\n cloneInputAst: false,\n comments: true,\n sourceType: \"module\",\n configFile: false,\n babelrc: false,\n envName: this.config.mode,\n caller: {\n name: this.config.framework?.name || \"powerlines\"\n },\n ...omit(this.config.babel ?? {}, [\n \"skipConfigResolution\",\n \"skipTransform\"\n ]),\n filename: removeVirtualPrefix(id),\n plugins: plugins\n .map(plugin => {\n if (Array.isArray(plugin) && plugin.length >= 2) {\n if (\n plugin\n .slice(1)\n .every(item => !isSet(item) || isEmptyObject(item))\n ) {\n return plugin[0];\n }\n\n return [\n plugin[0],\n plugin.length > 1 && plugin[1] ? plugin[1] : {}\n ];\n }\n\n return plugin;\n })\n .filter(Boolean) as PluginItem<object>[],\n presets: presets\n .map(preset => {\n if (Array.isArray(preset) && preset.length >= 2) {\n if (\n preset\n .slice(1)\n .every(item => !isSet(item) || isEmptyObject(item))\n ) {\n return preset[0];\n }\n\n return [\n preset[0],\n preset.length > 1 && preset[1] ? preset[1] : {}\n ];\n }\n\n return preset;\n })\n .filter(Boolean) as PresetItem<object>[]\n });\n if (!result?.code) {\n throw new Error(`Powerlines - Babel plugin failed to compile ${id}`);\n }\n\n this.trace(`Completed babel transformations for file: ${id}`);\n\n return {\n code: this.config.babel?.skipTransform ? code : result.code,\n id\n };\n }\n } as Plugin<TContext>;\n};\n\nexport default plugin;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAwDA,MAAa,UAGX,UAA8B,CAAC,MACV;CACrB,OAAO;EACL,MAAM;EACN,SAAS;GACP,IAAI,CAAC,YAAY,OAAO,GACtB;GAGF,OAAO,EACL,OAAO,QACT;EACF;EACA,gBAAgB;GACd,OAAO;GACP,UAAU;IACR,KAAK,O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S,MAAM,eAAe,MAAM;IACxC,KAAK,KAAK,OAAO;IACjB,eAAe;IACf,MAAM;IACN,KAAK;IACL,eAAe;IACf,UAAU;IACV,YAAY;IACZ,YAAY;IACZ,SAAS;IACT,SAAS,KAAK,OAAO;IACrB,QAAQ,EACN,MAAM,KAAK,OAAO,WAAW,QAAQ,aACvC;IACA,GAAG,KAAK,KAAK,OAAO,SAAS,CAAC,GAAG,CAC/B,wBACA,eACF,CAAC;IACD,UAAU,oBAAoB,EAAE;IAChC,SAAS,QACN,KAAI,WAAU;KACb,IAAI,MAAM,QAAQ,MAAM,KAAK,OAAO,UAAU,GAAG;MAC/C,IACE,OACG,MAAM,CAAC,EACP,OAAM,SAAQ,CAAC,MAAM,IAAI,KAAK,cAAc,IAAI,CAAC,GAEpD,OAAO,OAAO;MAGhB,OAAO,CACL,OAAO,IACP,OAAO,SAAS,KAAK,OAAO,KAAK,OAAO,KAAK,CAAC,CAChD;KACF;KAEA,OAAO;IACT,CAAC,EACA,OAAO,OAAO;IACjB,SAAS,QACN,KAAI,WAAU;KACb,IAAI,MAAM,QAAQ,MAAM,KAAK,OAAO,UAAU,GAAG;MAC/C,IACE,OACG,MAAM,CAAC,EACP,OAAM,SAAQ,CAAC,MAAM,IAAI,KAAK,cAAc,IAAI,CAAC,GAEpD,OAAO,OAAO;MAGhB,OAAO,CACL,OAAO,IACP,OAAO,SAAS,KAAK,OAAO,KAAK,OAAO,KAAK,CAAC,CAChD;KACF;KAEA,OAAO;IACT,CAAC,EACA,OAAO,OAAO;GACnB,CAAC;GACD,IAAI,CAAC,QAAQ,MACX,MAAM,IAAI,MAAM,+CAA+C,IAAI;GAGrE,KAAK,MAAM,6CAA6C,IAAI;GAE5D,OAAO;IACL,MAAM,KAAK,OAAO,OAAO,gBAAgB,OAAO,OAAO;IACvD;GACF;EACF;CACF;AACF"}
|
|
1
|
+
{"version":3,"file":"index.mjs","names":[],"sources":["../src/index.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport type { PluginItem, PresetItem } from \"@babel/core\";\nimport { transformAsync } from \"@babel/core\";\nimport { omit } from \"@stryke/helpers/omit\";\nimport { findFileExtensionSafe } from \"@stryke/path/file-path-fns\";\nimport { isEmptyObject } from \"@stryke/type-checks/is-empty-object\";\nimport { isSetObject } from \"@stryke/type-checks/is-set-object\";\nimport defu from \"defu\";\nimport { isSet } from \"node:util/types\";\nimport type { Plugin } from \"powerlines\";\nimport { removeVirtualPrefix } from \"powerlines/plugin-utils\";\nimport { isDuplicatePlugin, isDuplicatePreset } from \"./helpers/filters\";\nimport {\n getUniquePlugins,\n getUniquePresets,\n resolveBabelPlugin,\n resolveBabelPreset\n} from \"./helpers/options\";\nimport type {\n ResolvedBabelTransformPluginOptions,\n ResolvedBabelTransformPresetOptions\n} from \"./types/config\";\nimport type { BabelPluginContext, BabelPluginOptions } from \"./types/plugin\";\n\nexport * from \"./helpers\";\nexport type * from \"./types\";\n\ndeclare module \"powerlines\" {\n interface Config {\n babel?: BabelPluginOptions;\n }\n}\n\n/**\n * Babel plugin for Powerlines.\n *\n * @param options - The Babel plugin user configuration options.\n * @returns A Powerlines plugin that integrates Babel transformations.\n */\nexport const plugin = <\n TContext extends BabelPluginContext = BabelPluginContext\n>(\n options: BabelPluginOptions = {}\n): Plugin<TContext> => {\n return {\n name: \"babel\",\n config() {\n if (!isSetObject(options)) {\n return undefined;\n }\n\n return {\n babel: options\n };\n },\n configResolved: {\n order: \"pre\",\n handler() {\n this.config.babel = defu(this.config.babel ?? {}, {\n plugins: [],\n presets: []\n });\n\n this.config.babel.plugins = getUniquePlugins(this.config.babel.plugins);\n this.config.babel.presets = getUniquePresets(this.config.babel.presets);\n }\n },\n async transform(code: string, id: string) {\n if (\n // isParentPath(id, this.powerlinesPath) ||\n code.includes(\"/* @powerlines-ignore */\") ||\n code.includes(\"/* @powerlines-disable */\")\n ) {\n this.trace(`Skipping Babel transformation for: ${id}`);\n\n return { code, id };\n }\n\n const plugins = getUniquePlugins(\n this.config.babel.plugins\n .map(plugin => resolveBabelPlugin(this, code, id, plugin))\n .filter(Boolean) as ResolvedBabelTransformPluginOptions[]\n );\n const presets = getUniquePresets(\n this.config.babel.presets\n .map(preset => resolveBabelPreset(this, code, id, preset))\n .filter(Boolean) as ResolvedBabelTransformPresetOptions[]\n );\n\n if (\n Array.isArray(plugins) &&\n plugins.length === 0 &&\n Array.isArray(presets) &&\n presets.length === 0\n ) {\n return { code, id };\n }\n\n if (!this.config.babel?.skipConfigResolution) {\n if (\n !isDuplicatePlugin(plugins, \"@babel/plugin-transform-json-modules\")\n ) {\n plugins.push(\"@babel/plugin-transform-json-modules\");\n }\n\n if (\n /^(?:m|c)?tsx?$/.test(\n findFileExtensionSafe(id, {\n fullExtension: true\n })\n ) &&\n !isDuplicatePlugin(plugins, \"@babel/plugin-syntax-typescript\") &&\n !isDuplicatePreset(presets, \"@babel/preset-typescript\")\n ) {\n plugins.unshift(\"@babel/plugin-syntax-typescript\");\n }\n\n if (\n /^(?:t|j)sx$/.test(\n findFileExtensionSafe(id, {\n fullExtension: true\n })\n ) &&\n !isDuplicatePlugin(plugins, \"@babel/plugin-syntax-jsx\") &&\n !isDuplicatePreset(presets, \"@babel/preset-react\")\n ) {\n plugins.unshift(\"@babel/plugin-syntax-jsx\");\n }\n }\n\n this.trace(\n `Running babel transformations with ${plugins.length} plugins and ${\n presets.length\n } presets for file: ${id}`\n );\n\n const result = await transformAsync(code, {\n cwd: this.config.cwd,\n highlightCode: true,\n code: true,\n ast: false,\n cloneInputAst: false,\n comments: true,\n sourceType: \"module\",\n configFile: false,\n babelrc: false,\n envName: this.config.mode,\n caller: {\n name: this.config.framework?.name || \"powerlines\"\n },\n ...omit(this.config.babel ?? {}, [\n \"skipConfigResolution\",\n \"skipTransform\"\n ]),\n filename: removeVirtualPrefix(id),\n plugins: plugins\n .map(plugin => {\n if (Array.isArray(plugin) && plugin.length >= 2) {\n if (\n plugin\n .slice(1)\n .every(item => !isSet(item) || isEmptyObject(item))\n ) {\n return plugin[0];\n }\n\n return [\n plugin[0],\n plugin.length > 1 && plugin[1] ? plugin[1] : {}\n ];\n }\n\n return plugin;\n })\n .filter(Boolean) as PluginItem<object>[],\n presets: presets\n .map(preset => {\n if (Array.isArray(preset) && preset.length >= 2) {\n if (\n preset\n .slice(1)\n .every(item => !isSet(item) || isEmptyObject(item))\n ) {\n return preset[0];\n }\n\n return [\n preset[0],\n preset.length > 1 && preset[1] ? preset[1] : {}\n ];\n }\n\n return preset;\n })\n .filter(Boolean) as PresetItem<object>[]\n });\n if (!result?.code) {\n throw new Error(`Powerlines - Babel plugin failed to compile ${id}`);\n }\n\n this.trace(`Completed babel transformations for file: ${id}`);\n\n return {\n code: this.config.babel?.skipTransform ? code : result.code,\n id\n };\n }\n } as Plugin<TContext>;\n};\n\nexport default plugin;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAwDA,MAAa,UAGX,UAA8B,CAAC,MACV;CACrB,OAAO;EACL,MAAM;EACN,SAAS;GACP,IAAI,CAAC,YAAY,OAAO,GACtB;GAGF,OAAO,EACL,OAAO,QACT;EACF;EACA,gBAAgB;GACd,OAAO;GACP,UAAU;IACR,KAAK,OAAO,QAAQ,KAAK,KAAK,OAAO,SAAS,CAAC,GAAG;KAChD,SAAS,CAAC;KACV,SAAS,CAAC;IACZ,CAAC;IAED,KAAK,OAAO,MAAM,UAAU,iBAAiB,KAAK,OAAO,MAAM,OAAO;IACtE,KAAK,OAAO,MAAM,UAAU,iBAAiB,KAAK,OAAO,MAAM,OAA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AK,OAAO;IACrB,QAAQ,EACN,MAAM,KAAK,OAAO,WAAW,QAAQ,aACvC;IACA,GAAG,KAAK,KAAK,OAAO,SAAS,CAAC,GAAG,CAC/B,wBACA,eACF,CAAC;IACD,UAAU,oBAAoB,EAAE;IAChC,SAAS,QACN,KAAI,WAAU;KACb,IAAI,MAAM,QAAQ,MAAM,KAAK,OAAO,UAAU,GAAG;MAC/C,IACE,OACG,MAAM,CAAC,EACP,OAAM,SAAQ,CAAC,MAAM,IAAI,KAAK,cAAc,IAAI,CAAC,GAEpD,OAAO,OAAO;MAGhB,OAAO,CACL,OAAO,IACP,OAAO,SAAS,KAAK,OAAO,KAAK,OAAO,KAAK,CAAC,CAChD;KACF;KAEA,OAAO;IACT,CAAC,EACA,OAAO,OAAO;IACjB,SAAS,QACN,KAAI,WAAU;KACb,IAAI,MAAM,QAAQ,MAAM,KAAK,OAAO,UAAU,GAAG;MAC/C,IACE,OACG,MAAM,CAAC,EACP,OAAM,SAAQ,CAAC,MAAM,IAAI,KAAK,cAAc,IAAI,CAAC,GAEpD,OAAO,OAAO;MAGhB,OAAO,CACL,OAAO,IACP,OAAO,SAAS,KAAK,OAAO,KAAK,OAAO,KAAK,CAAC,CAChD;KACF;KAEA,OAAO;IACT,CAAC,EACA,OAAO,OAAO;GACnB,CAAC;GACD,IAAI,CAAC,QAAQ,MACX,MAAM,IAAI,MAAM,+CAA+C,IAAI;GAGrE,KAAK,MAAM,6CAA6C,IAAI;GAE5D,OAAO;IACL,MAAM,KAAK,OAAO,OAAO,gBAAgB,OAAO,OAAO;IACvD;GACF;EACF;CACF;AACF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/plugin-babel",
|
|
3
|
-
"version": "0.13.
|
|
3
|
+
"version": "0.13.66",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "A package containing a Powerlines plugin to assist in developing other Powerlines plugins.",
|
|
6
6
|
"keywords": ["babel", "powerlines", "storm-software", "powerlines-plugin"],
|
|
@@ -90,16 +90,16 @@
|
|
|
90
90
|
"@babel/helper-plugin-utils": "8.0.0-rc.6",
|
|
91
91
|
"@babel/parser": "8.0.0-rc.6",
|
|
92
92
|
"@babel/types": "8.0.0-rc.6",
|
|
93
|
-
"@powerlines/core": "^0.48.
|
|
94
|
-
"@storm-software/config-tools": "^1.190.
|
|
95
|
-
"@stryke/fs": "^0.33.
|
|
96
|
-
"@stryke/path": "^0.29.
|
|
97
|
-
"@stryke/type-checks": "^0.6.
|
|
98
|
-
"@stryke/types": "^0.12.
|
|
93
|
+
"@powerlines/core": "^0.48.13",
|
|
94
|
+
"@storm-software/config-tools": "^1.190.30",
|
|
95
|
+
"@stryke/fs": "^0.33.77",
|
|
96
|
+
"@stryke/path": "^0.29.4",
|
|
97
|
+
"@stryke/type-checks": "^0.6.10",
|
|
98
|
+
"@stryke/types": "^0.12.5",
|
|
99
99
|
"chalk": "5.6.2",
|
|
100
100
|
"defu": "^6.1.7",
|
|
101
101
|
"jiti": "^2.7.0",
|
|
102
|
-
"powerlines": "^0.47.
|
|
102
|
+
"powerlines": "^0.47.70"
|
|
103
103
|
},
|
|
104
104
|
"devDependencies": {
|
|
105
105
|
"@types/babel__helper-plugin-utils": "^7.10.3",
|
|
@@ -107,12 +107,14 @@
|
|
|
107
107
|
},
|
|
108
108
|
"peerDependencies": {
|
|
109
109
|
"@babel/plugin-syntax-jsx": ">=8.0.0-rc.6",
|
|
110
|
-
"@babel/plugin-syntax-typescript": ">=8.0.0-rc.6"
|
|
110
|
+
"@babel/plugin-syntax-typescript": ">=8.0.0-rc.6",
|
|
111
|
+
"@babel/plugin-transform-json-modules": ">=8.0.0-rc.6"
|
|
111
112
|
},
|
|
112
113
|
"peerDependenciesMeta": {
|
|
113
114
|
"@babel/plugin-syntax-jsx": { "optional": true },
|
|
114
|
-
"@babel/plugin-syntax-typescript": { "optional": true }
|
|
115
|
+
"@babel/plugin-syntax-typescript": { "optional": true },
|
|
116
|
+
"@babel/plugin-transform-json-modules": { "optional": false }
|
|
115
117
|
},
|
|
116
118
|
"publishConfig": { "access": "public" },
|
|
117
|
-
"gitHead": "
|
|
119
|
+
"gitHead": "13e79048aad1c58b576aa5454b7ab3cb76783731"
|
|
118
120
|
}
|