@zohodesk/react-cli 1.1.23-exp.4 → 1.1.24-exp.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
    
        package/README.md
    CHANGED
    
    
| 
         @@ -19,7 +19,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de 
     | 
|
| 
       19 
19 
     | 
    
         
             
            const ImageExtRegex = /\.jpe?g$|\.gif$|\.png|\.webp$/;
         
     | 
| 
       20 
20 
     | 
    
         
             
            const FontExtRegex = /\.woff2|\.woff$|\.ttf$|\.eot$/;
         
     | 
| 
       21 
21 
     | 
    
         
             
            const SVGExtRegex = /\.svg$/;
         
     | 
| 
       22 
     | 
    
         
            -
            const AudioExtRegex = /\.ogg$/;
         
     | 
| 
      
 22 
     | 
    
         
            +
            const AudioExtRegex = /\.ogg|\.mp3$/;
         
     | 
| 
       23 
23 
     | 
    
         
             
            const VidioExtRegex = /\.mp4|\.webm$/;
         
     | 
| 
       24 
24 
     | 
    
         | 
| 
       25 
25 
     | 
    
         
             
            function createLoaderOptionQueryString(loaderName, nameTemplate, limit = 1000) {
         
     | 
| 
         @@ -112,10 +112,9 @@ function pitch(request) { 
     | 
|
| 
       112 
112 
     | 
    
         
             
                }
         
     | 
| 
       113 
113 
     | 
    
         | 
| 
       114 
114 
     | 
    
         
             
                function workerCode() {
         
     | 
| 
       115 
     | 
    
         
            -
                  if (this.workerInstance) {
         
     | 
| 
       116 
     | 
    
         
            -
             
     | 
| 
       117 
     | 
    
         
            -
                  }
         
     | 
| 
       118 
     | 
    
         
            -
             
     | 
| 
      
 115 
     | 
    
         
            +
                  // if (this.workerInstance) {
         
     | 
| 
      
 116 
     | 
    
         
            +
                  //   return this.workerInstance;
         
     | 
| 
      
 117 
     | 
    
         
            +
                  // }
         
     | 
| 
       119 
118 
     | 
    
         
             
                  let blob;
         
     | 
| 
       120 
119 
     | 
    
         | 
| 
       121 
120 
     | 
    
         
             
                  try {
         
     | 
| 
         @@ -127,9 +126,11 @@ function pitch(request) { 
     | 
|
| 
       127 
126 
     | 
    
         
             
                  }
         
     | 
| 
       128 
127 
     | 
    
         | 
| 
       129 
128 
     | 
    
         
             
                  const url = window.URL || window.webkitURL;
         
     | 
| 
       130 
     | 
    
         
            -
                  const blobUrl = url.createObjectURL(blob);
         
     | 
| 
       131 
     | 
    
         
            -
                  this.workerInstance 
     | 
| 
       132 
     | 
    
         
            -
             
     | 
| 
      
 129 
     | 
    
         
            +
                  const blobUrl = url.createObjectURL(blob); // this.workerInstance = new Worker(blobUrl);
         
     | 
| 
      
 130 
     | 
    
         
            +
                  // return this.workerInstance;
         
     | 
| 
      
 131 
     | 
    
         
            +
             
     | 
| 
      
 132 
     | 
    
         
            +
                  let worker = new Worker(blobUrl);
         
     | 
| 
      
 133 
     | 
    
         
            +
                  return worker;
         
     | 
| 
       133 
134 
     | 
    
         
             
                }
         
     | 
| 
       134 
135 
     | 
    
         | 
| 
       135 
136 
     | 
    
         
             
                return cb(null, `const workerObj ={\n
         
     |