Comments (8)
My bower file:
{
"name": "angular-brunch-seed-no-fuss",
"version": "0.6.0",
"dependencies": {
"modernizr": "~2.8.3",
"angular": "~1.3.8",
"angular-resource": "~1.3.8",
"angular-sanitize": "~1.3.8",
"angular-mocks": "~1.3.8",
"angular-ui-router": "0.2.13",
"jquery": "~2.1.3",
"lodash": "~2.4.1",
"ocModal": "~0.1.9",
"bootstrap-sass-official": "~3.3.1"
},
"overrides": {
"angular-mocks": {
"main": []
},
"modernizr": {
"main": "modernizr.js"
},
"lodash": {
"main": "dist/lodash.js"
},
"bootstrap-sass-official": {
"main": [
"assets/stylesheets/_bootstrap.scss",
"assets/fonts/bootstrap/glyphicons-halflings-regular.eot",
"assets/fonts/bootstrap/glyphicons-halflings-regular.svg",
"assets/fonts/bootstrap/glyphicons-halflings-regular.ttf",
"assets/fonts/bootstrap/glyphicons-halflings-regular.woff",
"assets/javascripts/bootstrap.js"
]
}
},
"resolutions": {
"angular": "~1.3.8"
}
}
But If I just override angular it works (it takes 31s... but it works)
{
"name": "angular-brunch-seed-no-fuss",
"version": "0.6.0",
"dependencies": {
"modernizr": "~2.8.3",
"angular": "~1.3.8",
"angular-resource": "~1.3.8",
"angular-sanitize": "~1.3.8",
"angular-mocks": "~1.3.8",
"angular-ui-router": "0.2.13",
"jquery": "~2.1.3",
"lodash": "~2.4.1",
"ocModal": "~0.1.9",
"bootstrap-sass-official": "~3.3.1"
},
"overrides": {
"angular": {
"main": []
},
"angular-mocks": {
"main": []
},
"modernizr": {
"main": "modernizr.js"
},
"lodash": {
"main": "dist/lodash.js"
},
"bootstrap-sass-official": {
"main": [
"assets/stylesheets/_bootstrap.scss",
"assets/fonts/bootstrap/glyphicons-halflings-regular.eot",
"assets/fonts/bootstrap/glyphicons-halflings-regular.svg",
"assets/fonts/bootstrap/glyphicons-halflings-regular.ttf",
"assets/fonts/bootstrap/glyphicons-halflings-regular.woff",
"assets/javascripts/bootstrap.js"
]
}
},
"resolutions": {
"angular": "~1.3.8"
}
}
from babel-brunch.
If there was a way to ignore to bower_components (see #4) it would probably fix my problem, but it might be interesting to see why it takes so long to compile angular... Maybe it's just because the lib has a lot of code, but if that's the case then the 6to5 compiler is really inefficient!
from babel-brunch.
I realized sometime later after creating this plugin that even though it is theoretically harmless, 6to5 is not designed for processing code that was already targeting ES5 standards.
#4 needs to be resolved to account for this (with a default value that excludes bower_components without requiring any user intervention).
If you think 6to5 ought to investigate why it is so slow to process angular.js (I don't), you could raise the topic in the core 6to5 issue tracker.
from babel-brunch.
I switched to Traceur for the moment, I'll take another look at 6to5 when #4 gets resolved. Anyway I think that Traceur is probably better for Angular code since Angular 2 uses Traceur.
from babel-brunch.
Anyway I think that Traceur is probably better for Angular code since Angular 2 uses Traceur.
I would assert that the primary motivation there is that they're both Google products. 6to5 has many advantages over Traceur for any ES6 code (including angular apps) when evaluated objectively.
from babel-brunch.
Yes but 6to5 only includes validated specs and AtScript won't get validated for now. Traceur supports AtScript since they need it for Angular 2...
from babel-brunch.
Yeah if you're intending to use AtScript it's an entirely different story.
from babel-brunch.
Yes, I want my project to be Angular2-ready :)
from babel-brunch.
Related Issues (20)
- Transpile npm modules written in ES6 HOT 7
- Cannot use plugin or preset options HOT 2
- trying to use transform-async-to-generator HOT 6
- Use options defined in the .babelrc file HOT 6
- Allow plugins/presets with explicit name
- Support configuration for different environments. HOT 2
- transform-class-properties in .babelrc results in error HOT 7
- [BREAKING] Use babel-preset-env instead of babel-preset-latest HOT 5
- Source maps are mapped to transpiled source HOT 4
- babel polyfill included? HOT 3
- SyntaxError: Unexpected token when building HOT 2
- undefined is not a constructor (evaluating 'Object.assign') HOT 5
- Explicit plugin name without babel-plugin- prefix, how? HOT 1
- .babelrc is ignored HOT 1
- Publish new npm version HOT 3
- babel-preset-env has been consumed by Babel mono-repo
- Upgrading to Babel 7 HOT 2
- SyntaxError: export declarations may only appear at top level of a module HOT 2
- Optimizing of ../priv/static/js/app.js failed. L12175:31 SyntaxError: Unexpected token: operator (>)
- Update to @babel/preset-env HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from babel-brunch.