Skip to content

Commit

Permalink
Update transform_file.js
Browse files Browse the repository at this point in the history
  • Loading branch information
ShaMan123 committed Jun 11, 2022
1 parent 69f5810 commit 25f5282
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/transform_file.js
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ function getMixinName(file) {
}

function transformFile(raw, { namespace, name } = {}) {
if (raw.startsWith('(function')) {
if (raw.replace(/\/\*.*\*\\s*/).startsWith('(function')) {
const wrapper = findObject(raw, '{', '}');
raw = wrapper.raw.slice(1, wrapper.raw.length - 1);
}
Expand Down

0 comments on commit 25f5282

Please sign in to comment.