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

@ember-data/model: Simplify @cached transpilation #7599

Merged
merged 3 commits into from
Jul 22, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/model/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"@ember-data/store": "3.29.0-alpha.10",
"@ember/edition-utils": "^1.2.0",
"@ember/string": "^1.0.0",
"ember-cached-decorator-polyfill": "^0.1.3",
"ember-cached-decorator-polyfill": "^0.1.4",
"ember-cli-babel": "^7.26.6",
"ember-cli-string-utils": "^1.1.0",
"ember-cli-test-info": "^1.0.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -174,19 +174,10 @@ function addonBuildConfigForDataPackage(PackageName) {
let checker = new VersionChecker(this.project);
let emberVersion = checker.for('ember-source');

const babelOptions = Object.assign({}, this.options.babel);

// we only want to add this to the options passed to the babel transpiler for the rolled up files
// other files get it from the inherited app config
if (this.pkg.dependencies['ember-cached-decorator-polyfill']) {
babelOptions.plugins = babelOptions.plugins.slice();
babelOptions.plugins.push([require.resolve('ember-cached-decorator-polyfill/lib/transpile-modules.js')]); // eslint-disable-line
}

let privateTree = rollupPrivateModule(tree, {
packageName: PackageName,
babelCompiler: babel,
babelOptions,
babelOptions: this.options.babel,
emberVersion: emberVersion,
emberCliBabelOptions: host.options && host.options['ember-cli-babel'] ? host.options['ember-cli-babel'] : {},
onWarn: this._suppressUneededRollupWarnings.bind(this),
Expand Down
11 changes: 6 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6874,10 +6874,10 @@ ember-cache-primitive-polyfill@^1.0.1:
ember-compatibility-helpers "^1.2.1"
silent-error "^1.1.1"

ember-cached-decorator-polyfill@^0.1.3:
version "0.1.3"
resolved "https://registry.npmjs.org/ember-cached-decorator-polyfill/-/ember-cached-decorator-polyfill-0.1.3.tgz#9da71cacad87330e8bf090f922984cb827588a60"
integrity sha512-I3AJ3sJkPoJdSOnXw8E1ww8h9Ly62djVugLySrQhNerOnTSGmbSx/iAXtojFfepo7q29HfUlFcM7DSFp5shQ7g==
ember-cached-decorator-polyfill@^0.1.4:
version "0.1.4"
resolved "https://registry.npmjs.org/ember-cached-decorator-polyfill/-/ember-cached-decorator-polyfill-0.1.4.tgz#f1e2c65cc78d0d9c4ac0e047e643af477eb85ace"
integrity sha512-JOK7kBCWsTVCzmCefK4nr9BACDJk0owt9oIUaVt6Q0UtQ4XeAHmoK5kQ/YtDcxQF1ZevHQFdGhsTR3JLaHNJgA==
dependencies:
"@glimmer/tracking" "^1.0.4"
ember-cache-primitive-polyfill "^1.0.1"
Expand Down Expand Up @@ -7871,7 +7871,8 @@ eslint-module-utils@^2.6.1:
pkg-dir "^2.0.0"

"eslint-plugin-ember-data@link:./packages/unpublished-eslint-rules":
version "3.29.0-alpha.5"
version "0.0.0"
uid ""

eslint-plugin-ember@^10.3.0, eslint-plugin-ember@^10.4.1:
version "10.5.1"
Expand Down