@tramvai/storybook-addon 6.79.5 → 6.79.6
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.
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { Configuration } from 'webpack';
|
|
2
2
|
import { StorybookOptions } from '../types';
|
|
3
|
+
export declare const defaultIncludeList: RegExp[];
|
|
3
4
|
export declare function addNodeModulesTranspile({ baseConfig, options, }: {
|
|
4
5
|
baseConfig: Configuration;
|
|
5
6
|
options?: StorybookOptions;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"addNodeModulesTranspile.d.ts","sourceRoot":"","sources":["../../src/webpack/addNodeModulesTranspile.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAG7C,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAE5C,wBAAgB,uBAAuB,CAAC,EACtC,UAAU,EACV,OAAO,GACR,EAAE;IACD,UAAU,EAAE,aAAa,CAAC;IAC1B,OAAO,CAAC,EAAE,gBAAgB,CAAC;CAC5B,QASA"}
|
|
1
|
+
{"version":3,"file":"addNodeModulesTranspile.d.ts","sourceRoot":"","sources":["../../src/webpack/addNodeModulesTranspile.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAG7C,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAE5C,eAAO,MAAM,kBAAkB,UAI9B,CAAC;AAEF,wBAAgB,uBAAuB,CAAC,EACtC,UAAU,EACV,OAAO,GACR,EAAE;IACD,UAAU,EAAE,aAAa,CAAC;IAC1B,OAAO,CAAC,EAAE,gBAAgB,CAAC;CAC5B,QASA"}
|
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.addNodeModulesTranspile = void 0;
|
|
3
|
+
exports.addNodeModulesTranspile = exports.defaultIncludeList = void 0;
|
|
4
4
|
const is_modern_lib_1 = require("@tinkoff/is-modern-lib");
|
|
5
5
|
const babelConfigFactory_1 = require("../babel/babelConfigFactory");
|
|
6
|
+
exports.defaultIncludeList = [
|
|
7
|
+
/[\\/]cli[\\/]lib[\\/]external[\\/]/,
|
|
8
|
+
/[\\/]api[\\/]lib[\\/]virtual[\\/]/,
|
|
9
|
+
/virtual:tramvai/,
|
|
10
|
+
];
|
|
6
11
|
function addNodeModulesTranspile({ baseConfig, options, }) {
|
|
7
12
|
baseConfig.module?.rules?.push({
|
|
8
13
|
test: /\.[cm]?js[x]?$/,
|
|
@@ -19,10 +24,10 @@ function getLoaderInclude(include) {
|
|
|
19
24
|
return is_modern_lib_1.modernLibsFilter;
|
|
20
25
|
}
|
|
21
26
|
if (Array.isArray(include)) {
|
|
22
|
-
return include.map((item) => new RegExp(item));
|
|
27
|
+
return include.map((item) => new RegExp(item)).concat(exports.defaultIncludeList);
|
|
23
28
|
}
|
|
24
29
|
if (include === 'none') {
|
|
25
|
-
return
|
|
30
|
+
return exports.defaultIncludeList;
|
|
26
31
|
}
|
|
27
32
|
return [/node_modules/];
|
|
28
33
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"addNodeModulesTranspile.js","sourceRoot":"","sources":["../../src/webpack/addNodeModulesTranspile.ts"],"names":[],"mappings":";;;AACA,0DAA0D;AAC1D,oEAAiE;
|
|
1
|
+
{"version":3,"file":"addNodeModulesTranspile.js","sourceRoot":"","sources":["../../src/webpack/addNodeModulesTranspile.ts"],"names":[],"mappings":";;;AACA,0DAA0D;AAC1D,oEAAiE;AAGpD,QAAA,kBAAkB,GAAG;IAChC,oCAAoC;IACpC,mCAAmC;IACnC,iBAAiB;CAClB,CAAC;AAEF,SAAgB,uBAAuB,CAAC,EACtC,UAAU,EACV,OAAO,GAIR;IACC,UAAU,CAAC,MAAM,EAAE,KAAK,EAAE,IAAI,CAAC;QAC7B,IAAI,EAAE,gBAAgB;QACtB,OAAO,EAAE,gBAAgB,CAAC,OAAO,EAAE,uBAAuB,CAAC;QAC3D,yCAAyC;QACzC,OAAO,EAAE,yBAAyB;QAClC,MAAM,EAAE,cAAc;QACtB,OAAO,EAAE,IAAA,uCAAkB,EAAC,EAAE,UAAU,EAAE,KAAK,EAAE,CAAC;KACnD,CAAC,CAAC;AACL,CAAC;AAfD,0DAeC;AAED,SAAS,gBAAgB,CAAC,OAAoD;IAC5E,IAAI,OAAO,KAAK,aAAa,IAAI,CAAC,OAAO,EAAE;QACzC,OAAO,gCAAgB,CAAC;KACzB;IAED,IAAI,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE;QAC1B,OAAO,OAAO,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,0BAAkB,CAAC,CAAC;KAC3E;IAED,IAAI,OAAO,KAAK,MAAM,EAAE;QACtB,OAAO,0BAAkB,CAAC;KAC3B;IAED,OAAO,CAAC,cAAc,CAAC,CAAC;AAC1B,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tramvai/storybook-addon",
|
|
3
|
-
"version": "6.79.
|
|
3
|
+
"version": "6.79.6",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "lib/preset.js",
|
|
6
6
|
"typings": "lib/preset.d.ts",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@tanstack/react-query": ">=4.0.0 <=5.72.1",
|
|
24
24
|
"@tinkoff/is-modern-lib": "6.1.2",
|
|
25
|
-
"@tramvai/test-mocks": "6.79.
|
|
25
|
+
"@tramvai/test-mocks": "6.79.6",
|
|
26
26
|
"tsconfig-paths-webpack-plugin": "^4.2.0",
|
|
27
27
|
"webpack-chain": "^6.5.1",
|
|
28
28
|
"webpack-merge": "^5.8.0"
|
|
@@ -34,13 +34,13 @@
|
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
36
|
"@tinkoff/dippy": "0.12.7",
|
|
37
|
-
"@tinkoff/router": "0.6.
|
|
37
|
+
"@tinkoff/router": "0.6.163",
|
|
38
38
|
"@tinkoff/url": "0.12.3",
|
|
39
|
-
"@tramvai/cli": "6.79.
|
|
40
|
-
"@tramvai/core": "6.79.
|
|
41
|
-
"@tramvai/react": "6.79.
|
|
42
|
-
"@tramvai/state": "6.79.
|
|
43
|
-
"@tramvai/tokens-common": "6.79.
|
|
39
|
+
"@tramvai/cli": "6.79.6",
|
|
40
|
+
"@tramvai/core": "6.79.6",
|
|
41
|
+
"@tramvai/react": "6.79.6",
|
|
42
|
+
"@tramvai/state": "6.79.6",
|
|
43
|
+
"@tramvai/tokens-common": "6.79.6",
|
|
44
44
|
"react": ">=16.14.0"
|
|
45
45
|
}
|
|
46
46
|
}
|