0.0.5 • Published 1 year ago

experimental-prisma-webpack-plugin v0.0.5

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

Experimental Prisma Webpack Plugin

Ensures that your Prisma files are copied

Next.js

const { PrismaPlugin } = require('experimental-prisma-webpack-plugin')

module.exports = {
  output: 'standalone',
  webpack: (config, { isServer }) => {
    if (isServer) {
      config.plugins = [...config.plugins, new PrismaPlugin()]
    }

    return config
  },
}

Webpack

const { PrismaPlugin } = require('experimental-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.

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago