Skip to content

Commit

Permalink
fix: 修复报错 Error: [BABEL] unknown file: Preset /* your preset */ requi…
Browse files Browse the repository at this point in the history
…res a filename to be set when babel is called directly
  • Loading branch information
tenadolanter committed Mar 6, 2024
1 parent 0273396 commit fc63c15
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:

jobs:
auto_release_npm_package:
if: "!contains(github.event.head_commit.message, 'release')"
if: ${{ !contains(github.event.head_commit.message, 'release') }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand Down
1 change: 1 addition & 0 deletions src/core/transform/transformJs.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ module.exports = (localData, needTranslate, filePath, sourceCode, options, isWri
})

const { code } = transformFromAstSync(ast, sourceCode, {
configFile: false,
plugins: [
[
I18nPlugin,
Expand Down

0 comments on commit fc63c15

Please sign in to comment.