提交 7b2cd003 编写于 作者: fxy060608's avatar fxy060608

fix(mp-alipay): import-sjs=>sjs

上级 31826f3a
......@@ -238,7 +238,7 @@ const PLATFORMS = {
vue: megaloRuntime,
compiler: megaloCompiler,
megalo: 'alipay',
filterTag: 'import-sjs',
filterTag: 'sjs',
subPackages: true,
cssVars: {
'--status-bar-height': '25px',
......
......@@ -45,7 +45,7 @@ module.exports = {
createFilterTag (filterTag, {
attrs
}) {
return `<${filterTag} name="${attrs.module}" from="${attrs.src}"></${filterTag}>`
return `<import-sjs name="${attrs.module}" from="${attrs.src}"></import-sjs>`
},
getEventType (eventType) {
return EVENTS[eventType] || eventType
......
......@@ -132,10 +132,10 @@ module.exports = {
resourceQuery: [
/lang=wxs/,
/lang=filter/,
/lang=import-sjs/,
/lang=sjs/,
/blockType=wxs/,
/blockType=filter/,
/blockType=import-sjs/
/blockType=sjs/
],
use: [{
loader: require.resolve(
......
......@@ -48,7 +48,7 @@ module.exports = function(source) {
descriptor.customBlocks = descriptor.customBlocks.filter(block => {
if (
block.attrs.module ||
block.attrs.module &&
(
block.type === FILTER_TAG ||
block.attrs.lang === FILTER_TAG
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册