Skip to content

[!] RollupError: Unexpected character '@' (Note that you need plugins to import files that are not JavaScript) #5167

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

You must be logged in to vote

figured it out finally. You need to exclude the css files from the types config

{
    input: 'src/index.ts',
    output: [{ file: 'dist/types.d.ts', format: 'es' }],
    plugins: [dts.default()],
    external: [/\.css$/],
  },

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ljmerza
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