@nlabs/lex 1.52.4 → 1.52.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.
- package/package.json +11 -11
- package/webpack.config.js +4 -6
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nlabs/lex",
|
|
3
|
-
"version": "1.52.
|
|
3
|
+
"version": "1.52.6",
|
|
4
4
|
"description": "Lex",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -93,15 +93,15 @@
|
|
|
93
93
|
"@babel/runtime-corejs3": "^7.28.4",
|
|
94
94
|
"@mdx-js/loader": "^3.1.1",
|
|
95
95
|
"@nlabs/webpack-plugin-static-site": "*",
|
|
96
|
-
"@storybook/addon-docs": "^10.1.
|
|
97
|
-
"@storybook/addon-links": "^10.1.
|
|
96
|
+
"@storybook/addon-docs": "^10.1.6",
|
|
97
|
+
"@storybook/addon-links": "^10.1.6",
|
|
98
98
|
"@storybook/addon-postcss": "^2.0.0",
|
|
99
99
|
"@storybook/addon-styling-webpack": "^3.0.0",
|
|
100
|
-
"@storybook/addon-themes": "^10.1.
|
|
100
|
+
"@storybook/addon-themes": "^10.1.6",
|
|
101
101
|
"@storybook/addon-webpack5-compiler-babel": "^4.0.0",
|
|
102
|
-
"@storybook/cli": "^10.1.
|
|
103
|
-
"@storybook/react": "^10.1.
|
|
104
|
-
"@storybook/react-webpack5": "^10.1.
|
|
102
|
+
"@storybook/cli": "^10.1.6",
|
|
103
|
+
"@storybook/react": "^10.1.6",
|
|
104
|
+
"@storybook/react-webpack5": "^10.1.6",
|
|
105
105
|
"@swc/core": "^1.15.3",
|
|
106
106
|
"@tailwindcss/nesting": "^0.0.0-insiders.565cd3e",
|
|
107
107
|
"@tailwindcss/postcss": "4.1.17",
|
|
@@ -117,7 +117,7 @@
|
|
|
117
117
|
"babel-plugin-transform-import-meta": "^2.3.3",
|
|
118
118
|
"boxen": "8.0.1",
|
|
119
119
|
"buffer": "^6.0.3",
|
|
120
|
-
"caniuse-lite": "1.0.
|
|
120
|
+
"caniuse-lite": "1.0.30001760",
|
|
121
121
|
"chalk": "^5.6.2",
|
|
122
122
|
"commander": "^14.0.2",
|
|
123
123
|
"compare-versions": "^6.1.1",
|
|
@@ -194,7 +194,7 @@
|
|
|
194
194
|
"source-map-loader": "^5.0.0",
|
|
195
195
|
"speed-measure-webpack-plugin": "^1.5.0",
|
|
196
196
|
"static-site-generator-webpack-plugin": "3.4.2",
|
|
197
|
-
"storybook": "^10.1.
|
|
197
|
+
"storybook": "^10.1.6",
|
|
198
198
|
"stream-browserify": "^3.0.0",
|
|
199
199
|
"stream-http": "^3.2.0",
|
|
200
200
|
"style-loader": "^4.0.0",
|
|
@@ -212,7 +212,7 @@
|
|
|
212
212
|
"util": "^0.12.5",
|
|
213
213
|
"vm-browserify": "^1.1.2",
|
|
214
214
|
"webpack": "5.103.0",
|
|
215
|
-
"webpack-bundle-analyzer": "^5.0
|
|
215
|
+
"webpack-bundle-analyzer": "^5.1.0",
|
|
216
216
|
"webpack-cli": "^6.0.1",
|
|
217
217
|
"webpack-merge": "^6.0.1",
|
|
218
218
|
"webpack-nano": "^1.1.1",
|
|
@@ -224,7 +224,7 @@
|
|
|
224
224
|
"@types/express": "^5.0.6",
|
|
225
225
|
"@types/jest": "^30.0.0",
|
|
226
226
|
"@types/luxon": "^3.7.1",
|
|
227
|
-
"@types/node": "^24.10.
|
|
227
|
+
"@types/node": "^24.10.2",
|
|
228
228
|
"@types/ora": "^3.2.0",
|
|
229
229
|
"@types/react": "^19.2.7",
|
|
230
230
|
"@types/webpack": "^5.28.5"
|
package/webpack.config.js
CHANGED
|
@@ -15,9 +15,7 @@ import {existsSync} from 'fs';
|
|
|
15
15
|
import {sync as globSync} from 'glob';
|
|
16
16
|
import HtmlWebPackPlugin from 'html-webpack-plugin';
|
|
17
17
|
import isEmpty from 'lodash/isEmpty.js';
|
|
18
|
-
import {createRequire} from 'module';
|
|
19
18
|
import {resolve as pathResolve} from 'path';
|
|
20
|
-
import {fileURLToPath} from 'url';
|
|
21
19
|
import postcssBrowserReporter from 'postcss-browser-reporter';
|
|
22
20
|
import postcssCustomProperties from 'postcss-custom-properties';
|
|
23
21
|
import postcssFlexbugsFixes from 'postcss-flexbugs-fixes';
|
|
@@ -42,7 +40,6 @@ const {ProgressPlugin, ProvidePlugin} = webpack;
|
|
|
42
40
|
const isProduction = process.env.NODE_ENV === 'production';
|
|
43
41
|
const lexConfig = JSON.parse(process.env.LEX_CONFIG) || {};
|
|
44
42
|
const dirName = new URL('.', import.meta.url).pathname;
|
|
45
|
-
const require = createRequire(fileURLToPath(import.meta.url));
|
|
46
43
|
|
|
47
44
|
const {
|
|
48
45
|
isStatic,
|
|
@@ -234,7 +231,8 @@ if(staticPaths.length) {
|
|
|
234
231
|
if(existsSync(`${sourceFullPath}/${lexConfig.entryHTML}`)) {
|
|
235
232
|
plugins.push(
|
|
236
233
|
new HtmlWebPackPlugin({
|
|
237
|
-
|
|
234
|
+
chunks: ['index'],
|
|
235
|
+
filename: lexConfig.entryHTML || './index.html',
|
|
238
236
|
minify: isProduction,
|
|
239
237
|
scriptLoading: 'defer',
|
|
240
238
|
showErrors: !isProduction,
|
|
@@ -686,7 +684,7 @@ export default (webpackEnv, webpackOptions) => {
|
|
|
686
684
|
historyFallback: {
|
|
687
685
|
disableDotRule: true,
|
|
688
686
|
htmlAcceptHeaders: ['text/html', '*/*'],
|
|
689
|
-
index: '/index.html',
|
|
687
|
+
index: '/index.html', // Always point to the output HTML file (webpack always outputs index.html)
|
|
690
688
|
logger: console.log.bind(console),
|
|
691
689
|
rewrites: [
|
|
692
690
|
{
|
|
@@ -757,7 +755,7 @@ export default (webpackEnv, webpackOptions) => {
|
|
|
757
755
|
open: process.env.WEBPACK_DEV_OPEN === 'true',
|
|
758
756
|
port: finalPort,
|
|
759
757
|
progress: 'minimal',
|
|
760
|
-
static:
|
|
758
|
+
static: outputFullPath ? [outputFullPath] : [], // Always include output path to serve generated HTML
|
|
761
759
|
status: true
|
|
762
760
|
})
|
|
763
761
|
);
|