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

default to main? #44

Closed
AWinterman opened this issue Apr 26, 2019 · 2 comments
Closed

default to main? #44

AWinterman opened this issue Apr 26, 2019 · 2 comments

Comments

@AWinterman
Copy link

Would it be possible to let pika default to using the main module in a package?

I just published a really dumb copy of the events module because the maintainers are busy and I wanted a module entry in the package.json. It wouldn't work for everything, but when it works it works.

@cedeber
Copy link

cedeber commented May 24, 2019

I think I need kind of the same. We can already have a webDependencies config in package.json.
So if I do, for example, leaflet/dist/leaflet-src.esm.js than it exports into web_modules/leaflet/dist/leaflet-src.esm.js and this is very annoying.

The idea I have is to have in webDependencies something like: ['leaflet/dist/leaflet-src.esm.js', 'leaflet.js'] and it will create web_modules/leaflet.js or ['preact/hooks', 'preact-hooks.js'].

In this case it would also solve the problem in #47 as you can also give the extension in the exported file name.

@FredKSchott
Copy link
Owner

This is now supported for whitelisted webDependencies, see: #62 (comment)

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

No branches or pull requests

3 participants