-
Notifications
You must be signed in to change notification settings - Fork 3
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
Doesn't work with Embroider? (build-time/dynamic magic?) #12
Comments
This might be a "fix": return compatBuild(app, Webpack, {
extraPublicTrees: additionalTrees,
staticAddonTestSupportTrees: true,
staticAddonTrees: true,
staticHelpers: true,
staticComponents: true,
// splitAtRoutes: true,
// skipBabel: [],
compatAdapters: new Map([
['ember-destroyable-polyfill', EmberDestroyableCompatAdapter],
]),
});
// .......
const { V1Addon } = require('@embroider/compat');
const { forceIncludeModule } = require('@embroider/compat/src/compat-utils');
class EmberDestroyableCompatAdapter extends V1Addon {
get packageMeta() {
let meta = super.packageMeta;
meta = forceIncludeModule(meta, './-internal/patch-core-object');
meta = forceIncludeModule(meta, './-internal/patch-meta');
return meta;
}
} |
There are a few issues here:
|
Yes, Is the |
Relatedly: what is the plan for shipping native I'm guessing shim, because otherwise we wouldn't need a separate polyfill package, we could just make the real package work in older ember versions? |
Yes, I think they are redundant.
It still somewhat TBD (implementation is not done yet), but I would suspect it would be a shim package (like all of the rest of |
OK, the implementation now matches what other polyfills do. It is a straight up |
@NullVoxPopuli - Mind testing the latest release (v2.0.1)? (Note: you must be using [email protected] or higher) |
Getting this error:
Not sure why though. It looks resolveable (in addon directory).
cc @ef4
The text was updated successfully, but these errors were encountered: