Comments (9)
Instantiate is the default because it supports ES6 bindings and circular references, which is a feature integrated into the core of SystemJS.
I know it sounds strange, but the edge case features (circular references) determine the workflow.
That said yes you can compile to AMD or CommonJS. You could use the traceur --dir
compile option to compile everything into AMD before using this builder, or we could look at adding it as an option as well.
from builder.
Is this still a feature you are after? Perhaps have a look at the upcoming bundle-sfx
function in the next jspm release to reassess.
from builder.
@guybedford Does this also cover jspm/jspm-cli#75?
from builder.
Yes exactly. It's not AMD / CJS transpiling but a self-executing bundling system.
from builder.
@guybedford I think that this hints at a need in the Builder... What I'm encountering is needing to run Traceur for the normal es6 transpiling of other non-module es6 functionality, before running systemjs-builder. It seems odd to have Traceur running in two steps, instead of allowing commands to be passed from the Builder through to Traceur (like allowing an option to trigger the normal es6 transpiling).
from builder.
@outdooricon can you explain why you need to separately run Traceur for normal es6 transpiling?
from builder.
At one point I had encountered something in es6 that wasn't getting transpiled through the builder. This led me to believe that the builder sidestepped transpiling anything other than modules. However, now switching back to just using the builder, I can't seem to find what that was... So it looks like my use case just disappeared.
from builder.
I'd be interested to hear what wasn't transpiling. Glad to hear it's working out though.
from builder.
If I find it again, I'll bring it up
from builder.
Related Issues (20)
- Build using existing System.register bundles
- Avoid regenerating bundles that haven't changed HOT 1
- systemJs builder buildStatic doesn't seem to do rollup
- Running the builder in the browser? HOT 2
- Overlapping content in sourcemaps when using builder arithmetic. HOT 1
- Plugin/Module not registered correctly after transpiling to ES5
- Incorrect sourcemap paths on Windows HOT 3
- Can't bundle tree with addition HOT 1
- Shared chunks HOT 1
- Sourcemap issue with beta.48 HOT 5
- Bundle Arithmetic doesn't seem to be working properly HOT 1
- Bundle doesn't work
- Calling builder.trace with 'externals' in options throws error.
- Unable to resolve version 0.0.25/plugin-babel.js for systemjs-plugin-babel HOT 1
- How to fix 'Paths configuration XXX uses wildcards which are being deprecated for just leaving a trailing "/" to indicate folder paths.' and how to fix 'defaultJSExtensions configuration option is deprecated ...'
- How to fix 'defaultJSExtensions configuration option is deprecated ...'
- Upgrade to terser
- [issue]considering support jsx in Vue? HOT 1
- In-memory buildstatic issue HOT 1
- How can I load the remote file with Builder? HOT 1
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 builder.