@morev/bem-vue 0.1.1 → 0.1.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.
|
@@ -349,12 +349,11 @@ const createTemplateTransform = (root, metadata, metadataByToken, resolveBlockNa
|
|
|
349
349
|
if (!fallback) throw new BemVueTransformError(filename, directiveLocation, "resolveBlockName() returned an empty block name.");
|
|
350
350
|
const isVapor = componentMetadata?.vapor ?? false;
|
|
351
351
|
const isVaporCompiler = isVapor && "options" in context;
|
|
352
|
-
const compilerContextKey = context.root;
|
|
353
352
|
const vaporHelper = isVapor ? vaporHelperDirective : void 0;
|
|
354
353
|
const vaporBlockDirective = isVapor ? getInternalDirective(templateNode, VAPOR_BLOCK_DIRECTIVE) : void 0;
|
|
355
|
-
const helper = isVapor ? componentMetadata?.helperIdentifier && (isVaporCompiler ? componentMetadata.helperIdentifier : `$setup.${componentMetadata.helperIdentifier}`) : helperIdentifiers.get(
|
|
354
|
+
const helper = isVapor ? componentMetadata?.helperIdentifier && (isVaporCompiler ? componentMetadata.helperIdentifier : `$setup.${componentMetadata.helperIdentifier}`) : helperIdentifiers.get(context.imports) ?? getCompilerHelperIdentifier(context);
|
|
356
355
|
if (!helper) throw new BemVueTransformError(filename, directiveLocation, "Vapor helper metadata is unavailable. Run transformSfc() before compiling the template.");
|
|
357
|
-
if (
|
|
356
|
+
if (!isVapor) helperIdentifiers.set(context.imports, helper);
|
|
358
357
|
if (vaporHelper) templateNode.props.splice(templateNode.props.indexOf(vaporHelper), 1);
|
|
359
358
|
if (vaporBlockDirective) templateNode.props.splice(templateNode.props.indexOf(vaporBlockDirective), 1);
|
|
360
359
|
const directiveIndex = templateNode.props.indexOf(directive);
|
package/dist/compiler.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as createBemVueCompiler } from "./compiler-
|
|
1
|
+
import { t as createBemVueCompiler } from "./compiler-DzGfkfml.js";
|
|
2
2
|
export { createBemVueCompiler };
|
package/dist/vite.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as createBemVueCompiler } from "./compiler-
|
|
1
|
+
import { t as createBemVueCompiler } from "./compiler-DzGfkfml.js";
|
|
2
2
|
import { t as bemVueUnplugin } from "./unplugin-DAY_Kbnw.js";
|
|
3
3
|
import { resolve } from "node:path";
|
|
4
4
|
import { parse } from "@vue/compiler-sfc";
|
package/dist/webpack.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as VIRTUAL_MODULE_ID, r as WEBPACK_VIRTUAL_MODULE_ID, t as createBemVueCompiler } from "./compiler-
|
|
1
|
+
import { n as VIRTUAL_MODULE_ID, r as WEBPACK_VIRTUAL_MODULE_ID, t as createBemVueCompiler } from "./compiler-DzGfkfml.js";
|
|
2
2
|
import { t as bemVueUnplugin } from "./unplugin-DAY_Kbnw.js";
|
|
3
3
|
import { createRequire } from "node:module";
|
|
4
4
|
import { normalize, resolve } from "node:path";
|