Registry / web-framework / ember-cli-babel-typescript

ember-cli-babel-typescript

JSON →
library0.0.0-beta.2jsnpmunverified

An ember-cli addon that configures ember-cli-babel for TypeScript transpilation using @babel/plugin-transform-typescript. Version 0.0.0-beta.2, unstable beta release. It installs a beta version of ember-cli-babel with Babel 7 support, adds required transforms, enables .ts file transpilation, and integrates with eslint via typescript-eslint-parser. Does not perform type checking. Differentiator: simplifies TypeScript setup in Ember apps/addons by automating Babel and ESLint config changes.

npm install ember-cli-babel-typescript
INSTALL
IMPORT
SIG · EMBER-CLI-BABEL-TY
E
ember-cli-babel-typescript
web-frameworkjavascriptv0.0.0-beta.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

default export
module.exports = { ... }
export default { ... }
This is an Ember addon, uses CommonJS module.exports for configuration.
'ember-cli-babel-typescript' option in ember-cli-build.js
'ember-cli-babel-typescript': { disable: false }
'ember-cli-babel-typescript': { enabled: true }
Configuration key is a string in ember-cli-build.js options object.

Installs the addon via ember and shows a basic TypeScript component using class syntax.

// ember install the addon ember install @ClarkSource/ember-cli-babel-typescript // Then in your component.js: import Component from '@ember/component'; export default class MyComponent extends Component { greeting: string = 'Hello'; }
Debug
Known issues
deprecatedThis package is a beta and likely superseded by official TypeScript support in Ember CLI.
fix
Consider using ember-cli-typescript or natively supported TypeScript in newer Ember versions.
affects: all
breakingInstalls an unreleased beta version of ember-cli-babel (Babel 7), which may break other addons.
fix
Pin ember-cli-babel version in package.json to control risk.
affects: 0.0.0-beta.2
gotchaThis addon does NOT perform type checking; only transpilation. TypeScript errors won't appear at build time.
fix
Run tsc separately or use an IDE plugin for type checking.
affects: all
gotchaUninstalls @ember-decorators/babel-transforms and babel-eslint, potentially breaking existing decorator setups.
fix
Ensure no other addons depend on those packages before installing.
affects: all
Errors
Common errors & fixes
TypeScript compilation failed: ...
Missing TypeScript configuration or incompatible Babel plugin version.
fix
Ensure ember-cli-babel is at the correct beta version required by this addon.
Cannot find module 'typescript-eslint-parser'
Addon tries to install typescript-eslint-parser but may fail in offline or locked environments.
fix
Manually add 'typescript-eslint-parser' to devDependencies.
Option '--typescript-interop' is not supported in ember-cli-babel
User passes unsupported options to Babel via ember-cli-build.js.
fix
Remove custom Babel options; this addon configures what's needed.
Upgrade
Version history
0.0.0-beta.2latest on npm
Audit
Dependencies
ember-cli-babelrequiredPeer dependency to extend Babel configuration for TypeScript support.
Agent activity
2 hits · last 30 days
node
2
Resources
ember-cli-babel-typescript — npm install ember-cli-babel-typescript · libregistry