May 2019
Intermediate to advanced
496 pages
10h 38m
English
Jest includes Babel, which transpiles all our code when it's run in the test environment. But what about when we're serving our code via our website? Jest won't be able to help us there.
That's where Webpack comes in, and we can introduce it now to help us, do a quick manual test:
npm install --save-dev webpack webpack-cli babel-loader
"build": "webpack",
const path = require("path");const webpack = require("webpack");module.exports = { mode: "development", ...Read now
Unlock full access