Skip to content

Commit

Permalink
Merge pull request #278 from shiftj18/fix/script-filename-postfix-sha…
Browse files Browse the repository at this point in the history
…king

fix(jsx2mp-loader): component of pure js support shaking by filename postfix
  • Loading branch information
ChrisCindy authored Feb 22, 2022
2 parents d9fa0cb + 248f4ae commit 83f8c15
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions packages/jsx2mp-loader/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## [0.4.35] - 2022-02-10

### Fixed

- component of pure js support shaking by filename postfix

## [0.4.34] - 2022-01-06

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion packages/jsx2mp-loader/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jsx2mp-loader",
"version": "0.4.34",
"version": "0.4.35",
"description": "",
"files": [
"src"
Expand Down
2 changes: 1 addition & 1 deletion packages/jsx2mp-loader/src/script-loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ module.exports = function scriptLoader(content) {
outputContent = { code: rawContent };
outputOption = {
outputPath: {
code: removeExt(distSourcePath) + '.js'
code: removeExt(distSourcePath, platform.type) + '.js'
},
mode,
externalPlugins: [
Expand Down

0 comments on commit 83f8c15

Please sign in to comment.