@prosopo/config 3.1.26 → 3.2.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/.turbo/turbo-build$colon$cjs.log +3 -3
- package/.turbo/turbo-build.log +3 -3
- package/.turbo/turbo-typecheck.log +1 -1
- package/CHANGELOG.md +10 -0
- package/dist/cjs/vite/vite.backend.config.cjs +2 -15
- package/dist/vite/vite.backend.config.d.ts.map +1 -1
- package/dist/vite/vite.backend.config.js +2 -15
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @prosopo/config@3.
|
|
2
|
+
> @prosopo/config@3.2.0 build:cjs
|
|
3
3
|
> NODE_ENV=${NODE_ENV:-production}; vite build --config vite.cjs.config.ts --mode $NODE_ENV
|
|
4
4
|
|
|
5
5
|
ViteCommonJSConfig: .
|
|
@@ -25,8 +25,8 @@ rendering chunks...
|
|
|
25
25
|
[2mdist/cjs/[22m[36mvite/vite.test.config.cjs [39m[1m[2m2.50 kB[22m[1m[22m
|
|
26
26
|
[2mdist/cjs/[22m[36mvite/vite.threads.test.config.cjs [39m[1m[2m2.51 kB[22m[1m[22m
|
|
27
27
|
[2mdist/cjs/[22m[36mvite/vite-plugin-remove-unused-translations.cjs [39m[1m[2m2.60 kB[22m[1m[22m
|
|
28
|
-
[2mdist/cjs/[22m[36mvite/vite.backend.config.cjs [39m[1m[
|
|
28
|
+
[2mdist/cjs/[22m[36mvite/vite.backend.config.cjs [39m[1m[2m2.91 kB[22m[1m[22m
|
|
29
29
|
[2mdist/cjs/[22m[36mwebpack/webpack.config.cjs [39m[1m[2m4.91 kB[22m[1m[22m
|
|
30
30
|
[2mdist/cjs/[22m[36mdependencies.cjs [39m[1m[2m5.57 kB[22m[1m[22m
|
|
31
31
|
[2mdist/cjs/[22m[36mvite/vite.frontend.config.cjs [39m[1m[2m7.44 kB[22m[1m[22m
|
|
32
|
-
[32m✓ built in
|
|
32
|
+
[32m✓ built in 156ms[39m
|
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @prosopo/config@3.
|
|
2
|
+
> @prosopo/config@3.2.0 build
|
|
3
3
|
> NODE_ENV=${NODE_ENV:-development}; vite build --config vite.esm.config.ts --mode $NODE_ENV
|
|
4
4
|
|
|
5
5
|
ViteEsmConfig: .
|
|
@@ -24,8 +24,8 @@ rendering chunks...
|
|
|
24
24
|
[2mdist/[22m[36mvite/vite-plugin-remove-unused-translations.js [39m[1m[2m2.43 kB[22m[1m[22m
|
|
25
25
|
[2mdist/[22m[36mvite/vite.test.config.js [39m[1m[2m2.46 kB[22m[1m[22m
|
|
26
26
|
[2mdist/[22m[36mvite/vite.threads.test.config.js [39m[1m[2m2.48 kB[22m[1m[22m
|
|
27
|
-
[2mdist/[22m[36mvite/vite.backend.config.js [39m[1m[
|
|
27
|
+
[2mdist/[22m[36mvite/vite.backend.config.js [39m[1m[2m2.84 kB[22m[1m[22m
|
|
28
28
|
[2mdist/[22m[36mwebpack/webpack.config.js [39m[1m[2m3.68 kB[22m[1m[22m
|
|
29
29
|
[2mdist/[22m[36mdependencies.js [39m[1m[2m5.04 kB[22m[1m[22m
|
|
30
30
|
[2mdist/[22m[36mvite/vite.frontend.config.js [39m[1m[2m7.28 kB[22m[1m[22m
|
|
31
|
-
[32m✓ built in
|
|
31
|
+
[32m✓ built in 242ms[39m
|
package/CHANGELOG.md
CHANGED
|
@@ -3,28 +3,15 @@ const node_module = require("node:module");
|
|
|
3
3
|
const path = require("node:path");
|
|
4
4
|
const pluginWasm = require("@rollup/plugin-wasm");
|
|
5
5
|
const css = require("rollup-plugin-import-css");
|
|
6
|
-
const dependencies = require("../dependencies.cjs");
|
|
7
6
|
const vitePluginCloseAndCopy = require("./vite-plugin-close-and-copy.cjs");
|
|
8
7
|
const vitePluginFixAbsoluteImports = require("./vite-plugin-fix-absolute-imports.cjs");
|
|
9
8
|
async function vite_backend_config(packageName, packageVersion, bundleName, packageDir, entry, command, mode, outputDir) {
|
|
10
9
|
const isProduction = mode === "production";
|
|
11
|
-
const { dependencies: deps, optionalPeerDependencies } = await dependencies.getDependencies(packageName, true);
|
|
12
10
|
const outDir = outputDir ? path.resolve(outputDir) : path.resolve(packageDir, "dist/bundle");
|
|
13
|
-
const { external, internal } = dependencies.filterDependencies(deps, [
|
|
14
|
-
"aws",
|
|
15
|
-
"webpack",
|
|
16
|
-
"vite",
|
|
17
|
-
"biome"
|
|
18
|
-
]);
|
|
19
11
|
const allExternal = [
|
|
20
12
|
...node_module.builtinModules,
|
|
21
|
-
...node_module.builtinModules.map((m) => `node:${m}`)
|
|
22
|
-
...external,
|
|
23
|
-
...optionalPeerDependencies
|
|
13
|
+
...node_module.builtinModules.map((m) => `node:${m}`)
|
|
24
14
|
];
|
|
25
|
-
console.info(
|
|
26
|
-
`Bundling. ${JSON.stringify(internal.slice(0, 10), null, 2)}... ${internal.length} deps`
|
|
27
|
-
);
|
|
28
15
|
const define = {
|
|
29
16
|
"process.env.WS_NO_BUFFER_UTIL": "true",
|
|
30
17
|
"process.env.WS_NO_UTF_8_VALIDATE": "true",
|
|
@@ -46,7 +33,7 @@ async function vite_backend_config(packageName, packageVersion, bundleName, pack
|
|
|
46
33
|
const drop = mode === "production" ? ["console", "debugger"] : void 0;
|
|
47
34
|
return {
|
|
48
35
|
ssr: {
|
|
49
|
-
noExternal:
|
|
36
|
+
noExternal: true,
|
|
50
37
|
external: allExternal
|
|
51
38
|
},
|
|
52
39
|
optimizeDeps: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vite.backend.config.d.ts","sourceRoot":"","sources":["../../src/vite/vite.backend.config.ts"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"vite.backend.config.d.ts","sourceRoot":"","sources":["../../src/vite/vite.backend.config.ts"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAIvC,yBACC,WAAW,EAAE,MAAM,EACnB,cAAc,EAAE,MAAM,EACtB,UAAU,EAAE,MAAM,EAClB,UAAU,EAAE,MAAM,EAClB,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,EACxB,OAAO,CAAC,EAAE,MAAM,EAChB,IAAI,CAAC,EAAE,MAAM,EACb,SAAS,CAAC,EAAE,MAAM,GAChB,OAAO,CAAC,UAAU,CAAC,CAyFrB"}
|
|
@@ -2,28 +2,15 @@ import { builtinModules } from "node:module";
|
|
|
2
2
|
import path from "node:path";
|
|
3
3
|
import { wasm } from "@rollup/plugin-wasm";
|
|
4
4
|
import css from "rollup-plugin-import-css";
|
|
5
|
-
import { getDependencies, filterDependencies } from "../dependencies.js";
|
|
6
5
|
import VitePluginCloseAndCopy from "./vite-plugin-close-and-copy.js";
|
|
7
6
|
import VitePluginFixAbsoluteImports from "./vite-plugin-fix-absolute-imports.js";
|
|
8
7
|
async function vite_backend_config(packageName, packageVersion, bundleName, packageDir, entry, command, mode, outputDir) {
|
|
9
8
|
const isProduction = mode === "production";
|
|
10
|
-
const { dependencies: deps, optionalPeerDependencies } = await getDependencies(packageName, true);
|
|
11
9
|
const outDir = outputDir ? path.resolve(outputDir) : path.resolve(packageDir, "dist/bundle");
|
|
12
|
-
const { external, internal } = filterDependencies(deps, [
|
|
13
|
-
"aws",
|
|
14
|
-
"webpack",
|
|
15
|
-
"vite",
|
|
16
|
-
"biome"
|
|
17
|
-
]);
|
|
18
10
|
const allExternal = [
|
|
19
11
|
...builtinModules,
|
|
20
|
-
...builtinModules.map((m) => `node:${m}`)
|
|
21
|
-
...external,
|
|
22
|
-
...optionalPeerDependencies
|
|
12
|
+
...builtinModules.map((m) => `node:${m}`)
|
|
23
13
|
];
|
|
24
|
-
console.info(
|
|
25
|
-
`Bundling. ${JSON.stringify(internal.slice(0, 10), null, 2)}... ${internal.length} deps`
|
|
26
|
-
);
|
|
27
14
|
const define = {
|
|
28
15
|
"process.env.WS_NO_BUFFER_UTIL": "true",
|
|
29
16
|
"process.env.WS_NO_UTF_8_VALIDATE": "true",
|
|
@@ -45,7 +32,7 @@ async function vite_backend_config(packageName, packageVersion, bundleName, pack
|
|
|
45
32
|
const drop = mode === "production" ? ["console", "debugger"] : void 0;
|
|
46
33
|
return {
|
|
47
34
|
ssr: {
|
|
48
|
-
noExternal:
|
|
35
|
+
noExternal: true,
|
|
49
36
|
external: allExternal
|
|
50
37
|
},
|
|
51
38
|
optimizeDeps: {
|