File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 1
- var postcss = require ( 'postcss' ) ;
1
+ const postcss = require ( 'postcss' ) ;
2
2
3
- module . exports = postcss . plugin ( 'postcss-replace-overflow-wrap' , function ( opts ) {
3
+ module . exports = postcss . plugin ( 'postcss-replace-overflow-wrap' , ( opts ) => {
4
4
opts = opts || { } ;
5
- var method = opts . method || 'replace' ;
5
+ const method = opts . method || 'replace' ;
6
6
7
- return function ( css , result ) { // eslint-disable-line no-unused-vars
8
- css . walkDecls ( 'overflow-wrap' , function ( decl , i ) { // eslint-disable-line no-unused-vars
7
+ return ( css , result ) => { // eslint-disable-line no-unused-vars
8
+ css . walkDecls ( 'overflow-wrap' , ( decl , i ) => { // eslint-disable-line no-unused-vars
9
9
decl . cloneBefore ( { prop : 'word-wrap' } ) ;
10
10
if ( method === 'replace' ) {
11
11
decl . remove ( ) ;
You can’t perform that action at this time.
0 commit comments