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

✨ [Feature]: 能否支持确定性编译,确保源码没变化的情况下,编译结果相同 #140

Closed
liubao68 opened this issue Jul 3, 2024 · 2 comments

Comments

@liubao68
Copy link

liubao68 commented Jul 3, 2024

What problem does this feature solve

使用 tiny build 对源码进行编译,在源码没发生改变的情况下,编译的结果不同。

image

这种情况给代码审计和源码交付等工程带来非常大的麻烦。 期望tiny build能够在源码不改变的情况下,编译结果保持一致。

What does the proposed API look like

NA

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


Title: ✨ [Feature]: Can deterministic compilation be supported to ensure that the compilation results are the same even if the source code does not change?

@liubao68
Copy link
Author

liubao68 commented Jul 9, 2024

This can be done by vite config :

    build: {
      rollupOptions: {
        output: {
          manualChunks: {
            vue: ['vue', 'vue-router', 'pinia', '@vueuse/core', 'vue-i18n'],
          },
          entryFileNames: 'assets/[name].js',
          chunkFileNames: 'assets/[name].js',
          assetFileNames: 'assets/[name].[ext]'
        },
      }

@liubao68 liubao68 closed this as completed Jul 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants