Skip to content

Commit

Permalink
fix(webpack-plugin): inherit component script file export
Browse files Browse the repository at this point in the history
  • Loading branch information
LastLeaf committed Jul 10, 2024
1 parent 09be373 commit 398a0b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion glass-easel-miniprogram-webpack-plugin/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,7 @@ export class GlassEaselMiniprogramWebpackPlugin implements WebpackPluginInstance
})
${addStyleSheet}
codeSpace.globalComponentEnv(index.globalObject, '${escapeJsString(compPath)}', () => {
require('./${escapeJsString(path.basename(compInfo.main))}')
module.exports = require('./${escapeJsString(path.basename(compInfo.main))}')
})
`,
)
Expand Down

0 comments on commit 398a0b1

Please sign in to comment.