Supported platforms
NodeJS
Browser
Webpack configuration
plugins: [
..., // any existing plugins that you already have
new webpack.NormalModuleReplacementPlugin(/typeorm$/, function (result) {
result.request = result.request.replace(/typeorm/, "typeorm/browser");
}),
new webpack.ProvidePlugin({
'window.SQL': 'sql.js/dist/sql-wasm.js'
})
]Example of configuration
Don't forget to include reflect-metadata
Capacitor
Cordova / Ionic apps
Expo
NativeScript
React Native
Last updated