alibaba / alibaba/lowcode-engine

> @alilc/lowcode-plugin-code-editor 已知依赖了 @babel/core 而间接依赖了 node 包,webpack 5 去掉了 node 包的 polyfill 导致跑不起来。这个月我把 babel core 替换为 babel-standalone,可以再试试。或者大家有空给 code-editor 提个 PR 我也会看的~

Open
#3,072 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
15.9k
Forks
2.7k
PR merge metrics
No merged PRs in 30d

Description

> @alilc/lowcode-plugin-code-editor 已知依赖了 @babel/core 而间接依赖了 node 包,webpack 5 去掉了 node 包的 polyfill 导致跑不起来。这个月我把 babel core 替换为 babel-standalone,可以再试试。或者大家有空给 code-editor 提个 PR 我也会看的~
>
> > 尝试使用webpack5搭建构建环境: https://github.com/BingBlog/lowcode-starter 整体上是可以运行的,prod场景下,一些优化还没加上。
> > 目前的问题是:@alilc/lowcode-plugin-code-editor 这个插件不行。

大佬,这个有进展吗?目前有个这样的报错
![image](https://user-images.githubusercontent.com/40717741/231703485-42d43f81-caae-45f5-bf2d-653975865699.png)

_Originally posted by @arleyGuoLei in https://github.com/alibaba/lowcode-engine/issues/272#issuecomment-1506572975_

Contributor guide

No contributing guide indexed for this repository

Research direction

Start in the @alilc/lowcode-plugin-code-editor package and inspect its @babel/core dependency and webpack 5 build behavior. Reproduce the reported failure in the linked webpack 5 setup, then verify that the plugin runs without the removed Node polyfills.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript, webpack
Domain
build-system, frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.