4.11.0-integration-webpack-plugin.2 • Published 1 year ago
@prisma/webpack-plugin v4.11.0-integration-webpack-plugin.2
Prisma Webpack Plugin
Ensures that your Prisma files are copied
Next.js
const { PrismaPlugin } = require('@prisma/webpack-plugin')
module.exports = {
output: 'standalone',
webpack: (config, { isServer }) => {
if (isServer) {
config.plugins = [...config.plugins, new PrismaPlugin()]
}
return config
},
}
Webpack
const { PrismaPlugin } = require('@prisma/webpack-plugin')
module.exports = {
plugins: [new PrismaPlugin()],
}
Known issues
Multiple clients
If you are using multiple clients, they must be of the same version.
This is because the plugin assumes the engines will have same versions.
4.11.0-dev.51
1 year ago
4.11.0-dev.50
1 year ago
4.11.0-integration-webpack-plugin.6
1 year ago
4.11.0-integration-webpack-plugin.5
1 year ago
4.11.0-integration-webpack-plugin.4
1 year ago
4.11.0-integration-webpack-plugin.3
1 year ago
4.11.0-integration-webpack-plugin.2
1 year ago