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

Create babel plugin for poly-package transition. #17

Open
jdalton opened this issue Jun 8, 2016 · 1 comment
Open

Create babel plugin for poly-package transition. #17

jdalton opened this issue Jun 8, 2016 · 1 comment

Comments

@jdalton
Copy link

jdalton commented Jun 8, 2016

As the poly-packages section stats

The transpiler would rewrite any imports from "./lib/" in module.js to "./" in the transpiled CommonJS modules. Since standard modules use a declarative syntax for imports, it is possible to do this transformation soundly and reliably.

This issue to a placeholder for someone to tackle a babel plugin to handle this.

@rtsao
Copy link

rtsao commented Aug 31, 2016

I've created this here: https://github.com/rtsao/polypackage. It works slightly differently from the proposal, but I think it's less restrictive in terms of how you structure your source code of the package.

Let me know what you think!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants