@marko/compiler 5.41.1 → 5.41.2
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 +7 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -131,7 +131,9 @@ function getBaseBabelConfig(filename, { babelConfig, ...markoConfig }) {
|
|
|
131
131
|
...babelConfig,
|
|
132
132
|
filename,
|
|
133
133
|
sourceType: "module",
|
|
134
|
-
|
|
134
|
+
// An entry wrapper's own map is meaningless; the translator still keeps
|
|
135
|
+
// extracted `<style>` maps off `markoConfig.sourceMaps` regardless.
|
|
136
|
+
sourceMaps: isEntryOutput(markoConfig) ? false : markoConfig.sourceMaps,
|
|
135
137
|
code: markoConfig.code,
|
|
136
138
|
ast: markoConfig.ast,
|
|
137
139
|
plugins:
|
|
@@ -185,4 +187,8 @@ function getFs(config) {
|
|
|
185
187
|
|
|
186
188
|
function isTranslatedOutput(output) {
|
|
187
189
|
return output !== "source" && output !== "migrate";
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
function isEntryOutput({ output, entry }) {
|
|
193
|
+
return output === "hydrate" || entry != null;
|
|
188
194
|
}
|