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

Some paths config require the module name to be included #1506

Open
chasenlehara opened this issue Sep 3, 2019 · 1 comment
Open

Some paths config require the module name to be included #1506

chasenlehara opened this issue Sep 3, 2019 · 1 comment

Comments

@chasenlehara
Copy link
Contributor

I was expecting this configuration to work in can-route:

steal = {
	paths: {
		'src/routedata': 'src/routedata-definemap.js'
	}
};

Instead, I had to include can-route in the mapping:

steal = {
	paths: {
		'can-route/src/routedata': 'src/routedata-definemap.js'
	}
};

Is this expected? If so, can some more documentation around this be added?

@matthewp
Copy link
Member

matthewp commented Sep 3, 2019

This can probably be improved: https://stealjs.com/docs/config.paths.html

It should have 2 signatures, one with moduleName on the left-hand side, and the other with glob (maybe the wrong word as they are not technically globs) on the left-hand side. It's never a partial path though.

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

2 participants