Prisma.io
QuickstartDocsFAQCommunityBlogGitHub
QuickstartDocsFAQCommunityBlogGitHub
Getting StartedConceptsGuidesReferenceSupportAbout
Prisma 1 Docs   
Docs
    • Concepts
      • Overview
        • What is Prisma?
        • Why Prisma?
        • Should you use Prisma?
        • Prisma in your stack
        • Under the hood
      • Components
        • Prisma schema
        • Prisma Client
          • Working with PrismaClient
          • CRUD
          • Select fields
          • Relation queries
          • Filtering and sorting
          • Working with field types
          • Advanced usage of generated types
          • Middleware
          • Pagination
          • Aggregation, grouping, and summarizing
          • Transactions
          • Case sensitivity
          • Null and undefined
          • Raw database access
          • Debugging
          • Deployment
          • Query engine
          • Module bundlers
          • Database polyfills
        • Prisma MigratePreview
        • Introspection
        • Prisma CLI
          • Installing the Prisma CLI
        • Prisma Studio
        • Preview features
      • Database connectors
        • PostgreSQL
        • MySQL
        • SQLite
        • SQL ServerPreview
      • More
        • Editor setup
        • Codemod
        • Telemetry
        • Comparing Prisma
Concepts / Components / Prisma Client

Module bundlers

Overview

Module bundlers bundle JavaScript modules into a single JavaScript file. Most bundlers work by copying over the JavaScript code from a variety of source files into the target file.

Since Prisma Client is not only based on JavaScript code, but also relies on the query engine binary file to be available, you need to make sure that your bundled code has access to the binary file.

To do so, you can use plugins that let you copy over static assets:

BundlerPlugin
Webpackcopy-webpack-plugin
Parcelparcel-plugin-static-files-copy

Was this helpful?

Edit this page on GitHub
CONTENT
  • Overview
Prisma Logo

Products

Prisma ClientPrisma StudioPrisma 1 CloudProduct Roadmap

Resources

DocsGet StartedAPI ReferenceExamplesHow to GraphQLData Guide

Prisma With

Prisma with Next.jsPrisma with GraphQLPrisma with ApolloPrisma with NestJSPrisma with ExpressPrisma with hapi

Community

Meet the CommunitySlackGitHubDiscussionsGraphQL MeetupTypeScript MeetupAdvanced TypeScript Trickery

Company

AboutJobs We're hiring!CausesBlogTerms & PrivacyHTML Sitemap

Newsletter

Stay up to date with the latest features and changes to Prisma

Find Us

Find us on TwitterFind us on YouTubeJoin us on SlackFind us on GitHub

Prisma © 2018-2021.

Made with ❤️ in Berlin and worldwide