We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Unexpected token '@'
Hi! Am I missing something/doing something wrong that the plugin treats decorators as invalid syntax? Thanks!
Here's my config:
import tsConfigPaths from 'rollup-plugin-tsconfig-paths'; import {nodeResolve} from '@rollup/plugin-node-resolve'; import ts from 'rollup-plugin-ts'; export default { input: 'lib/index.ts', output: { dir: 'dist', format: 'cjs', }, plugins: [ tsConfigPaths(), nodeResolve({extensions: ['.tsx', '.ts', '.jsx', '.js', '.json']}), ts({ transpiler: 'swc', browserslist: false, swcConfig: { minify: true, }, }), ], };
And here's the output:
lib/index.ts → dist... [!] (plugin Typescript) Error: × Unexpected token `@`. Expected identifier, string literal, numeric literal or [ for the computed key ╭─[/Users/daniel/code/unstoppable-domains-website/backend/lib/entities/FastlyCachableModel.ts:79:3] 79 │ @AfterInsert() · ─ ╰──── Caused by: 0: failed to process input file 1: Syntax Error lib/entities/FastlyCachableModel.ts Error: × Unexpected token `@`. Expected identifier, string literal, numeric literal or [ for the computed key ╭─[/Users/daniel/code/unstoppable-domains-website/backend/lib/entities/FastlyCachableModel.ts:79:3] 79 │ @AfterInsert() · ─ ╰──── Caused by: 0: failed to process input file 1: Syntax Error
The text was updated successfully, but these errors were encountered:
Unexpected token @.
No branches or pull requests
Hi! Am I missing something/doing something wrong that the plugin treats decorators as invalid syntax? Thanks!
Here's my config:
And here's the output:
The text was updated successfully, but these errors were encountered: