@kontur.candy/generator 4.240.0 → 4.240.1
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.js +11 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -130559,7 +130559,11 @@ class AutoCalculationsGenerator {
|
|
|
130559
130559
|
configFile: false,
|
|
130560
130560
|
babelrc: false,
|
|
130561
130561
|
// tslint:disable-next-line no-require-imports no-unsafe-any
|
|
130562
|
-
presets: [__webpack_require__(/*! @babel/preset-env */ "./node_modules/@babel/preset-env/lib/index.js")
|
|
130562
|
+
presets: [[__webpack_require__(/*! @babel/preset-env */ "./node_modules/@babel/preset-env/lib/index.js"), {
|
|
130563
|
+
targets: {
|
|
130564
|
+
browsers: "> 0%"
|
|
130565
|
+
}
|
|
130566
|
+
}]]
|
|
130563
130567
|
})).filter(_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_1__.isNotNullOrUndefined).map(_AdditionalAutoCalculationParser__WEBPACK_IMPORTED_MODULE_4__.additionalAutoCalculationToModule);
|
|
130564
130568
|
}
|
|
130565
130569
|
|
|
@@ -130588,12 +130592,15 @@ class AutoCalculationsGenerator {
|
|
|
130588
130592
|
}
|
|
130589
130593
|
|
|
130590
130594
|
generateCodeFromAst(ast) {
|
|
130591
|
-
// NOTE babel-plugin-module-resolver crash when filename is undefined
|
|
130592
|
-
// babel-plugin-module-resolver/lib/normalizeOptions.js:148
|
|
130593
130595
|
const transformResult = (0,_babel_core__WEBPACK_IMPORTED_MODULE_0__.transformFromAstSync)(ast, undefined, {
|
|
130594
130596
|
configFile: false,
|
|
130595
130597
|
filename: "",
|
|
130596
|
-
sourceType: "module"
|
|
130598
|
+
sourceType: "module",
|
|
130599
|
+
presets: [[__webpack_require__(/*! @babel/preset-env */ "./node_modules/@babel/preset-env/lib/index.js"), {
|
|
130600
|
+
targets: {
|
|
130601
|
+
browsers: "> 0%"
|
|
130602
|
+
}
|
|
130603
|
+
}]]
|
|
130597
130604
|
});
|
|
130598
130605
|
|
|
130599
130606
|
if (transformResult == undefined || transformResult.code == undefined) {
|