Skip to content

Commit

Permalink
fix: subcomponent does not exist demo.taro file, skipping this case (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
oasis-cloud authored Sep 12, 2024
1 parent a41fd45 commit 3a8018b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scripts/rn/copy-file.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ const removeFile = async (url) => {
}

const modify = (fileUrl, importStatement) => {
if(!fse.ensureFileSync(fileUrl)) return
fse.readFile(fileUrl, 'utf8').then((content) => {
let modifiedContent = content
modifiedContent = [importStatement, modifiedContent.slice(0)].join('')
Expand Down

0 comments on commit 3a8018b

Please sign in to comment.