Angular-cli: combine React JSX components and custom loaders

Created on 16 Apr 2018  路  3Comments  路  Source: angular/angular-cli

Versions

<!--
Output from: `ng --version`.
If nothing, output from: `node --version` and `npm --version`.
  Windows (7/8/10). Linux (incl. distribution). macOS (El Capitan? Sierra?)
-->

Observed behavior

<!-- Normally this includes a stack trace and some more information. -->

I have a task, I need to embed the "React" components. But since angular-cli can not load jsx files then compilation produces an error. You may need an appropriate loader to handle this file type.
I dont want use ng eject.

Desired behavior

I would like see any possibility extend webpack config.

Mention any other details that might be useful (optional)

Most helpful comment

Checkout the slides from this talk by Kyle McNutt. He was able to import React components and package them in an Angular library without needing to eject. The good stuff starts around slide 13.

All 3 comments

Checkout the slides from this talk by Kyle McNutt. He was able to import React components and package them in an Angular library without needing to eject. The good stuff starts around slide 13.

eject functionality is no longer available in the latest version (6.x+). For custom webpack configurations the following unofficial add-on is a suggested solution: https://github.com/manfredsteyer/ngx-build-plus

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

_This action has been performed automatically by a bot._

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jmurphzyo picture jmurphzyo  路  3Comments

gotschmarcel picture gotschmarcel  路  3Comments

IngvarKofoed picture IngvarKofoed  路  3Comments

ericel picture ericel  路  3Comments

daBishMan picture daBishMan  路  3Comments