-
webpack 性能优化
===
减少 Webpack 打包时间
---
### 1. 优化 Loader
- **babel**最影响效率
> Babel 会将代码转为字符串生成 AST,然后对 AST 继续进行转变最后再生成新的代码,项目越大,转换代码越多
- 优化 Loader 的文件搜索范围a
- 将 Babel 编译过的文件**缓存**起来
```js
…
-
### What problem does this feature solve?
So I don't know if this is a feature or a bug: https://jsfiddle.net/16pyjavn/1/
Feel free to close if that is expected and not in your plan.
I know injecti…
-
In I am trying to re-export functions in #20628:
```tsx
// 🚨 breaks build
export * as shorthands from './shorthands/index';
```
But it's impossible, see #18906. I modified code to use `import…
-
Hi, with my current webpack/babel config, adding this library drastically increased my build time from production ( The development time is fine. ).
- Am I the only one ?
- Is there something we c…
-
Referring to issue #57 (which I am not allowed to comment on) it would be great to see a realworld submission for S/Surpplus (https://github.com/gothinkster/realworld , https://github.com/gothinkster…
-
I have lots of projects with a `license` string in their `package.json` but without a corresponding `LICENSE` file. It would be cool to have a bot periodically survey an organization and create these …
-
## The devDependency [rollup](https://github.com/rollup/rollup) was updated from `1.9.2` to `1.9.3`.
🚨 [View failing branch](https://github.com/mDibyo/with-hooks-support/compare/master...mDibyo:gree…
-
I'm building an app that targets only new browsers but when I `import JSBI from 'jsbi'` Webpack uses the UMD bundle because the [`browser` field from `package.json` takes precedence over `module` fiel…
-
Let's create/find an Image component to use.
Requirements:
Support for srcset and picture. (If it has sources as children will be a picture, if uses srcset, will use an image srcset, src tag by de…
-
Engines are both addons and also not at all addons. For them to convert to v2 I think we need roughly
- to determine what the `main` entry point should be (probably engine.{js/ts})
- determine how…