Modern.js is a web engineering system, including a web framework and a npm package solution.
MIT License
Bot releases are hidden (Show)
Published by caohuilin about 2 years ago
feat(webpack): let css-loader generate ESModules
feat(webpack): css-loader 生成的产物格式由 CommonJS 调整为 ESModules
chore(runtime): merge @modern-js/plugin-state
to @modern-js/runtime
chore(runtime): 合并 @modern-js/plugin-state
到 @modern-js/runtime
feat: support Pipe and Middleware operators
feat: 支持 Pipe 和 Middleware 操作符
chore(create-request): remove @modern-js/plugin-ssr
from @modern-js/create-request
chore(runtime): @modern-js/create-request
中移除 @modern-js/plugin-ssr
依赖
chore(utils): remove unused code
chore(utils): 移除无用代码
chore(server): delete unused @modern-js/server-utils
dependence
chore(server): 删除未使用的 @modern-js/server-utils
依赖
feat(webpack): support source.preEntry config
feat(webpack): 新增 source.preEntry 配置项
chore(runtime): merge @modern-js/plugin-router
to @modern-js/runtime
chore(runtime): 合并 @modern-js/plugin-router
到 @modern-js/runtime
chore(runtime): merge @modern-js/plugin-ssr
to @modern-js/runtime
chore(runtime): 合并 @modern-js/plugin-ssr
到 @modern-js/runtime
chore(runtime): remove @modern-js/create-request
from @modern-js/runtime
chore(runtime): @modern-js/runtime
中移除 @modern-js/create-request
依赖
chore(bff): remove @modern-js/bff-runtime
from @modern-js/runtime
dependence
chore(bff): @modern-js/runtime
中移除 @modern-js/bff-runtime
依赖
chore(server): merge @modern-js/hmr-client
to @modern-js/server
chore(server): 合并 @modern-js/hmr-client
到 @modern-js/server
fix: using typeof window to determine the browser environment is not accurate
fix: 使用 typeof windows 判断浏览器环境不够准确
chore(app-tools): merge @modern-js/analyze
to @modern-js/app-tools
chore(app-tools): 合并 @modern-js/analyze
到 @modern-js/app-tools
chore(generator): use module-tools bundle function to bundle generator package
chore(generator): 使用 module-tools 的 bundle 功能实现生成器打包
fix: ssg build error when multi entries
fix: 修复多入口下 SSG 构建错误
fix: runtime package ssr path export field
fix: 修复 plugin-runtime ssr 路径导出字段
fix: the SSG callback is called once for each baseUrl, when a user configures multiple baseUrl.
fix: 当用户配置了多个 baseUrl 时,将会为每个 baseUrl 调用一次 SSG 回调函数。
fix: the _SERVER_DATA injection twice causes the prod-server route error.
fix: _SERVER_DATA 二次注入,导致服务器路由错误
fix(webpack): failed to import SVG with query from a CSS file
fix(webpack): 修复从 CSS 文件中引用带 query 的 SVG 时出现报错的问题
fix: package exports field
fix: 修复包导出字段
fix: monorepo new command plugin path
fix: 修复 monorepo tools new 命令计算插件路径
fix: Additional compilation fields
fix: 补充 compilation 字段
fix: allow BFF function to return void
fix: 允许 BFF 函数返回 void
Published by caohuilin about 2 years ago
chore(testing): merge @modern-js/testing-plugin-bff
to @modern-js/plugin-testing
chore(testing): 合并 @modern-js/testing-plugin-bff
到 @modern-js/plugin-testing
chore(testing): delete @modern-js/bff-utils
chore(testing): 删除 @modern-js/bff-utils
chore(testing): merge @modern-js/testing
to @modern-js/plugin-testing
chore(testing): 合并 @modern-js/testing
到 @modern-js/plugin-testing
feat: add addRuntimeExports hooks for module-tools
feat: 为 module-tools 添加 addRuntimeExports 钩子
Published by caohuilin over 2 years ago
chore(generator): remove unbundle from generator options
chore(generator): 不再支持通过 new 命令开启 unbundle 功能
chore(core): move Hooks types define to @modern-js/core
chore(core): 移动 Hooks 类型定义到 @modern-js/core
包
chore(plugin-i18n): merge @modern-js/i18n-cli-language-detector
to @modern-js/plugin-i18n
chore(plugin-i18n): 合并 @modern-js/i18n-cli-language-detector
包到 @modern-js/plugin-i18n
包作为子路径
feat: rumtime config types
feat: 补充 runtime 配置类型
feat: support ListenOptions for prod-server
feat: server 支持传入 listernOptions 参数
chore(core): merge @modern-js/load-config
package to @modern-js/core
utils
chore(core): 合并 @modern-js/load-config
包到 @modern-js/core
包作为 utils 函数
feat: add onApiChange
hook for bff hot reload
feat: 为 BFF 热更新优化,添加 onApiChange
钩子
feat: optimize release note
feat: 优化 Release Note 格式
feat: @modern-js/module-tools
remove @modern-js/plugin-analyze plugin
feat: @modern-js/module-tools
移除 @modern-js/plugin-analyze
插件
feat: prod-server supports that load server env from .env.\*
feat: prod-server 支持从 .env.*
文件加载服务器环境变量
perf(webpack): improve getSourceInclude
performance
perf(webpack): 优化 getSourceInclude
执行性能
feat: @modern-js/plugin-storybook
add @modern-js/plugin-analyze
plugin
feat: @modern-js/plugin-storybook
添加 @modern-js/plugin-analyze
插件
chore(generator-utils): tidy up @modern-js/generator-utils
func
chore(generastor-utils): 整理 @modern-js/generator-utils
导出方法
chore(types): delete http-proxy-middleware
dependence(unused)
chore(types): 删除未使用依赖 http-proxy-middleware
chore(babel-chain): merge @modern-js/babel-chain
to @modern-js/babel-preset-base
chore(babel-chain): 合并 @modern-js/babel-chain
到 @modern-js/babel-preset-base
chore(plugin-storybook): remove @modern-js/esbuild-compiler
from dependencies
chore(plugin-storybook): 移除 @modern-js/esbuild-compiler
依赖
fix(webpack): failed to analyze bundle
fix(webpack): 修复使用 bundle analyze 时报错的问题
fix: ignore cjs and mjs in d.ts bundle
fix: 对 d.ts 做 bundle 时忽略 cjs 和 mjs 资源
feat: update codesmith json api version
feat: 升级 @modern-js/codesmith-api-json
版本
fix(webpack): failed to compile .cjs,.cts,.mts file
fix(webpack): 修复无法编译 .cjs,.cts,.mts 文件的问题
fix: monorepo-tools new command plugin params not work
fix: 修复 monorepo-tools new 命令 plugin 参数不生效问题
fix(generator-plugin): remove addManyFiles
destination empty validate
fix(generator-plugin): 移除 addManyFiles
destination 参数为空的校验
Published by caohuilin over 2 years ago
[#1313] chore(webpack): refactor webpack config, split modules (chore(webpack): 重构 webpack 配置,拆分模块)
[#1323] feat: change webpack output.publicPath
for plugin-storybook
(feat: 修改 plugin-storybook 的 webpack output.publicPath
配置)
[#1325] perf(webpack): optimize terser default options (perf(webpack): 优化 Terser 默认压缩配置,提升压缩率)
[#1306] feat: add gen-release-note
command to generator template (feat: 生成器模板增加 gen-release-note
命令)
[#1326] feat: optimize implentation of registerModernRuntimePath
(feat: 优化 registerModernRuntimePath
的实现)
[#1319] fix: use client init data first if exist (fix: 优先使用用户定义的 init 数据)
[#1330] fix: ssg load plugin correctly(fix: 修复 SSG 加载插件不正确问题)
[#1327] Add additionalProperties: false
to the schema of output.buildConfig
(fix: output.buildConfig
的 schema 增加 additionalProperties: false
配置)
[#1324] fix(webpack): should not inject CSS sourcemap in js bundles (fix(webpack): 修复使用 style-loader 时会将 CSS 的 SourceMap 打包到 JS 中的问题)
[#1320] fix(webpack): failed to import SVG from a CSS file in some cases (fix(webpack): 修复从 CSS 文件中引用 SVG 图片时,可能会出现编译报错的问题)
[#1331] fix(css-config): css minify not work when using style-loader
(fix(css-config): 修复使用 style-loader
时,CSS 代码未被压缩的问题)
Published by targeral over 2 years ago
Features
output.buildConfig
和 output.buildPreset
配置。tools.speedy
配置output.packageMode
以及 output.packageFields
,并提供了 @deprecated
标记和提示。Published by caohuilin over 2 years ago
Features
css-loader
#1252
twin.macro
#1232
App.init
中返回数据,在 context
中通过 initialData
获取,并支持在 SSR 渲染时插入到 HTML window._SSR_DATA
中 #1265
@modern-js/plugin-jarvis
依赖内置到工程方案工具包(@modern-js/app-tools
、@modern-js/module-tools
、@modern-js/monorepo-tools
)中,并移除初始化项目时 @modern-js/plugin-jarvis
依赖 #1267
dev
命令日志展示,不展示 type-check
过程信息,只展示对应错误信息 #1283
package-json
依赖,优化用户依赖大小 #1292
Can't call useContainer out of scope
错误 #1255
server.watchOptions
配置,支持配置 chokidar
文件监听规则 #1290
App.init
或者插件 init
钩子函数中通过 setHeader
和 status
设置 Response 的 Header 和 statusCode #1276
gen-release-note
命令自定义参数,支持异步函数 #1280
devcert
版本号至 v1.2.2
#1252
babel-plugin-import
支持忽略未安装的依赖 #1275
@babel/runtime
版本至 ^7.18.0
#1284
Bug Fix
Published by caohuilin over 2 years ago
Features
modern change-stauts
命令,支持查看当前分支 chagneset 状态 #1218
source.moduleScopes
行为,仅在配置时限制源代码引用路径。#1211 | DOC source.moduleScopes
config/upload
目录下 js 文件压缩策略, 忽略 .min.js
结尾的文件。#1214 | DOC config/upload
tools.webpack
配置中 addRules
、appendPlugins
、prependPlugins
方法简化 #1219 | DOC tools.webpack
farrow-http
依赖,减小包依赖体积 #1221
devcert
依赖至 v1.2.2 #1222
babel-loader
和 ts-loader
编译文件策略 #1241
modern start
命令启动时间 #1244
modern gen-release-note
命令,支持根据 changeset 自动生成 Release Note #1226
Bug Fix
.eslintrc.js
文件位置问题 #1217
applyOptionsChain
类型问题 #1224
createApp
返回组件不可直接被加载问题 #1228
tools.babel
配置中 addIncludes
工具函数类型报错问题 #1235
.prettierrc
文件配置格式化代码 #1243
./dist/storybook-static
#1237
tools.terser
类型 #1247
modern bump
命令未支持 ignore
参数 #1246
ssrByEntries[name]
存在时 SSR 未打包问题 #1249
modern.config.js
中自定义插件失败问题 #1245
babel-loader
编译未忽略 api 目录问题 #1248
Published by caohuilin over 2 years ago
Features
tools.postcss
支持通过 addPlugins
方法添加插件 1183 | DOC tools.postcss
inspect
命令,支持查看当前最终的 webpack 配置 1189 | DOC inspect 命令
tools.less
和 tools.sass
配置支持 addExcludes
方法 1187 | DOC tools.less DOC tools.sass
tools.tsLoader
配置支持 addIncludes
和 addExcludes
方法 1196 | DOC tools.tsLoader
tools.babel
配置支持 addPlugins
、addPresets
、removePlugins
、removePresets
、addIncludes
、addExcludes
方法 1200 | DOC tools.babel
successInfo
字段值自定义创建项目成功展示信息 1207 | DOC 工程方案配置
Bug Fix
Published by caohuilin over 2 years ago
Published by caohuilin over 2 years ago
Published by xuchaobei over 2 years ago
CHAIN_ID
修改 html-webpack-plugin
配置。server.ssrByEntries
构建 SSR bundle。Published by caohuilin over 2 years ago
Published by caohuilin over 2 years ago
Published by caohuilin over 2 years ago
Published by xuchaobei over 2 years ago
afterTest
钩子Published by caohuilin over 2 years ago
Published by caohuilin over 2 years ago
modern.config.ts
文件插件类型定义汇总到 @modern/core 包Published by caohuilin over 2 years ago
Published by caohuilin over 2 years ago