vatts 1.0.4-alpha.1 → 1.0.5-alpha.1
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 +3 -1
- package/package.json +2 -1
package/dist/builder.js
CHANGED
|
@@ -25,6 +25,7 @@ const nodeResolve = require('@rollup/plugin-node-resolve').default;
|
|
|
25
25
|
const commonjs = require('@rollup/plugin-commonjs').default;
|
|
26
26
|
const replace = require('@rollup/plugin-replace').default;
|
|
27
27
|
const esbuild = require('rollup-plugin-esbuild').default;
|
|
28
|
+
const jsonPlugin = require("@rollup/plugin-json").default;
|
|
28
29
|
const { loadTsConfigPaths, resolveTsConfigAlias } = require('./tsconfigPaths');
|
|
29
30
|
const tsconfigPathsPlugin = (projectDir = process.cwd()) => {
|
|
30
31
|
const info = loadTsConfigPaths(projectDir);
|
|
@@ -326,6 +327,7 @@ function createRollupConfig(entryPoint, outdir, isProduction) {
|
|
|
326
327
|
customPostCssPlugin(isProduction),
|
|
327
328
|
// Assets Otimizados (menos Base64)
|
|
328
329
|
smartAssetPlugin(isProduction),
|
|
330
|
+
jsonPlugin(),
|
|
329
331
|
esbuild({
|
|
330
332
|
include: /\.[jt]sx?$/,
|
|
331
333
|
exclude: /node_modules/,
|
|
@@ -336,7 +338,7 @@ function createRollupConfig(entryPoint, outdir, isProduction) {
|
|
|
336
338
|
target: isProduction ? 'es2020' : 'esnext',
|
|
337
339
|
jsx: 'automatic',
|
|
338
340
|
define: { __VERSION__: '"1.0.0"' },
|
|
339
|
-
loaders: { '.
|
|
341
|
+
loaders: { '.js': 'jsx' }
|
|
340
342
|
})
|
|
341
343
|
],
|
|
342
344
|
onwarn(warning, warn) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vatts",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.5-alpha.1",
|
|
4
4
|
"description": "Vatts.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",
|
|
@@ -73,6 +73,7 @@
|
|
|
73
73
|
"dependencies": {
|
|
74
74
|
"@rollup/plugin-alias": "^6.0.0",
|
|
75
75
|
"@rollup/plugin-commonjs": "^29.0.0",
|
|
76
|
+
"@rollup/plugin-json": "^6.1.0",
|
|
76
77
|
"@rollup/plugin-node-resolve": "^16.0.3",
|
|
77
78
|
"@rollup/plugin-replace": "^6.0.3",
|
|
78
79
|
"chokidar": "^3.6.0",
|