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
{{ message }}
This repository was archived by the owner on Mar 18, 2022. It is now read-only.
Copy file name to clipboardexpand all lines: docs/supported-platforms.md
+52-3
Original file line number
Diff line number
Diff line change
@@ -20,14 +20,12 @@ You can use [sql.js](https://github.com/kripken/sql.js) in the browser.
20
20
In the `browser` folder the package also includes a version compiled as a ES2015 module. If you want to use a different loader this is the point to start. Prior to TypeORM 0.1.7, the package is setup in a way that loaders like webpack will automatically use the `browser` folder. With 0.1.7 this was dropped to support Webpack usage in Node.js projects. This means, that the `NormalModuleReplacementPlugin` has to be used to insure that the correct version is loaded for browser projects. The configuration in your webpack config file, for this plugin looks like this:
21
21
22
22
```js
23
+
// webpack.config.js
23
24
plugins: [
24
25
..., // any existing plugins that you already have
25
26
newwebpack.NormalModuleReplacementPlugin(/typeorm$/, function (result) {
0 commit comments