Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AssetBuilds repeatedly packages the same resources #1186

Open
tocha688 opened this issue Apr 29, 2024 · 0 comments
Open

AssetBuilds repeatedly packages the same resources #1186

tocha688 opened this issue Apr 29, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@tocha688
Copy link

When using assetBuilds, when multiple JSs in the dynamically loaded JS directory contain the same resource, it will output multiple identical resources.

NCC(buildMain, {
        // provide a custom cache path or disable caching
        cache: false,
        // externals to leave as requires of the build
        externals: ["node_modules"],
        // directory outside of which never to emit assets
        filterAssetBase: process.cwd(), // default
        minify: true, // default
        sourceMap: false, // default
        assetBuilds: true, // default
        sourceMapBasePrefix: '../', // default treats sources as output-relative
        // when outputting a sourcemap, automatically include
        // source-map-support in the output file (increases output by 32kB).
        sourceMapRegister: false, // default
        watch: false, // default
        license: '', // default does not generate a license file
        v8cache: false, // default
        quiet: false, // default
        debugLog: false // default
    })

image

I only have one 'schema.prisma' file, but it has packaged a lot of identical files

@styfle styfle added the bug Something isn't working label Apr 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants