errors.js 1.1 KB

12345678910111213141516171819
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. exports.createMPCompilerError = void 0;
  4. const compiler_core_1 = require("@vue/compiler-core");
  5. const MPErrorMessages = {
  6. [0 /* MPErrorCodes.X_V_ON_NO_ARGUMENT */]: 'v-on="" is not supported',
  7. [1 /* MPErrorCodes.X_V_ON_DYNAMIC_EVENT */]: 'v-on:[event]="" is not supported.',
  8. [2 /* MPErrorCodes.X_V_BIND_NO_ARGUMENT */]: 'v-bind="" is not supported.',
  9. [3 /* MPErrorCodes.X_V_BIND_DYNAMIC_ARGUMENT */]: 'v-bind:[name]="" is not supported.',
  10. [4 /* MPErrorCodes.X_V_BIND_MODIFIER_PROP */]: 'v-bind .prop is not supported',
  11. [5 /* MPErrorCodes.X_V_BIND_MODIFIER_ATTR */]: 'v-bind .attr is not supported',
  12. [8 /* MPErrorCodes.X_DYNAMIC_COMPONENT_NOT_SUPPORTED */]: '<component is=""/> is not supported',
  13. [7 /* MPErrorCodes.X_NOT_SUPPORTED */]: 'not supported: ',
  14. [6 /* MPErrorCodes.X_V_IS_NOT_SUPPORTED */]: 'v-is not supported',
  15. };
  16. function createMPCompilerError(code, loc, additionalMessage) {
  17. return (0, compiler_core_1.createCompilerError)(code, loc, MPErrorMessages, additionalMessage);
  18. }
  19. exports.createMPCompilerError = createMPCompilerError;