Skip to content

Commit a895446

Browse files
committed
Bundler shouldn't strip comments in plugindef()
1 parent 7109e9e commit a895446

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/actions/bundle/dist/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -6834,7 +6834,7 @@ const bundleFile = (name, sourcePath, mixins) => {
68346834
const bundled = (0, exports.bundleFileBase)(name, exports.files, mixins, localizations, (fileName) => fs_1.default.readFileSync(path_1.default.join(sourcePath, fileName)).toString());
68356835
const parts = (0, helpers_1.getFileParts)(bundled);
68366836
return (0, remove_comments_1.removeComments)(parts.prolog, true)
6837-
+ (0, remove_comments_1.removeComments)(parts.plugindef, false)
6837+
+ parts.plugindef
68386838
+ (0, remove_comments_1.removeComments)(parts.epilog, true);
68396839
};
68406840
exports.bundleFile = bundleFile;

.github/actions/bundle/src/bundle.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,6 @@ export const bundleFile = (name: string, sourcePath: string, mixins: string[]):
8383
const parts = getFileParts(bundled);
8484

8585
return removeComments(parts.prolog, true)
86-
+ removeComments(parts.plugindef, false)
86+
+ parts.plugindef
8787
+ removeComments(parts.epilog, true);
8888
}

0 commit comments

Comments
 (0)