File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ export default function swPlugin(options) {
19
19
20
20
const wmrProxyPlugin = {
21
21
resolveId ( id ) {
22
- const normalizedId = ( id [ 1 ] + id [ 2 ] === ':\\' ) ? pathToPosix ( id . slice ( 2 ) ) : id ;
22
+ const normalizedId = id [ 1 ] + id [ 2 ] === ':\\' ? pathToPosix ( id . slice ( 2 ) ) : id ;
23
23
if ( id . startsWith ( '/@npm/' ) ) return id ;
24
24
if ( ! / ^ \. * \/ / . test ( normalizedId ) ) return '/@npm/' + id ;
25
25
} ,
@@ -71,7 +71,9 @@ export default function swPlugin(options) {
71
71
try {
72
72
var { rollup } = await import ( 'rollup' ) ;
73
73
} catch ( e ) {
74
- console . error ( ( e = 'Error: Service Worker compilation requires that you install Rollup:\n npm i --save-dev rollup' ) ) ;
74
+ console . error (
75
+ ( e = 'Error: Service Worker compilation requires that you install Rollup:\n npm i --save-dev rollup' )
76
+ ) ;
75
77
return `export default null; throw ${ JSON . stringify ( e ) } ;` ;
76
78
}
77
79
You can’t perform that action at this time.
0 commit comments