Skip to content
This repository has been archived by the owner on Jun 4, 2024. It is now read-only.

Remove dependencies on babel-template and babel-plugin-syntax-dynamic-import #51

Merged
merged 1 commit into from
Oct 8, 2018

Conversation

sharmilajesupaul
Copy link
Contributor

As mentioned in: #50 (comment), we can configure this plugin in a way that might work with both Babel 6 and 7.

This change use template provided by the babel plugin API instead of importing from babel-template and configures the dynamic import syntax options directly instead of using the external plugin.

cc. @ljharb

});
path.parentPath.replaceWith(newImport);
return {
manipulateOptions(opts, parserOpts) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's add a comment with the inherits: syntax code and instructions to use it instead of this inlined code once this package has dropped babel 6 support?

…-import

Use the template provided by the babel plugin API instead and use the dynamic import syntax options directly.
@sharmilajesupaul sharmilajesupaul merged commit 8b21309 into master Oct 8, 2018
@ljharb ljharb deleted the shar--refactor-index branch October 8, 2018 16:12
ljharb added a commit to airbnb/babel-plugin-dynamic-import-node that referenced this pull request Oct 8, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants