Skip to content

Unnecessary transformation for module dependencies #16

Description

@jvmlet

Hi
I've the problem with module dependencies that are also transformed with babel ;
The below exception is thrown while trying to run babel transformation on react-with-addons module :

[BABEL] Note: The code generator has deoptimised the styling of "unknown" as it exceeds the max of "100KB".

Here is my module :

import $ from 'jquery';
import React from 'react-with-addons';
import ReactBootstrap from 'react-bootstrap';

   var {Table,Row,Column,Accordion,Panel} = ReactBootstrap;
    const Ancillaries = React.createClass({
        render() {
            return  <Accordion>
                {this.props.passengers.map(this.renderAncillaries)}
            </Accordion>
        },
        renderAncillaries(passenger,indx){
            return <Panel header={`Passenger ${indx} ${passenger.firstName} ${passenger.lastName} `} eventKey={indx}>

            </Panel>
        }
    });
    export  default Ancillaries;

Please not that both 'jquery' and 'react-with-addons' and 'react-bootstrap' are transformed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions