@nlabs/lex 1.48.1 → 1.48.2
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/.storybook/main.ts +31 -1
- package/package.json +6 -6
package/.storybook/main.ts
CHANGED
|
@@ -13,7 +13,37 @@ const config = {
|
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
15
|
},
|
|
16
|
-
stories: ['../src/**/*.stories.@(js|ts|tsx)', '../src/**/*.mdx']
|
|
16
|
+
stories: ['../src/**/*.stories.@(js|ts|tsx)', '../src/**/*.mdx'],
|
|
17
|
+
webpackFinal: async (config) => {
|
|
18
|
+
return {
|
|
19
|
+
...config,
|
|
20
|
+
module: {
|
|
21
|
+
...config.module,
|
|
22
|
+
rules: [
|
|
23
|
+
...(config.module?.rules || []),
|
|
24
|
+
{
|
|
25
|
+
test: /\.(ts|tsx)$/,
|
|
26
|
+
use: [
|
|
27
|
+
{
|
|
28
|
+
loader: 'babel-loader',
|
|
29
|
+
options: {
|
|
30
|
+
presets: [
|
|
31
|
+
'@babel/preset-typescript',
|
|
32
|
+
[
|
|
33
|
+
'@babel/preset-react',
|
|
34
|
+
{
|
|
35
|
+
runtime: 'automatic'
|
|
36
|
+
}
|
|
37
|
+
]
|
|
38
|
+
]
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
]
|
|
42
|
+
}
|
|
43
|
+
]
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
}
|
|
17
47
|
};
|
|
18
48
|
|
|
19
49
|
export default config;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nlabs/lex",
|
|
3
|
-
"version": "1.48.
|
|
3
|
+
"version": "1.48.2",
|
|
4
4
|
"description": "Lex",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -59,7 +59,9 @@
|
|
|
59
59
|
"@babel/core": "^7.28.0",
|
|
60
60
|
"@babel/plugin-transform-nullish-coalescing-operator": "^7.27.1",
|
|
61
61
|
"@babel/plugin-transform-optional-chaining": "^7.27.1",
|
|
62
|
+
"@babel/plugin-transform-runtime": "^7.28.0",
|
|
62
63
|
"@babel/preset-env": "^7.28.0",
|
|
64
|
+
"@babel/preset-react": "^7.27.1",
|
|
63
65
|
"@babel/preset-typescript": "7.27.1",
|
|
64
66
|
"@luckycatfactory/esbuild-graphql-loader": "^3.8.1",
|
|
65
67
|
"@mdx-js/loader": "^3.1.0",
|
|
@@ -85,7 +87,9 @@
|
|
|
85
87
|
"assert": "^2.1.0",
|
|
86
88
|
"autoprefixer": "^10.4.21",
|
|
87
89
|
"babel-jest": "^30.0.4",
|
|
90
|
+
"babel-loader": "^10.0.0",
|
|
88
91
|
"babel-plugin-module-resolver": "^5.0.2",
|
|
92
|
+
"babel-plugin-transform-import-meta": "^2.3.3",
|
|
89
93
|
"boxen": "8.0.1",
|
|
90
94
|
"buffer": "^6.0.3",
|
|
91
95
|
"caniuse-lite": "1.0.30001727",
|
|
@@ -181,16 +185,12 @@
|
|
|
181
185
|
"webpack-plugin-serve": "^1.6.0"
|
|
182
186
|
},
|
|
183
187
|
"devDependencies": {
|
|
184
|
-
"@babel/plugin-transform-runtime": "^7.28.0",
|
|
185
|
-
"@babel/preset-react": "^7.27.1",
|
|
186
188
|
"@types/jest": "^30.0.0",
|
|
187
189
|
"@types/luxon": "^3.6.2",
|
|
188
190
|
"@types/node": "^24.0.14",
|
|
189
191
|
"@types/ora": "^3.2.0",
|
|
190
192
|
"@types/react": "^19.1.8",
|
|
191
|
-
"@types/webpack": "^5.28.5"
|
|
192
|
-
"babel-loader": "^10.0.0",
|
|
193
|
-
"babel-plugin-transform-import-meta": "^2.3.3"
|
|
193
|
+
"@types/webpack": "^5.28.5"
|
|
194
194
|
},
|
|
195
195
|
"peerDependencies": {
|
|
196
196
|
"@storybook/react": "^9.0.17",
|