Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

精读《snowpack》 #252

Closed
ascoders opened this issue May 29, 2020 · 3 comments
Closed

精读《snowpack》 #252

ascoders opened this issue May 29, 2020 · 3 comments

Comments

@ascoders
Copy link
Owner

ascoders commented May 29, 2020

snowpack snowpack 针对现代浏览器调试提效的构建工具,配合浏览器 ESM import 移除本地不必要的打包工作,将模块化加载工作交给浏览器,大幅提升本地构建效率。


精读《snowpack》

@ascoders ascoders closed this as completed Jun 1, 2020
@zhoukekestar
Copy link

snowpack 和 pikacdn 一起使用更配哈 ~ 欢迎试用:https://github.com/zhoukekestar/snowpack-plugin-import-map

@random-yang
Copy link

  • snowpack 到底有能力将非 esm 的模块转化为 esm 的能力吗,或者说是能力完备吗?

  • 你在文中提到的下面这句话,指的是什么意思呢?

  1. 项目生态存在非 ESM import 模块化包而导致大量适配成本的风险。

我在官网看到这么一句话:

Snowpack lets you import npm packages directly in the browser. Even if a package was published using a legacy format, Snowpack will up-convert the package to ESM before serving it to the browser.

Snowpack可让您直接在浏览器中导入npm软件包。即使使用旧格式发布了软件包,Snowpack也会在将其提供给浏览器之前将其上转换为ESM。

@ascoders
Copy link
Owner Author

@random-yang 你可以用一下,看看是否一个普通项目所有 npm 包都能完美适配。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants