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
Copy file name to clipboardExpand all lines: README.md
+18Lines changed: 18 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,24 @@
2
2
You can use TypeORM in connection with the `cordova-sqlite-storage` plugin in your Ionic app.
3
3
This project demonstrates how that would work.
4
4
5
+
## TypeORM >= 0.1.8
6
+
To support webpack builds outside of Ionic we had to remove the automatic selection of the correct TypeORM version (the `typeorm` package comes with a Node and a browser version). In order to keep using TypeORM with Ionic you have to create a custom `webpack.config.js` file. This example contains one that is identical to the one Ionic uses when no config file is specified but adds the `NormalModuleReplacementPlugin` to select the correct version.
7
+
If you already have a custom webpack config file you have to add these lines to your plugins (for both development and production):
8
+
```js
9
+
plugins: [
10
+
...,
11
+
newwebpack.NormalModuleReplacementPlugin(/typeorm$/, function (result) {
0 commit comments