更新时间:2021-08-27 19:28:41
封面
Title Page
Copyright and Credits
ECMAScript Cookbook
Dedication
PacktPub.com
Why subscribe?
Contributors
About the author
About the reviewers
Packt is searching for authors like you
Preface
Who this book is for
What this book covers
To get the most out of this book
Download the example code files
Conventions used
Sections
Getting ready
How to do it...
How it works...
There's more...
See also
Get in touch
Reviews
Building with Modules
Introduction
Installing and configuring - Chrome
Installing and configuring - Firefox
Installing Python using SimpleHTTPServer to host a local static file server
Creating an HTML page that loads an ECMAScript module
Exporting/importing multiple modules for external use
Renaming imported modules
Nesting modules under a single namespace
Staying Compatible with Legacy Browsers
Installing Node.js with NVM – Linux and macOS
Installing Node.js with NVM: Windows
Installing and configuring webpack
Adding fallback script tags to load client bundles
Shimming methods with Babel Polyfill
Supporting new language features with Babel
Using tools to analyze webpack bundles
Working with Promises
Creating and waiting for Promises