📚 论文级功能实现: - ✅ KaTeX数学公式渲染系统 (内联$...1411...1411) - ✅ 高级代码高亮 (行号、标题、语法着色) - ✅ PWA渐进式Web应用支持 - ✅ 多语言代码支持 (20+编程语言) - ✅ 代码行标注系统 (错误/成功/警告/高亮) 🧮 数学公式系统: - LaTeX语法完整支持 - 数学宏定义 (\RR, \NN, \ZZ, \QQ, \CC等) - 复杂公式渲染 (矩阵、积分、求和、分数) - 响应式数学表达式 - 黑暗模式数学公式适配 💻 高级代码展示: - 代码块标题显示 - 行号自动生成 - 语法高亮增强 - 多行高亮标注 - 错误/成功/警告行标记 - 20+编程语言支持 🔧 企业级插件: - @docusaurus/plugin-pwa (离线支持) - rehype-katex (数学公式) - remark-math (数学语法) - remark-gfm (GitHub风格Markdown) - prism-react-renderer (代码高亮) 📊 算法示例升级: - Transformer深度学习模型 - 多头注意力机制实现 - 完整的神经网络架构 - 专业文档注释 - 类型提示和错误处理 🎨 视觉优化: - 数学公式背景框 - 代码行高亮动画 - 专业配色方案 - 渐变边框效果 - 响应式设计适配 📱 PWA功能: - 离线访问支持 - 应用图标配置 - 清单文件完整 - 主题色统一 - 安装提示优化 🚀 性能优化: - 图片质量提升至85% - 代码分割优化 - 字体预加载 - CSS变量系统 - GPU加速渲染 ✨ 用户体验: - 论文级排版标准 - 学术引用格式 - 专业视觉层次 - 无障碍访问支持 - 多设备完美适配
7.4 KiB
7.4 KiB
@rollup/plugin-babel ChangeLog
v5.3.1
2022-02-22
Bugfixes
- fix: consider path delimeter on windows (#1090)
v5.3.0
2021-02-14
Features
- feat: add custom filter option (#767)
- feat: pass rollup context as this context into override config function (#784)
Updates
- docs: typo in README.md (#800)
- chore: commit updated readme format (bfda6d8)
v5.2.3
2021-01-29
Updates
- docs: add usage with commonjs. fixes #622 (6b4b7b6)
- docs: update export in README (#690)
v5.2.2
2020-11-30
Bugfixes
- fix: clone cached helper identifier before returning it (#584)
- fix: strip hash and query param in extension filter (#533)
v5.2.1
2020-09-09
Updates
- chore: add deprecation/migration warnings for the runtime (#534)
v5.2.0
2020-08-13
Features
- feat:
export * as nssupport (#511)
Updates
- chore: update dependencies (13526d6)
v5.1.0
2020-07-12
Features
- feat: add typings (#462)
Updates
- docs: add note about excluding @babel/runtime helpers via regex (#483)
v5.0.4
2020-06-22
Updates
- docs: remove unused import in "Usage" example (#460)
- docs: update node requirement in readme (#443)
- docs: fix typo in readme (#447)
v5.0.3
2020-06-05
Updates
- docs: update
babelHelpersdescription (#397)
v5.0.2
2020-05-20
Bugfixes
- fix: use loadPartialConfigAsync when it is available (#359)
Updates
- docs: Cleanup misleading leftovers in the README (#377)
- docs: correct breaking change note in v5 CHANGELOG (#368)
v5.0.1
2020-05-20
Bugfixes
- fix: use loadPartialConfigAsync when it is available (#359)
Updates
- docs: Cleanup misleading leftovers in the README (#377)
- docs: correct breaking change note in v5 CHANGELOG (#368)
@rollup/plugin-babel changelog
5.0.0
2020-04-27
Features
- Added
getBabelOutputPluginandcreateBabelOutputPluginFactoryexports which can be used to transform generated code - Added
skipPreflightCheckoption. The plugin performs some extra checks to see if the passed configuration is correct and matching its expectations. This comes with some runtime overhead and can slow down builds. If you know what you are doing and you are confident that you have configured things correctly you can disable those checks with this option. - Published as
@rollup/plugin-babel
Updates
- Default export exported as
getBabelInputPluginfor symmetry withgetBabelOutputPlugin
Breaking Changes
- Minimum compatible Rollup version is 1.2.0
- Minimum supported Node version is 10.0.0
.customfactory is now available as separatecreateBabelInputPluginFactoryexport- Removed
externalHelpers&runtimeHelpersoptions. There is now a singlebabelHelpersoption which can take one of'bundled','inline','runtime'and'external'as a value. The default is'bundled'which matches 4.x behavior, but it is recommended to configure this option explicitly.
4.3.2
- Fixed usage with
externalHelpers: trueoption
4.3.1
- Add
.jsextension to the virtual babel helpers file (only matters when usingpreserveModulesoption in rollup)
4.3.0
- Added
.custombuilder. - Fail build when a plugin tries to add non existent babel helper
4.2.0
Allow rollup@1 as peer dependency.
4.1.0
- Fixed "preflight check" for ignored files.
- Return
nullwhen no transformation has been done (fixing source maps for this case)
4.0.3
Fixed fallback class transform in "preflight check".
4.0.2
Fixed rollup peer dependency.
4.0.0
Babel 7 compatible! (dropped Babel 6 compatibility though).
Additionally:
- Internal preflight checks are created now per plugin instance, so using 2 instances of rollup-plugin-babel (i.e. targeting 2 different set of files with include/exclude options) shouldn't conflict with each other
- Transpiling by default only what Babel transpiles - files with those extensions: .js, .jsx, .es6, .es, .mjs. You can customize this with new
extensionsoption. This also fixes long standing issue with rollup-plugin-babel trying to transform JSON files.
3.0.3
- Drop babel7 support. Use 4.0.0-beta if you use babel 7
- Use "module" in addition to "jsnext:main" (#150)
- Remove unused babel helpers namespace declaration & expression (#164)
3.0.2
- Fix regression with Babel 6 (#158)
3.0.1
- Wasn't working, fix bug with transform (not using es2015-classes for preflight check)
3.0.0
- Drop Node 0.10/0.12 (Use native
Object.assign) - Change
babel-coreto be a peerDependency - Support
babel-corev7 as well as a peerDep (no changes necessary)
2.7.1
- Prevent erroneous warnings about duplicated runtime helpers (#105)
- Ignore
ignoreoption in preflight check (#102) - Allow custom
moduleNamewithruntime-helpers(#95)
2.7.0
- Add
externalHelpersWhitelistoption (#92) - Ignore
onlyoption during preflight checks (#98) - Use
options.onwarnif available (#84) - Update documentation and dependencies
2.6.1
- Return a
name
2.6.0
- Use
\0convention for helper module ID (#64)
2.5.1
- Don't mutate
options.plugins(#47)
2.5.0
- Import
babelHelpersrather than injecting them – allowstransformfunction to be pure (#rollup/658)
2.4.0
- Add
externalHelpersoption (#41)
2.3.9
- Do not rename Babel helpers (#34)
2.3.8
- Create new version to (hopefully) solve bizarre CI issue
2.3.7
- Be less clever about renaming Babel helpers (#19)
2.3.6
- Fix cache misses in preflight check (#29)
2.3.5
- Use class transformer local to plugin, not project being built
2.3.4
- Ensure class transformer is present for preflight check, and only run check once per directory (#23)
2.3.3
- Fix helper renaming (#22)
2.3.1-2
- Include correct files in npm package
2.3.0
- Allow
transform-runtimeBabel plugin, if combined withruntimeHelpers: trueoption (#17) - More permissive handling of helpers – only warn if inline helpers are duplicated
- Handle plugins that change export patterns (#18)
2.2.0
- Preflight checks are run per-file, to avoid configuration snafus (#16)
2.1.0
- Generate sourcemaps by default
2.0.1
- Use object-assign ponyfill
- Add travis support
- Fix test
2.0.0
- Babel 6 compatible
1.0.0
- First release