|
29 | 29 | # Migration information
|
30 | 30 |
|
31 | 31 | - [Migration information](#migration-information)
|
32 |
| - - [Migration to contentful.js 10.x](#migration-to-contentfuljs-10x) |
| 32 | + - [Migration to version 11.x](#migration-to-version-11x) |
33 | 33 | - [Breaking changes](#breaking-changes)
|
| 34 | + - [Node.js core modules](#nodejs-core-modules) |
| 35 | + - [Webpack 5](#webpack-5) |
| 36 | + - [Rollup](#rollup) |
| 37 | + - [Improvements](#improvements) |
| 38 | + - [Tree shaking](#tree-shaking) |
| 39 | + - [Module support and package configuration](#module-support-and-package-configuration) |
| 40 | + - [Testing framework](#testing-framework) |
| 41 | + - [Security](#security) |
| 42 | + - [Removal of eval](#removal-of-eval) |
| 43 | + - [Migration to contentful.js 10.x](#migration-to-contentfuljs-10x) |
| 44 | + - [Breaking changes](#breaking-changes-1) |
34 | 45 | - [Version compatibility](#version-compatibility)
|
35 | 46 | - [Response modifiers](#response-modifiers)
|
| 47 | + - [Query params `resolveLinks` and `removeUnresolved`](#query-params-resolvelinks-and-removeunresolved) |
| 48 | + - [Query param `locale='*'`](#query-param-locale) |
36 | 49 | - [TypeScript](#typescript)
|
37 | 50 | - [Migration to contentful.js 9.x](#migration-to-contentfuljs-9x)
|
38 | 51 | - [Migration to contentful.js 8.x](#migration-to-contentfuljs-8x)
|
@@ -64,6 +77,29 @@ Pre-bundled code
|
64 | 77 |
|
65 | 78 | Pre-bundled code for Node.js is no longer provided. If your setup relies on pre-bundled packages, you may need to adjust your build configuration.
|
66 | 79 |
|
| 80 | +##### Webpack 5 |
| 81 | + |
| 82 | +To make our project bundle properly for the browser with Webpack 5, you need to add this to your configuration: |
| 83 | + |
| 84 | +```js |
| 85 | +module.exports = { |
| 86 | + resolve: { |
| 87 | + fallback: { |
| 88 | + os: false, |
| 89 | + zlib: false, |
| 90 | + tty: false, |
| 91 | + }, |
| 92 | + }, |
| 93 | +}; |
| 94 | +``` |
| 95 | + |
| 96 | +##### Rollup |
| 97 | + |
| 98 | +To make our project bundle properly for the browser with Rollup, you need to add this to your configuration: |
| 99 | + |
| 100 | +```js |
| 101 | +nodeResolve({ browser: true, preferBuiltins: false }) |
| 102 | +``` |
67 | 103 |
|
68 | 104 | ### Improvements
|
69 | 105 |
|
|
0 commit comments