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

paths in config file is ignored #66

Open
danielgindi opened this issue Feb 23, 2017 · 2 comments
Open

paths in config file is ignored #66

danielgindi opened this issue Feb 23, 2017 · 2 comments

Comments

@danielgindi
Copy link

danielgindi commented Feb 23, 2017

My config file:

requirejs.config({
    baseUrl: '/js',
    paths: {
        'jquery': '/js/deps/jquery-3.1.1.min'
    }
});
requirejs(['src/main']);

example.js

define([
    'jquery' // <-- appears red, broken.
], function ($) {

});
@feeela
Copy link

feeela commented Jul 3, 2018

This is a basic feature of Require.js and without the configuration being used/parsed this plugin is not really useful, since most of the auto-completions will not work when using the paths or shim configuration. This is especially important in frameworks, where the JS files are spread across several root-folder (i.e. Magento or TYPO3-Backend).

@danielgindi
Copy link
Author

Well I'm moving away from AMD anyway, as browsers started to support ES6 already, so dev env is easy.
And in production you most probably take a babelified version.

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

2 participants