diff --git a/README-zh_CN.md b/README-zh_CN.md index 17db14b..3db8bb9 100644 --- a/README-zh_CN.md +++ b/README-zh_CN.md @@ -44,6 +44,8 @@ dt-sql-parser 是一个基于 [ANTLR4](https://github.com/antlr/antlr4) 开发 ## 与 MonacoEditor 集成 我们提供了[monaco-sql-languages](https://github.com/DTStack/monaco-sql-languages),通过它你可以轻易的将`dt-sql-parser`与`monaco-editor`集成。 +>提示:如果想要在浏览器中运行 `dt-sql-parser`,请不要忘记安装 `assert` 和 `util` 的 polyfills 包,另外还需要定义全局变量 `process.env`。 在 node 环境中则不需要,因为 node 内置了这些。 +
## 安装 diff --git a/README.md b/README.md index 8a3acd0..edb2dad 100644 --- a/README.md +++ b/README.md @@ -47,6 +47,9 @@ Additionally, it provides auxiliary functions such as **SQL splitting** and **co We have provided [monaco-sql-languages](https://github.com/DTStack/monaco-sql-languages), it is easily to integrate with `monaco-editor`. +>Tips: If you want to run `dt-sql-parser` in browser, don't forget to install the `assert` and `util` polyfills, and define the global variable `process.env`. + None of this is needed in the node environment, because node has them built-in. +
## Installation