Skip to content

Commit

Permalink
fix(Sanitizer): [#222] removed terser
Browse files Browse the repository at this point in the history
  • Loading branch information
raiseandfall committed Oct 17, 2019
1 parent 762d897 commit bc47d7c
Show file tree
Hide file tree
Showing 2 changed files with 1,774 additions and 11 deletions.
10 changes: 0 additions & 10 deletions rollup-sanitizer.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import resolve from 'rollup-plugin-node-resolve';
import commonjs from 'rollup-plugin-commonjs';
import { terser } from 'rollup-plugin-terser';

export default {
input: 'sanitizer/index.js',
Expand All @@ -22,15 +21,6 @@ export default {
xss: ['xss'],
cssfilter: ['cssfilter']
}
}),
terser({
output: {
comments: function (node, comment) {
if (comment.type === 'comment2') {
return /@warning/i.test(comment.value);
}
}
}
})
]
};
Loading

0 comments on commit bc47d7c

Please sign in to comment.