🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@marko/compiler

Package Overview
Dependencies
Maintainers
7
Versions
377
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@marko/compiler - npm Package Compare versions

Comparing version
5.41.1
to
5.41.2
+7
-1
dist/index.js

@@ -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": [