Skip to content

Commit 1ba976f

Browse files
authored
expose metadata type and remove console.warn (#26)
1 parent 5919742 commit 1ba976f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,6 @@ function preserveDirectives(): Plugin {
8585
message: `[rollup-preserve-directives]: failed to parse "${id}" and extract the directives. make sure you have added "rollup-preserve-directives" to the last of your plugins list, after swc/babel/esbuild/typescript or any other transform plugins.`
8686
});
8787

88-
console.warn(e);
89-
9088
return null;
9189
}
9290

@@ -220,3 +218,4 @@ function preserveDirectives(): Plugin {
220218

221219
export default preserveDirectives;
222220
export const preserveDirective = preserveDirectives;
221+
export { type PreserveDirectiveMeta }

0 commit comments

Comments
 (0)