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

baseUrl is not preserved in call to load/analyze #4

Open
skyl opened this issue Nov 12, 2016 · 0 comments
Open

baseUrl is not preserved in call to load/analyze #4

skyl opened this issue Nov 12, 2016 · 0 comments

Comments

@skyl
Copy link

skyl commented Nov 12, 2016

I'm not sure if this is a bug in rjs. But, this call to require.toUrl does not respect my baseUrl setting. It appears that baseUrl has been changed to my dir setting here:

https://github.com/pieterv/wire-rjs-builder/blob/master/builder.js#L60

If I hardcode a call to replace() and switch back to my configured baseUrl, I get the results I expect. Any ideas how I can get the plugin to resolve paths relative to my baseUrl instead of relative to my dir setting?

http://stackoverflow.com/questions/40566652/requirejs-plugin-config-baseurl-changed-to-config-dir-in-plugin

@skyl skyl changed the title baseUrl is not baseUrl is not preserved in call to load/analyze Nov 12, 2016
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

1 participant