@mirta/rollup 0.4.12 → 0.5.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/config-package.mjs +0 -1
- package/dist/index.mjs +0 -1
- package/dist/package.mjs +1 -8
- package/dist/runtime.mjs +9 -2
- package/package.json +9 -10
package/dist/config-package.mjs
CHANGED
package/dist/index.mjs
CHANGED
package/dist/package.mjs
CHANGED
|
@@ -2,7 +2,6 @@ import ts$1 from '@rollup/plugin-typescript';
|
|
|
2
2
|
import nodeResolve from '@rollup/plugin-node-resolve';
|
|
3
3
|
import commonjs from '@rollup/plugin-commonjs';
|
|
4
4
|
import replace from '@rollup/plugin-replace';
|
|
5
|
-
import copy from 'rollup-plugin-copy';
|
|
6
5
|
import dts from 'rollup-plugin-dts';
|
|
7
6
|
import { A as AstTransformError, d as del, N as NpmBuildError } from './errors.mjs';
|
|
8
7
|
import ts from 'typescript';
|
|
@@ -972,7 +971,6 @@ function createBuildConfig(buildName, options) {
|
|
|
972
971
|
// При запуске команды build, проверки TS и генерация определений
|
|
973
972
|
// выполняются единожды - для первой конфигурации.
|
|
974
973
|
hasTsChecked = true;
|
|
975
|
-
const assetsSrc = toPosix(nodePath.join(cwd, 'public/*'));
|
|
976
974
|
return {
|
|
977
975
|
input,
|
|
978
976
|
external,
|
|
@@ -986,11 +984,6 @@ function createBuildConfig(buildName, options) {
|
|
|
986
984
|
nodeResolve(),
|
|
987
985
|
commonjs(),
|
|
988
986
|
...plugins,
|
|
989
|
-
copy({
|
|
990
|
-
targets: [
|
|
991
|
-
{ src: assetsSrc, dest: outPath },
|
|
992
|
-
],
|
|
993
|
-
}),
|
|
994
987
|
],
|
|
995
988
|
output,
|
|
996
989
|
};
|
|
@@ -1023,7 +1016,7 @@ function createReplacePlugin(isProduction, isBundlerEsmBuild, isNodeBuild) {
|
|
|
1023
1016
|
return replace({
|
|
1024
1017
|
preventAssignment: true,
|
|
1025
1018
|
values: replacements,
|
|
1026
|
-
delimiters: ['\\b', '\\b(?![\\.\\:])'],
|
|
1019
|
+
delimiters: ['\\b', '\\b(?![\'"]?[\\.\\:])'],
|
|
1027
1020
|
});
|
|
1028
1021
|
}
|
|
1029
1022
|
|
package/dist/runtime.mjs
CHANGED
|
@@ -260,6 +260,11 @@ async function defineRuntimeConfig(options = {}) {
|
|
|
260
260
|
babel({
|
|
261
261
|
babelHelpers: 'bundled',
|
|
262
262
|
extensions: ['.ts', '.js', '.mjs'],
|
|
263
|
+
generatorOpts: {
|
|
264
|
+
jsescOption: {
|
|
265
|
+
minimal: true,
|
|
266
|
+
},
|
|
267
|
+
},
|
|
263
268
|
presets: [
|
|
264
269
|
['@babel/preset-env', {
|
|
265
270
|
exclude: [
|
|
@@ -285,11 +290,13 @@ async function defineRuntimeConfig(options = {}) {
|
|
|
285
290
|
cwd,
|
|
286
291
|
rootDir: monorepoContext.rootDir,
|
|
287
292
|
}),
|
|
293
|
+
'process.env.NODE_ENV': JSON.stringify(mode),
|
|
288
294
|
// Признак сборки в режиме разработки
|
|
289
|
-
__DEV__: JSON.stringify(!isProduction),
|
|
295
|
+
'__DEV__': JSON.stringify(!isProduction),
|
|
290
296
|
// Автоматически меняется в процессе тестирования
|
|
291
|
-
__TEST__: 'false',
|
|
297
|
+
'__TEST__': 'false',
|
|
292
298
|
},
|
|
299
|
+
delimiters: ['\\b', '\\b(?![\'"]?[\\.\\:])'],
|
|
293
300
|
}),
|
|
294
301
|
// Очистка виртуальных файлов после сборки
|
|
295
302
|
del({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mirta/rollup",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.1",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"description": "Predefined Rollup configuration for wb-rules project builds",
|
|
6
6
|
"keywords": [
|
|
@@ -50,11 +50,11 @@
|
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
52
|
"@babel/core": "^7.29.0",
|
|
53
|
-
"@babel/preset-env": "^7.29.
|
|
53
|
+
"@babel/preset-env": "^7.29.2",
|
|
54
54
|
"@babel/plugin-transform-spread": "^7.28.6",
|
|
55
|
-
"@dotenvx/dotenvx": "^1.
|
|
55
|
+
"@dotenvx/dotenvx": "^1.55.1",
|
|
56
56
|
"@rollup/plugin-babel": "^6.1.0",
|
|
57
|
-
"@rollup/plugin-commonjs": "^29.0.
|
|
57
|
+
"@rollup/plugin-commonjs": "^29.0.2",
|
|
58
58
|
"@rollup/plugin-multi-entry": "^7.1.0",
|
|
59
59
|
"@rollup/plugin-node-resolve": "^16.0.3",
|
|
60
60
|
"@rollup/plugin-replace": "^6.0.3",
|
|
@@ -62,16 +62,15 @@
|
|
|
62
62
|
"babel-plugin-array-includes": "^2.0.3",
|
|
63
63
|
"del": "^8.0.1",
|
|
64
64
|
"magic-string": "^0.30.21",
|
|
65
|
-
"rollup-plugin-copy": "^3.5.0",
|
|
66
65
|
"rollup-plugin-dts": "^6.3.0",
|
|
67
66
|
"find-up": "^8.0.0",
|
|
68
|
-
"@mirta/basics": "0.
|
|
69
|
-
"@mirta/env-loader": "0.
|
|
70
|
-
"@mirta/
|
|
71
|
-
"@mirta/
|
|
67
|
+
"@mirta/basics": "0.5.1",
|
|
68
|
+
"@mirta/env-loader": "0.5.1",
|
|
69
|
+
"@mirta/workspace": "0.5.1",
|
|
70
|
+
"@mirta/package": "0.5.1"
|
|
72
71
|
},
|
|
73
72
|
"devDependencies": {
|
|
74
|
-
"rollup": "^4.
|
|
73
|
+
"rollup": "^4.59.0",
|
|
75
74
|
"typescript": "^5.8.3"
|
|
76
75
|
},
|
|
77
76
|
"peerDependencies": {
|