Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
mater1996 authored Dec 9, 2024
1 parent 4c30330 commit ca26f4a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/webpack-plugin/lib/platform/template/wx/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ module.exports = function getSpec ({ warn, error }) {
if (el) {
const injectWxsProp = {
injectWxsPath: '~' + normalize.lib('runtime/swanHelper.wxs'),
injectWxsModuleName: '__swanHelper__'
injectWxsModuleName: 'swanHelper__'
}
if (el.injectWxsProps && Array.isArray(el.injectWxsProps)) {
el.injectWxsProps.push(injectWxsProp)
Expand All @@ -78,7 +78,7 @@ module.exports = function getSpec ({ warn, error }) {
}
return {
name: 's-for',
value: `${itemName}, ${indexName} in __swanHelper__.processFor(${listName})${keyStr}`
value: `${itemName}, ${indexName} in swanHelper__.processFor(${listName})${keyStr}`
}
},
web ({ value }, { el }) {
Expand Down

0 comments on commit ca26f4a

Please sign in to comment.