Skip to content

Entry file exports not included in the AMD output #5473

Closed Answered by fif154
fif154 asked this question in Q&A
Discussion options

You must be logged in to vote

I have just found out that I have misplaced preserveEntrySignatures option into vite configuration. After moving it into rollup config it is working as expected.
Fixed config:

{
  plugins: [react()],
  build: {
    outDir: "./amd/build",
    rollupOptions: {
      preserveEntrySignatures: "strict",
      input: "./src/main.tsx",
      output: {
        format: "amd",
        entryFileNames: "app-lazy.min.js",
        exports: 'named',
      },
    },
  },
}

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by fif154
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant