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
Writing this issue to show how we could have typescript compilation support using babel.
function es6() { return browserify({ entries: './src/js/main.js', extensions: ['.js', '.ts'], }) .transform( babelify.configure({ "presets": [ "@babel/preset-env", "module:@babel/preset-typescript" ], "plugins": ["@babel/proposal-class-properties"] }), { extensions: ['.js', '.ts'] }, ) .bundle() .pipe(source('main.js')) }
In short, we have to add .ts extension to browserify config, and specify proper babel plugins (@babel/preset-typescript)
.ts
browserify
@babel/preset-typescript
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Writing this issue to show how we could have typescript compilation support using babel.
In short, we have to add
.ts
extension tobrowserify
config, and specify proper babel plugins (@babel/preset-typescript
)The text was updated successfully, but these errors were encountered: