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

feat: vue composition api use (Rollup issues) #1370

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

davidjbradshaw
Copy link
Owner

Atempt to fix @divine #1364 PR

Issue is that Rollup won't accept TS in a .vue file. To fix this, I have

  • Changed @rollup/typescript -> rollup-plugin-typescript2
  • Changed packages/vue/index.js -> packages/vue/index.ts
  • Added @rollup/plugin-alias with alias({ entries: [{ find: /^@\/(.+)/, replacement: './$1' }] }),
  • Added @vue/tsconfig": "^0.7.0
  • Added packages/vue/vue.d.ts
  • Added tsconfig.json

Yet Rollup still refuses to read the .vue file with TypeScript.

packages/vue/index.ts → dist/vue/index.umd.js, dist/vue/index.esm.js, dist/vue/index.cjs.js...
[!] (plugin rpt2) RollupError: packages/vue/iframe-resizer.vue?vue&type=script&setup=true&lang.ts (7:5): Expected ';', '}' or <eof> (Note that you need plugins to import files that are not JavaScript)
packages/vue/iframe-resizer.vue?vue&type=script&setup=true&lang.ts (7:5)

@davidjbradshaw davidjbradshaw changed the title feat: vue composition api use feat: vue composition api use (Rollup issues) Dec 22, 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

Successfully merging this pull request may close these issues.

2 participants