@modern-js/plugin-polyfill 2.5.0 → 2.6.0
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/CHANGELOG.md +9 -0
- package/dist/cjs/cli.js +1 -1
- package/dist/cjs/index.js +4 -0
- package/dist/cjs/libs/cache.js +4 -0
- package/dist/esm-node/cli.js +1 -1
- package/package.json +8 -8
    
        package/CHANGELOG.md
    CHANGED
    
    
    
        package/dist/cjs/cli.js
    CHANGED
    
    | @@ -28,7 +28,7 @@ var cli_default = () => ({ | |
| 28 28 | 
             
                  const resolvedConfig = api.useResolvedConfigContext();
         | 
| 29 29 | 
             
                  if (resolvedConfig.output.polyfill === "ua") {
         | 
| 30 30 | 
             
                    partials.top.push(
         | 
| 31 | 
            -
                      `<script src="${import_const.defaultPolyfill}" crossorigin | 
| 31 | 
            +
                      `<script src="${import_const.defaultPolyfill}" crossorigin></script>`
         | 
| 32 32 | 
             
                    );
         | 
| 33 33 | 
             
                  }
         | 
| 34 34 | 
             
                  return { partials, entrypoint };
         | 
    
        package/dist/cjs/index.js
    CHANGED
    
    | @@ -17,6 +17,10 @@ var __copyProps = (to, from, except, desc) => { | |
| 17 17 | 
             
              return to;
         | 
| 18 18 | 
             
            };
         | 
| 19 19 | 
             
            var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
         | 
| 20 | 
            +
              // If the importer is in node compatibility mode or this is not an ESM
         | 
| 21 | 
            +
              // file that has been converted to a CommonJS file using a Babel-
         | 
| 22 | 
            +
              // compatible transform (i.e. "__esModule" has not been set), then set
         | 
| 23 | 
            +
              // "default" to the CommonJS "module.exports" for node compatibility.
         | 
| 20 24 | 
             
              isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
         | 
| 21 25 | 
             
              mod
         | 
| 22 26 | 
             
            ));
         | 
    
        package/dist/cjs/libs/cache.js
    CHANGED
    
    | @@ -17,6 +17,10 @@ var __copyProps = (to, from, except, desc) => { | |
| 17 17 | 
             
              return to;
         | 
| 18 18 | 
             
            };
         | 
| 19 19 | 
             
            var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
         | 
| 20 | 
            +
              // If the importer is in node compatibility mode or this is not an ESM
         | 
| 21 | 
            +
              // file that has been converted to a CommonJS file using a Babel-
         | 
| 22 | 
            +
              // compatible transform (i.e. "__esModule" has not been set), then set
         | 
| 23 | 
            +
              // "default" to the CommonJS "module.exports" for node compatibility.
         | 
| 20 24 | 
             
              isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
         | 
| 21 25 | 
             
              mod
         | 
| 22 26 | 
             
            ));
         | 
    
        package/dist/esm-node/cli.js
    CHANGED
    
    | @@ -6,7 +6,7 @@ var cli_default = () => ({ | |
| 6 6 | 
             
                  const resolvedConfig = api.useResolvedConfigContext();
         | 
| 7 7 | 
             
                  if (resolvedConfig.output.polyfill === "ua") {
         | 
| 8 8 | 
             
                    partials.top.push(
         | 
| 9 | 
            -
                      `<script src="${defaultPolyfill}" crossorigin | 
| 9 | 
            +
                      `<script src="${defaultPolyfill}" crossorigin></script>`
         | 
| 10 10 | 
             
                    );
         | 
| 11 11 | 
             
                  }
         | 
| 12 12 | 
             
                  return { partials, entrypoint };
         | 
    
        package/package.json
    CHANGED
    
    | @@ -11,7 +11,7 @@ | |
| 11 11 | 
             
                "modern",
         | 
| 12 12 | 
             
                "modern.js"
         | 
| 13 13 | 
             
              ],
         | 
| 14 | 
            -
              "version": "2. | 
| 14 | 
            +
              "version": "2.6.0",
         | 
| 15 15 | 
             
              "jsnext:source": "./src/cli.ts",
         | 
| 16 16 | 
             
              "types": "./dist/types/cli.d.ts",
         | 
| 17 17 | 
             
              "main": "./dist/cjs/cli.js",
         | 
| @@ -47,7 +47,7 @@ | |
| 47 47 | 
             
                "@modern-js/polyfill-lib": "^1.0.0",
         | 
| 48 48 | 
             
                "lru-cache": "^6.0.0",
         | 
| 49 49 | 
             
                "ua-parser-js": "^0.7.28",
         | 
| 50 | 
            -
                "@modern-js/utils": "2. | 
| 50 | 
            +
                "@modern-js/utils": "2.6.0"
         | 
| 51 51 | 
             
              },
         | 
| 52 52 | 
             
              "devDependencies": {
         | 
| 53 53 | 
             
                "@types/jest": "^27",
         | 
| @@ -56,12 +56,12 @@ | |
| 56 56 | 
             
                "@types/ua-parser-js": "^0.7.36",
         | 
| 57 57 | 
             
                "typescript": "^4",
         | 
| 58 58 | 
             
                "jest": "^27",
         | 
| 59 | 
            -
                "@modern-js/server-core": "2. | 
| 60 | 
            -
                "@modern-js/app-tools": "2. | 
| 61 | 
            -
                "@modern-js/types": "2. | 
| 62 | 
            -
                "@ | 
| 63 | 
            -
                "@scripts/ | 
| 64 | 
            -
                "@ | 
| 59 | 
            +
                "@modern-js/server-core": "2.6.0",
         | 
| 60 | 
            +
                "@modern-js/app-tools": "2.6.0",
         | 
| 61 | 
            +
                "@modern-js/types": "2.6.0",
         | 
| 62 | 
            +
                "@modern-js/core": "2.6.0",
         | 
| 63 | 
            +
                "@scripts/build": "2.6.0",
         | 
| 64 | 
            +
                "@scripts/jest-config": "2.6.0"
         | 
| 65 65 | 
             
              },
         | 
| 66 66 | 
             
              "sideEffects": false,
         | 
| 67 67 | 
             
              "publishConfig": {
         |