nyte 1.3.0 → 1.3.1-alpha.10
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/dist/builder.js +12 -9
- package/package.json +7 -6
package/dist/builder.js
CHANGED
|
@@ -293,26 +293,29 @@ function createRollupConfig(entryPoint, outdir, isProduction) {
|
|
|
293
293
|
cache: true,
|
|
294
294
|
perf: false,
|
|
295
295
|
plugins: [
|
|
296
|
+
// CRÍTICO: 'replace' deve vir PRIMEIRO para injetar NODE_ENV antes que
|
|
297
|
+
// libs como React decidam qual bundle importar.
|
|
298
|
+
replace({
|
|
299
|
+
preventAssignment: true,
|
|
300
|
+
values: {
|
|
301
|
+
'process.env.NODE_ENV': JSON.stringify(isProduction ? 'production' : 'development')
|
|
302
|
+
}
|
|
303
|
+
}),
|
|
296
304
|
nodeResolve({
|
|
297
305
|
extensions: ['.mjs', '.js', '.json', '.node', '.jsx', '.tsx', '.ts'],
|
|
298
306
|
preferBuiltins: true,
|
|
299
|
-
browser:
|
|
300
|
-
dedupe: ['react', 'react-dom']
|
|
307
|
+
browser: true,
|
|
308
|
+
dedupe: ['react', 'react-dom']
|
|
301
309
|
}),
|
|
302
310
|
commonjs({
|
|
303
|
-
sourceMap: !isProduction
|
|
311
|
+
sourceMap: !isProduction,
|
|
312
|
+
requireReturnsDefault: 'auto'
|
|
304
313
|
}),
|
|
305
314
|
markdownPlugin(),
|
|
306
315
|
// Passamos isProduction para ativar a Extração Inteligente
|
|
307
316
|
customPostCssPlugin(isProduction),
|
|
308
317
|
// Substitui forceBase64Plugin pelo Smart
|
|
309
318
|
smartAssetPlugin(isProduction),
|
|
310
|
-
replace({
|
|
311
|
-
preventAssignment: true,
|
|
312
|
-
values: {
|
|
313
|
-
'process.env.NODE_ENV': JSON.stringify(isProduction ? 'production' : 'development')
|
|
314
|
-
}
|
|
315
|
-
}),
|
|
316
319
|
esbuild({
|
|
317
320
|
include: /\.[jt]sx?$/,
|
|
318
321
|
exclude: /node_modules/,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nyte",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.1-alpha.10",
|
|
4
4
|
"description": "Nyte.js is a high-level framework for building web applications with ease and speed. It provides a robust set of tools and features to streamline development and enhance productivity.",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"author": "itsmuzin",
|
|
@@ -60,8 +60,8 @@
|
|
|
60
60
|
"peerDependencies": {
|
|
61
61
|
"express": "^4.0.0",
|
|
62
62
|
"fastify": "^5.6.1",
|
|
63
|
-
"react": "^19.2.
|
|
64
|
-
"react-dom": "^19.2.
|
|
63
|
+
"react": "^19.2.3",
|
|
64
|
+
"react-dom": "^19.2.3"
|
|
65
65
|
},
|
|
66
66
|
"peerDependenciesMeta": {
|
|
67
67
|
"express": {
|
|
@@ -72,17 +72,18 @@
|
|
|
72
72
|
}
|
|
73
73
|
},
|
|
74
74
|
"dependencies": {
|
|
75
|
-
"commander": "^14.0.2",
|
|
76
|
-
"ws": "^8.19.0",
|
|
77
75
|
"@rollup/plugin-alias": "^6.0.0",
|
|
78
76
|
"@rollup/plugin-commonjs": "^29.0.0",
|
|
79
77
|
"@rollup/plugin-node-resolve": "^16.0.3",
|
|
80
78
|
"@rollup/plugin-replace": "^6.0.3",
|
|
81
79
|
"chokidar": "^3.6.0",
|
|
80
|
+
"commander": "^14.0.2",
|
|
82
81
|
"rollup": "^4.55.2",
|
|
83
82
|
"rollup-plugin-esbuild": "^6.2.1",
|
|
84
83
|
"ts-loader": "9.5.4",
|
|
85
|
-
"
|
|
84
|
+
"ts-node": "^10.9.2",
|
|
85
|
+
"typescript": "^5.9.3",
|
|
86
|
+
"ws": "^8.19.0"
|
|
86
87
|
},
|
|
87
88
|
"optionalDependencies": {
|
|
88
89
|
"@fastify/cookie": "^11.0.2",
|