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

Parcel v2 #5

Open
maximal opened this issue Oct 30, 2019 · 3 comments
Open

Parcel v2 #5

maximal opened this issue Oct 30, 2019 · 3 comments
Labels
documentation Improvements or additions to documentation help wanted Extra attention is needed

Comments

@maximal
Copy link

maximal commented Oct 30, 2019

Is this plugin compatible with Parcel v2 beta?

I tried every combination of:

{
	"peerDependencies": {
		"jquery": "*",
		"jquery.js": "*",
		"bootstrap": "*"
	},
	"externals": [
		"jquery => jQuery",
		"jQuery => jquery",
		"jquery => require('jquery')",
		"jQuery => require('jquery')",
		"jQuery => require('node_modules/jquery/dist/jquery.js')",
		"jquery => require('node_modules/jquery/dist/jquery.js')",
		"$ => require('node_modules/jquery/dist/jquery.js')"
	],
}

Importing like that:

import $ from 'jquery';

But jQuery is bundled into my app.js whatsoever :-(

@FlorianRappl
Copy link
Owner

No only Parcel v1. I haven't looked into Parcel v2 - I will / would soon.

Since Parcel v1 / v2 could / will be totally different from the API I suspect another plugin would be needed (different name, different code).

Do you have more infos?

@maximal
Copy link
Author

maximal commented Oct 30, 2019

Not yet, sorry. Just trying to move one project from Parcel v1 to Parcel v2.

All I know is these two issues:

@FlorianRappl FlorianRappl added documentation Improvements or additions to documentation help wanted Extra attention is needed labels Oct 30, 2019
@FlorianRappl
Copy link
Owner

Yes, so I solved / try to solve parcel-bundler/parcel#144, the parcel-bundler/parcel#3305 has not been touched yet.

I suppose they would want either a core functionality that covers this or an "internal" plugin. No idea though :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants