Skip to content

Commit

Permalink
Changes after making ember-cli-cjs-transform configurable
Browse files Browse the repository at this point in the history
  • Loading branch information
Gaurav0 committed Jun 2, 2018
1 parent 03af707 commit d2a2d78
Show file tree
Hide file tree
Showing 3 changed files with 66 additions and 20 deletions.
9 changes: 8 additions & 1 deletion ember-cli-build.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,15 @@ module.exports = function(defaults) {
app.import('vendor/bootstrap-dropdown-submenu-fix.css');
app.import('vendor/hint.css');

const nodeBuiltins = require('rollup-plugin-node-builtins');
const json = require('rollup-plugin-json');

app.import('node_modules/babel-plugin-ember-modules-api-polyfill/src/index.js', {
using: [{ transformation: 'cjs', as: 'babel-plugin-ember-modules-api-polyfill' }]
using: [{
transformation: 'cjs',
as: 'babel-plugin-ember-modules-api-polyfill',
plugins: [nodeBuiltins(), json()]
}]
});

let loaderTree = funnel(path.dirname(require.resolve('loader.js')), {
Expand Down
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@
"moment": "^2.22.0",
"moment-timezone": "~0.5.14",
"path-browser": "^2.2.1",
"rollup-plugin-json": "^2.3.0",
"rollup-plugin-node-builtins": "^2.1.2",
"torii": "~0.10.1"
},
"engines": {
Expand Down
75 changes: 56 additions & 19 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,31 @@ babel-core@^5.0.0, babel-core@^5.8.38:
trim-right "^1.0.0"
try-resolve "^1.0.0"

babel-core@^6.14.0, babel-core@^6.24.1, babel-core@^6.26.0:
babel-core@^6.14.0, babel-core@^6.26.0:
version "6.26.3"
resolved "https://registry.yarnpkg.com/babel-core/-/babel-core-6.26.3.tgz#b2e2f09e342d0f0c88e2f02e067794125e75c207"
dependencies:
babel-code-frame "^6.26.0"
babel-generator "^6.26.0"
babel-helpers "^6.24.1"
babel-messages "^6.23.0"
babel-register "^6.26.0"
babel-runtime "^6.26.0"
babel-template "^6.26.0"
babel-traverse "^6.26.0"
babel-types "^6.26.0"
babylon "^6.18.0"
convert-source-map "^1.5.1"
debug "^2.6.9"
json5 "^0.5.1"
lodash "^4.17.4"
minimatch "^3.0.4"
path-is-absolute "^1.0.1"
private "^0.1.8"
slash "^1.0.0"
source-map "^0.5.7"

babel-core@^6.24.1:
version "6.26.0"
resolved "https://registry.yarnpkg.com/babel-core/-/babel-core-6.26.0.tgz#af32f78b31a6fcef119c87b0fd8d9753f03a0bb8"
dependencies:
Expand Down Expand Up @@ -882,8 +906,8 @@ babel-plugin-transform-es2015-modules-amd@^6.22.0, babel-plugin-transform-es2015
babel-template "^6.24.1"

babel-plugin-transform-es2015-modules-commonjs@^6.23.0, babel-plugin-transform-es2015-modules-commonjs@^6.24.1:
version "6.26.0"
resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-modules-commonjs/-/babel-plugin-transform-es2015-modules-commonjs-6.26.0.tgz#0d8394029b7dc6abe1a97ef181e00758dd2e5d8a"
version "6.26.2"
resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-modules-commonjs/-/babel-plugin-transform-es2015-modules-commonjs-6.26.2.tgz#58a793863a9e7ca870bdc5a881117ffac27db6f3"
dependencies:
babel-plugin-transform-strict-mode "^6.24.1"
babel-runtime "^6.26.0"
Expand Down Expand Up @@ -2025,8 +2049,8 @@ can-symlink@^1.0.0:
tmp "0.0.28"

caniuse-lite@^1.0.30000792:
version "1.0.30000823"
resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30000823.tgz#b79842a5b5a48eaa416b73f5a5d7a23f52d26014"
version "1.0.30000835"
resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30000835.tgz#517c4d3807a8527b0cbce1d84c85d4487f877268"

caniuse-lite@^1.0.30000821:
version "1.0.30000828"
Expand Down Expand Up @@ -2235,8 +2259,8 @@ clone@^1.0.2:
resolved "https://registry.yarnpkg.com/clone/-/clone-1.0.4.tgz#da309cc263df15994c688ca902179ca3c7cd7c7e"

clone@^2.0.0:
version "2.1.2"
resolved "https://registry.yarnpkg.com/clone/-/clone-2.1.2.tgz#1b7f4b9f591f1e8f83670401600345a02887435f"
version "2.1.1"
resolved "https://registry.yarnpkg.com/clone/-/clone-2.1.1.tgz#d217d1e961118e3ac9a4b8bba3285553bf647cdb"

clone@~0.1.9:
version "0.1.19"
Expand Down Expand Up @@ -2499,8 +2523,8 @@ core-js@^1.0.0:
resolved "https://registry.yarnpkg.com/core-js/-/core-js-1.2.7.tgz#652294c14651db28fa93bd2d5ff2983a4f08c636"

core-js@^2.4.0, core-js@^2.5.0:
version "2.5.4"
resolved "https://registry.yarnpkg.com/core-js/-/core-js-2.5.4.tgz#f2c8bf181f2a80b92f360121429ce63a2f0aeae0"
version "2.5.6"
resolved "https://registry.yarnpkg.com/core-js/-/core-js-2.5.6.tgz#0fe6d45bf3cac3ac364a9d72de7576f4eb221b9d"

[email protected]:
version "2.0.6"
Expand Down Expand Up @@ -2638,7 +2662,7 @@ date-now@^0.1.4:
version "0.1.4"
resolved "https://registry.yarnpkg.com/date-now/-/date-now-0.1.4.tgz#eaf439fd4d4848ad74e5cc7dbef200672b9e345b"

debug@2, [email protected], debug@^2.1.0, debug@^2.1.1, debug@^2.1.3, debug@^2.2.0, debug@^2.3.3, debug@^2.4.0, debug@^2.6.8:
debug@2, [email protected], debug@^2.1.0, debug@^2.1.1, debug@^2.1.3, debug@^2.2.0, debug@^2.3.3, debug@^2.4.0, debug@^2.6.8, debug@^2.6.9:
version "2.6.9"
resolved "https://registry.yarnpkg.com/debug/-/debug-2.6.9.tgz#5d128515df134ff327e90a4c93f4e077a536341f"
dependencies:
Expand Down Expand Up @@ -2904,7 +2928,11 @@ [email protected]:
version "1.1.1"
resolved "https://registry.yarnpkg.com/ee-first/-/ee-first-1.1.1.tgz#590c61156b0ae2f4f0255732a158b266bc56b21d"

electron-to-chromium@^1.3.30, electron-to-chromium@^1.3.41:
electron-to-chromium@^1.3.30:
version "1.3.45"
resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.45.tgz#458ac1b1c5c760ce8811a16d2bfbd97ec30bafb8"

electron-to-chromium@^1.3.41:
version "1.3.42"
resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.42.tgz#95c33bf01d0cc405556aec899fe61fd4d76ea0f9"

Expand Down Expand Up @@ -3005,7 +3033,7 @@ ember-cli-build-notifications@~0.2.0:

ember-cli-cjs-transform@gaurav0/ember-cli-cjs-transform#json:
version "1.2.0"
resolved "https://codeload.github.com/gaurav0/ember-cli-cjs-transform/tar.gz/e8a15967667c9e8f9d54634173ed0f670a9435db"
resolved "https://codeload.github.com/gaurav0/ember-cli-cjs-transform/tar.gz/40fd8cccd1fb918508df8cd35a1924680a7fe864"
dependencies:
broccoli-debug "^0.6.4"
broccoli-plugin "^1.3.0"
Expand All @@ -3015,8 +3043,6 @@ ember-cli-cjs-transform@gaurav0/ember-cli-cjs-transform#json:
pkg-dir "^2.0.0"
rollup "^0.58.1"
rollup-plugin-commonjs "^9.1.0"
rollup-plugin-json "^2.3.0"
rollup-plugin-node-builtins "^2.1.2"
rollup-plugin-node-resolve "^3.3.0"
username "^3.0.0"

Expand Down Expand Up @@ -3499,13 +3525,20 @@ ember-cli-version-checker@^1.0.2, ember-cli-version-checker@^1.1.7, ember-cli-ve
dependencies:
semver "^5.3.0"

ember-cli-version-checker@^2.0.0, ember-cli-version-checker@^2.1.0:
ember-cli-version-checker@^2.0.0:
version "2.1.0"
resolved "https://registry.yarnpkg.com/ember-cli-version-checker/-/ember-cli-version-checker-2.1.0.tgz#fc79a56032f3717cf844ada7cbdec1a06fedb604"
dependencies:
resolve "^1.3.3"
semver "^5.3.0"

ember-cli-version-checker@^2.1.0:
version "2.1.2"
resolved "https://registry.yarnpkg.com/ember-cli-version-checker/-/ember-cli-version-checker-2.1.2.tgz#305ce102390c66e4e0f1432dea9dc5c7c19fed98"
dependencies:
resolve "^1.3.3"
semver "^5.3.0"

[email protected]:
version "2.16.2"
resolved "https://registry.yarnpkg.com/ember-cli/-/ember-cli-2.16.2.tgz#53b922073a8e6f34255a6e0dcb1794a91ba3e1b7"
Expand Down Expand Up @@ -6607,10 +6640,14 @@ lodash@^3.10.0, lodash@^3.10.1, lodash@^3.9.3:
version "3.10.1"
resolved "https://registry.yarnpkg.com/lodash/-/lodash-3.10.1.tgz#5bf45e8e49ba4189e17d482789dfd15bd140b7b6"

lodash@^4.0.0, lodash@^4.11.1, lodash@^4.14.0, lodash@^4.17.4, lodash@^4.3.0, lodash@^4.5.1, lodash@^4.6.1, lodash@~4.17.4:
lodash@^4.0.0, lodash@^4.11.1, lodash@^4.3.0, lodash@^4.5.1, lodash@^4.6.1, lodash@~4.17.4:
version "4.17.5"
resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.5.tgz#99a92d65c0272debe8c96b6057bc8fbfa3bed511"

lodash@^4.14.0, lodash@^4.17.4:
version "4.17.10"
resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.10.tgz#1b7793cf7259ea38fb3661d4d38b3260af8ae4e7"

log-symbols@^2.2.0:
version "2.2.0"
resolved "https://registry.yarnpkg.com/log-symbols/-/log-symbols-2.2.0.tgz#5740e1c5d6f0dfda4ad9323b5332107ef6b4c40a"
Expand Down Expand Up @@ -7863,7 +7900,7 @@ printf@^0.2.3:
version "0.2.5"
resolved "https://registry.yarnpkg.com/printf/-/printf-0.2.5.tgz#c438ca2ca33e3927671db4ab69c0e52f936a4f0f"

private@^0.1.6, private@^0.1.7, private@~0.1.5:
private@^0.1.6, private@^0.1.7, private@^0.1.8, private@~0.1.5:
version "0.1.8"
resolved "https://registry.yarnpkg.com/private/-/private-0.1.8.tgz#2381edb3689f7a53d653190060fcf822d2f368ff"

Expand Down Expand Up @@ -8511,13 +8548,13 @@ [email protected]:
dependencies:
path-parse "^1.0.5"

resolve@^1.1.2, resolve@^1.1.4, resolve@^1.1.6, resolve@^1.1.7, resolve@^1.3.3, resolve@^1.4.0, resolve@^1.5.0:
resolve@^1.1.2, resolve@^1.1.4, resolve@^1.1.7:
version "1.6.0"
resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.6.0.tgz#0fbd21278b27b4004481c395349e7aba60a9ff5c"
dependencies:
path-parse "^1.0.5"

resolve@^1.3.0:
resolve@^1.1.6, resolve@^1.3.0, resolve@^1.3.3, resolve@^1.4.0, resolve@^1.5.0:
version "1.7.1"
resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.7.1.tgz#aadd656374fd298aee895bc026b8297418677fd3"
dependencies:
Expand Down

0 comments on commit d2a2d78

Please sign in to comment.