You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> Cú pháp `import()` động là một đoạn ECMAScript (JavaScript)
82
-
> [proposal](https://github.com/tc39/proposal-dynamic-import) hiện tại chưa được xem
83
-
> như một phần tiêu chuẩn của ngôn ngữ. Nó mong đợi sẽ được chấp nhận trong tương lai gần.
84
-
85
78
Khi Webpack chạy đến cú pháp này, nó sẽ tự động phân chia code trong ứng dụng của bạn. Nếu bạn sử dụng Create React App,
86
79
việc này đã được thiết lập sẵn cho bạn và bạn có thể [bắt đầu sử dụng](https://facebook.github.io/create-react-app/docs/code-splitting)
87
80
ngay. Nó cũng được hỗ trợ sẵn trong [Next.js](https://github.com/zeit/next.js/#dynamic-import).
88
-
=======
89
-
When Webpack comes across this syntax, it automatically starts code-splitting
90
-
your app. If you're using Create React App, this is already configured for you
91
-
and you can [start using it](https://facebook.github.io/create-react-app/docs/code-splitting) immediately. It's also supported
92
-
out of the box in [Next.js](https://github.com/zeit/next.js/#dynamic-import).
93
-
>>>>>>> 99b790188735016c72a9265a42dbfc87c3221729
94
81
95
82
Nếu bạn đang tự mình cấu hình Webpack, bạn có thể sẽ muốn tham khảo Webpack's
96
83
[hướng dẫn phân chia code](https://webpack.js.org/guides/code-splitting/). Cấu hình Webpack của bạn có thể sẽ trông mơ hồ [như thế này](https://gist.github.com/gaearon/ca6e803f5c604d37468b0091d9959269).
0 commit comments