-
Notifications
You must be signed in to change notification settings - Fork 1
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
An error will occur in "library mode" #121
Comments
I have received the feedback and will reply as soon as possible. |
Setting autoExcludeNodeModules to false can resolve the error, but obfuscation will not be performed. I will need some time to handle this. |
@z0ffy not working import { defineConfig } from 'vite';
import { resolve } from 'path';
import vitePluginBundleObfuscator from 'vite-plugin-bundle-obfuscator';
const minimizeObfuscatorConfig = {
autoExcludeNodeModules: true,
threadPool: true,
};
export default defineConfig({
build: {
lib: {
entry: resolve(__dirname, 'src/main.ts'),
formats: ['umd'],
name: 'test',
},
rollupOptions: {},
},
plugins: [
vitePluginBundleObfuscator(minimizeObfuscatorConfig),
],
}); error during build:
Invalid value for option "output.manualChunks" - this option is not supported for "output.inlineDynamicImports".
at getRollupError (file:///Volumes/D/khanakia/Downloads/thewildai_chatbot_bubble/node_modules/.pnpm/[email protected]/node_modules/rollup/dist/es/shared/parseAst.js:396:41)
at error (file:///Volumes/D/khanakia/Downloads/thewildai_chatbot_bubble/node_modules/.pnpm/[email protected]/node_modules/rollup/dist/es/shared/parseAst.js:392:42)
at getManualChunks (file:///Volumes/D/khanakia/Downloads/thewildai_chatbot_bubble/node_modules/.pnpm/[email protected]/node_modules/rollup/dist/es/shared/node-entry.js:22648:20)
at normalizeOutputOptions (file:///Volumes/D/khanakia/Downloads/thewildai_chatbot_bubble/node_modules/.pnpm/[email protected]/node_modules/rollup/dist/es/shared/node-entry.js:22436:23)
at getOutputOptions (file:///Volumes/D/khanakia/Downloads/thewildai_chatbot_bubble/node_modules/.pnpm/[email protected]/node_modules/rollup/dist/es/shared/node-entry.js:22806:12)
at getOutputOptionsAndPluginDriver (file:///Volumes/D/khanakia/Downloads/thewildai_chatbot_bubble/node_modules/.pnpm/[email protected]/node_modules/rollup/dist/es/shared/node-entry.js:22801:19)
at handleGenerateWrite (file:///Volumes/D/khanakia/Downloads/thewildai_chatbot_bubble/node_modules/.pnpm/[email protected]/node_modules/rollup/dist/es/shared/node-entry.js:22777:74)
at buildEnvironment (file:///Volumes/D/khanakia/Downloads/thewildai_chatbot_bubble/node_modules/.pnpm/[email protected][email protected]/node_modules/vite/dist/node/chunks/dep-M1IYMR16.js:51082:16)
at Object.defaultBuildApp [as buildApp] (file:///Volumes/D/khanakia/Downloads/thewildai_chatbot_bubble/node_modules/.pnpm/[email protected][email protected]/node_modules/vite/dist/node/chunks/dep-M1IYMR16.js:51513:5)
at CAC.<anonymous> (file:///Volumes/D/khanakia/Downloads/thewildai_chatbot_bubble/node_modules/.pnpm/[email protected][email protected]/node_modules/vite/dist/node/cli.js:853:7)
ELIFECYCLE Command failed with exit code 1.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When I use "library mode" to package, an error occurs:
vite.config.ts:
The text was updated successfully, but these errors were encountered: