Creating a Locker Service-compatible bundle with webpack

Note that the tools we use here include webpack 3.0, npm, and Node.js. To run the project, it is assumed that your machine has the latest Version of Node.js, npm, and webpack 3.0 installed.

At the time of writing this book, my npm Version is 5.6.0, Node.js Version is 9.50, and webpack Version is 3.8.1.

If you do not have them, then install them using brew for macOS with the following commands.

For Node.js and npm, use the following:

brew install node

To install webpack, use the following. The following command installs it locally for a specific project and version:

npm install --save-dev webpack@3.8.1

Let's take a step-by-step look at how to use an ES6 JavaScript open source plugin, ...

Get Learning Salesforce Lightning Application Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.