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

Using alias miss the export.module = library #390

Open
ghost opened this issue Jan 26, 2017 · 2 comments
Open

Using alias miss the export.module = library #390

ghost opened this issue Jan 26, 2017 · 2 comments

Comments

@ghost
Copy link

ghost commented Jan 26, 2017

I'm trying to call all the dependencies required that are listed on bower_componentes

I have this on my grunt file:

browserify: {
	client: {
		src: ['app/**/*.js'],
		dest: 'src/app.js',
		options: {
			transform: [
				['babelify', {presets: ['es2015']}]
			],
			alias: {
				angular: './bower_components/angular/angular.js'
			}
		}
	}
}

Trying this on my app.js generate an error:

import angular from 'angular';

I found that when you use require instead of alias, at the end of the dependency it add a export.module = angular

Doing a manual insert of that line before export.module = angular fix the problem if I'm using alias

@ghost
Copy link
Author

ghost commented Jan 27, 2017

Is this project still maintained?

@DirtyHairy
Copy link
Collaborator

It is 😏 However, I'll try to find time for looking into your problem later this weekend.

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