@modern-js/plugin-module-polyfill 2.34.0 → 2.35.1

Sign up to get free protection for your applications and to get access to all the features.
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @modern-js/plugin-module-polyfill
2
2
 
3
- The polyfill plugin of Modern.js Module Tools.
3
+ The polyfill plugin of Modern.js Module.
4
4
 
5
5
  A Library author don't want to "pollute" the global scope with the polyfills you are loading. This plugin injects imports to polyfills for unsupported features which are used in your code, without attaching the polyfills to the global scope but importing them as normal functions.
6
6
 
package/dist/index.js CHANGED
@@ -22,7 +22,7 @@ const ModulePolyfillPlugin = (options) => ({
22
22
  name: "@modern-js/plugin-module-polyfill",
23
23
  setup: () => ({
24
24
  modifyLibuild(config) {
25
- var _options, _config_plugins;
25
+ var _config_plugins;
26
26
  const plugins = [
27
27
  [
28
28
  require("@babel/plugin-syntax-typescript"),
@@ -37,7 +37,7 @@ const ModulePolyfillPlugin = (options) => ({
37
37
  require("babel-plugin-polyfill-corejs3"),
38
38
  {
39
39
  method: "usage-pure",
40
- targets: (_options = options) === null || _options === void 0 ? void 0 : _options.targets
40
+ targets: options === null || options === void 0 ? void 0 : options.targets
41
41
  }
42
42
  ]
43
43
  ];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@modern-js/plugin-module-polyfill",
3
- "description": "The polyfill plugin of Modern.js Module Tools.",
3
+ "description": "The polyfill plugin of Modern.js Module.",
4
4
  "homepage": "https://modernjs.dev/module-tools",
5
5
  "bugs": "https://github.com/web-infra-dev/modern.js/issues",
6
6
  "repository": {
@@ -15,7 +15,7 @@
15
15
  "modern",
16
16
  "modern.js"
17
17
  ],
18
- "version": "2.34.0",
18
+ "version": "2.35.1",
19
19
  "types": "./dist/index.d.ts",
20
20
  "main": "./dist/index.js",
21
21
  "devDependencies": {
@@ -24,12 +24,12 @@
24
24
  "typescript": "^5",
25
25
  "jest": "^29",
26
26
  "@swc/helpers": "0.5.1",
27
- "@modern-js/module-tools": "2.34.0",
28
- "@scripts/build": "2.34.0",
29
- "@scripts/jest-config": "2.34.0"
27
+ "@modern-js/module-tools": "2.35.1",
28
+ "@scripts/jest-config": "2.35.1",
29
+ "@scripts/build": "2.35.1"
30
30
  },
31
31
  "peerDependencies": {
32
- "@modern-js/module-tools": "^2.34.0",
32
+ "@modern-js/module-tools": "^2.35.1",
33
33
  "core-js-pure": "^3.25.0"
34
34
  },
35
35
  "dependencies": {
@@ -37,7 +37,7 @@
37
37
  "@babel/plugin-syntax-typescript": "^7.22.5",
38
38
  "@babel/plugin-syntax-jsx": "^7.22.5",
39
39
  "babel-plugin-polyfill-corejs3": "0.5.2",
40
- "@modern-js/libuild-plugin-babel": "2.34.0"
40
+ "@modern-js/libuild-plugin-babel": "2.35.1"
41
41
  },
42
42
  "sideEffects": false,
43
43
  "publishConfig": {