Skip to content
New issue

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

[BUGFIX lts] Compile Ember dynamically in consuming applications #18208

Merged
merged 2 commits into from
Aug 15, 2019

Commits on Aug 14, 2019

  1. [BUGFIX lts] Compile Ember dynamically in consuming applications

    This PR sets up Ember to do a two phase build:
    
    * **Phase 1, prepublish:** Run Typescript and Rollup on the main Ember
      packages, and strip out canary-features. Publish these packages, along
      with the dependencies for Ember, in the `dist/` folder.
    
    * **Phase 2, in addon:** Run Babel transpilation using the consumer's
      `ember-cli-babel` and Babel configuration on the dist packages and
      dependencies, and bundle up the final `ember.js` file to serve to
      apps. This also includes `debug` flags and, in theory, svelting.
    
    Two major changes that will occur because of this:
    
    1. We will no longer be distributing `ember.prod.js`, `ember.debug.js`,
       `ember.min.js`, or `ember-testing.js`. These files existing may be
       something that people rely on, and the packages that _are_
       distributed aren't quite ready to build in a "normal" way, using
       webpack or another bundler.
    2. We will no longer be _building_ `ember.prod.js`, `ember.min.js`, or
       `ember.debug.js` at all, only a single `ember.js` file. We no longer
       need separate builds, because the environment settings of the build
       will handle the differences for us.
    
    We _are_ continuing to distribute a pre-built version of the `ember.js`
    and `ember-testing.js` files. These are used only in the case where the
    build targets match the default development build targets for Ember
    apps, providing a small optimization for users' dev workflow.
    
    Unfortunately, until we disentangle `ember-cli` from the implementation
    details of `ember-source` we cannot convert Ember to _build_ like a
    normal addon locally. Using the `EmberAddon` class blows up in many
    small ways.
    Chris Garrett committed Aug 14, 2019
    Configuration menu
    Copy the full SHA
    f51bf21 View commit details
    Browse the repository at this point in the history
  2. [BUGFIX lts] Updates based on feedback

    Chris Garrett committed Aug 14, 2019
    Configuration menu
    Copy the full SHA
    e526a04 View commit details
    Browse the repository at this point in the history