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

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

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