@marko/compiler
Advanced tools
+7
-1
@@ -134,3 +134,5 @@ "use strict";exports.__esModule = true;exports._clearDefaults = _clearDefaults;exports.compile = compile;exports.compileFile = compileFile;exports.compileFileSync = compileFileSync;exports.compileSync = compileSync;exports.configure = configure;exports.getRuntimeEntryFiles = getRuntimeEntryFiles;exports.getRuntimeVersion = getRuntimeVersion;exports.version = exports.taglib = exports.globalConfig = void 0;var _babelUtils = require("@marko/compiler/babel-utils"); | ||
| sourceType: "module", | ||
| sourceMaps: markoConfig.sourceMaps, | ||
| // An entry wrapper's own map is meaningless; the translator still keeps | ||
| // extracted `<style>` maps off `markoConfig.sourceMaps` regardless. | ||
| sourceMaps: isEntryOutput(markoConfig) ? false : markoConfig.sourceMaps, | ||
| code: markoConfig.code, | ||
@@ -189,2 +191,6 @@ ast: markoConfig.ast, | ||
| return output !== "source" && output !== "migrate"; | ||
| } | ||
| function isEntryOutput({ output, entry }) { | ||
| return output === "hydrate" || entry != null; | ||
| } |
+1
-1
| { | ||
| "name": "@marko/compiler", | ||
| "version": "5.41.1", | ||
| "version": "5.41.2", | ||
| "description": "Marko template to JS compiler.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
5111253
0.01%124568
0