@modern-js/plugin-polyfill 0.0.0-next-20221220032350 → 0.0.0-next-20221220043320

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  # @modern-js/plugin-polyfill
2
2
 
3
- ## 0.0.0-next-20221220032350
3
+ ## 0.0.0-next-20221220043320
4
4
 
5
5
  ### Major Changes
6
6
 
@@ -32,7 +32,7 @@
32
32
  - Updated dependencies [abf3421a7]
33
33
  - Updated dependencies [543be9558]
34
34
  - Updated dependencies [14b712da8]
35
- - @modern-js/utils@0.0.0-next-20221220032350
35
+ - @modern-js/utils@0.0.0-next-20221220043320
36
36
 
37
37
  ## 2.0.0-beta.4
38
38
 
@@ -10,6 +10,12 @@ var cli_default = () => ({
10
10
  );
11
11
  }
12
12
  return { partials, entrypoint };
13
+ },
14
+ collectServerPlugins({ plugins }) {
15
+ plugins.push({
16
+ "@modern-js/plugin-polyfill": "@modern-js/plugin-polyfill/server"
17
+ });
18
+ return { plugins };
13
19
  }
14
20
  })
15
21
  });
@@ -32,6 +32,12 @@ var cli_default = () => ({
32
32
  );
33
33
  }
34
34
  return { partials, entrypoint };
35
+ },
36
+ collectServerPlugins({ plugins }) {
37
+ plugins.push({
38
+ "@modern-js/plugin-polyfill": "@modern-js/plugin-polyfill/server"
39
+ });
40
+ return { plugins };
35
41
  }
36
42
  })
37
43
  });
@@ -14,6 +14,15 @@ var cli_default = function() {
14
14
  partials: partials,
15
15
  entrypoint: entrypoint
16
16
  };
17
+ },
18
+ collectServerPlugins: function collectServerPlugins(param) {
19
+ var plugins = param.plugins;
20
+ plugins.push({
21
+ "@modern-js/plugin-polyfill": "@modern-js/plugin-polyfill/server"
22
+ });
23
+ return {
24
+ plugins: plugins
25
+ };
17
26
  }
18
27
  };
19
28
  }
@@ -1,9 +1,6 @@
1
1
  import type { CliPlugin } from '@modern-js/core';
2
- import type { UserConfig, ServerOptions } from '@modern-js/server-core';
2
+ import type { AppTools } from '@modern-js/app-tools';
3
3
 
4
- declare const _default: () => CliPlugin<{
5
- userConfig: UserConfig;
6
- normalizedConfig: ServerOptions;
7
- }>;
4
+ declare const _default: () => CliPlugin<AppTools>;
8
5
 
9
6
  export default _default;
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "modern",
12
12
  "modern.js"
13
13
  ],
14
- "version": "0.0.0-next-20221220032350",
14
+ "version": "0.0.0-next-20221220043320",
15
15
  "jsnext:source": "./src/index.ts",
16
16
  "types": "./dist/types/index.d.ts",
17
17
  "main": "./dist/js/node/index.js",
@@ -19,12 +19,12 @@
19
19
  "jsnext:modern": "./dist/js/modern/index.js",
20
20
  "exports": {
21
21
  ".": {
22
+ "jsnext:source": "./src/cli.ts",
22
23
  "node": {
23
- "jsnext:source": "./src/index.ts",
24
- "import": "./dist/js/modern/index.js",
25
- "require": "./dist/js/node/index.js"
24
+ "import": "./dist/js/node/cli.js",
25
+ "require": "./dist/js/node/cli.js"
26
26
  },
27
- "default": "./dist/js/treeshaking/index.js"
27
+ "default": "./dist/js/node/cli.js"
28
28
  },
29
29
  "./cli": {
30
30
  "jsnext:source": "./src/cli.ts",
@@ -33,6 +33,14 @@
33
33
  "require": "./dist/js/node/cli.js"
34
34
  },
35
35
  "default": "./dist/js/node/cli.js"
36
+ },
37
+ "./server": {
38
+ "node": {
39
+ "jsnext:source": "./src/index.ts",
40
+ "import": "./dist/js/modern/index.js",
41
+ "require": "./dist/js/node/index.js"
42
+ },
43
+ "default": "./dist/js/treeshaking/index.js"
36
44
  }
37
45
  },
38
46
  "dependencies": {
@@ -40,7 +48,7 @@
40
48
  "@modern-js/polyfill-lib": "^1.0.0",
41
49
  "lru-cache": "^6.0.0",
42
50
  "ua-parser-js": "^0.7.28",
43
- "@modern-js/utils": "0.0.0-next-20221220032350"
51
+ "@modern-js/utils": "0.0.0-next-20221220043320"
44
52
  },
45
53
  "devDependencies": {
46
54
  "@types/jest": "^27",
@@ -49,11 +57,12 @@
49
57
  "@types/ua-parser-js": "^0.7.36",
50
58
  "typescript": "^4",
51
59
  "jest": "^27",
52
- "@modern-js/server-core": "0.0.0-next-20221220032350",
53
- "@modern-js/types": "0.0.0-next-20221220032350",
54
- "@modern-js/core": "0.0.0-next-20221220032350",
55
- "@scripts/build": "0.0.0-next-20221220032350",
56
- "@scripts/jest-config": "0.0.0-next-20221220032350"
60
+ "@modern-js/server-core": "0.0.0-next-20221220043320",
61
+ "@modern-js/app-tools": "0.0.0-next-20221220043320",
62
+ "@modern-js/types": "0.0.0-next-20221220043320",
63
+ "@modern-js/core": "0.0.0-next-20221220043320",
64
+ "@scripts/jest-config": "0.0.0-next-20221220043320",
65
+ "@scripts/build": "0.0.0-next-20221220043320"
57
66
  },
58
67
  "sideEffects": false,
59
68
  "publishConfig": {