Skip to content

Commit

Permalink
fix: src to dist translations in some cases
Browse files Browse the repository at this point in the history
  • Loading branch information
DylanPiercey committed Jan 19, 2021
1 parent cc62a67 commit 60772b7
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion packages/babel-utils/src/imports.js
Expand Up @@ -114,5 +114,5 @@ function getImports(file) {

function remapProductionMarkoBuild(file, request) {
if (!file.markoOpts.optimize) return request;
return request.replace(/^marko\/src\//, "marko/dist/");
return request.replace(/(^|\/)marko\/src\//, "$1marko/dist/");
}
Expand Up @@ -2,7 +2,7 @@ const _marko_template = _t();

export default _marko_template;
import { x as _marko_escapeXml } from "marko/dist/runtime/html/helpers/escape-xml";
import _await from "../../../../marko/src/core-tags/core/await/renderer.js";
import _await from "../../../../marko/dist/core-tags/core/await/renderer.js";
import _marko_tag from "marko/dist/runtime/helpers/render-tag";
import _marko_renderer from "marko/dist/runtime/components/renderer";
import { t as _t } from "marko/dist/runtime/html";
Expand Down
@@ -1,7 +1,7 @@
const _marko_template = _t();

export default _marko_template;
import _await from "../../../../marko/src/core-tags/core/await/renderer.js";
import _await from "../../../../marko/dist/core-tags/core/await/renderer.js";
import _marko_tag from "marko/dist/runtime/helpers/render-tag";
import _marko_renderer from "marko/dist/runtime/components/renderer";
import { t as _t } from "marko/dist/runtime/dom";
Expand Down
@@ -1,10 +1,10 @@
const _marko_template = _t();

export default _marko_template;
import _initComponents from "../../../../marko/src/core-tags/components/init-components-tag.js";
import _initComponents from "../../../../marko/dist/core-tags/components/init-components-tag.js";
import _marko_tag from "marko/dist/runtime/helpers/render-tag";
import _awaitReorderer from "../../../../marko/src/core-tags/core/await/reorderer-renderer.js";
import _preferredScriptLocation from "../../../../marko/src/core-tags/components/preferred-script-location-tag.js";
import _awaitReorderer from "../../../../marko/dist/core-tags/core/await/reorderer-renderer.js";
import _preferredScriptLocation from "../../../../marko/dist/core-tags/components/preferred-script-location-tag.js";
import _marko_renderer from "marko/dist/runtime/components/renderer";
import { t as _t } from "marko/dist/runtime/html";
const _marko_componentType = "VJrYycFN",
Expand Down
Expand Up @@ -3,7 +3,7 @@ const _marko_template = _t();
export default _marko_template;
import _hello from "./components/hello/index.marko";
import _marko_tag from "marko/dist/runtime/helpers/render-tag";
import _preserve from "../../../../marko/src/core-tags/components/preserve-tag.js";
import _preserve from "../../../../marko/dist/core-tags/components/preserve-tag.js";
import _marko_renderer from "marko/dist/runtime/components/renderer";
import { t as _t } from "marko/dist/runtime/html";
const _marko_componentType = "qUg9ApxN",
Expand Down
Expand Up @@ -7,7 +7,7 @@ import _marko_createElement from "marko/dist/runtime/vdom/helpers/v-element";

const _marko_node = _marko_createElement("div", null, "2", null, 0, 0);

import _preserve from "../../../../marko/src/core-tags/components/preserve-tag.js";
import _preserve from "../../../../marko/dist/core-tags/components/preserve-tag.js";

const _marko_node2 = _marko_createElement("div", null, "5", null, 0, 0);

Expand Down

0 comments on commit 60772b7

Please sign in to comment.