Closed StrahilKazlachev closed 8 years ago
Is this file 'd:\github\aurelia\skeleton-navigation\skeleton-es2016\some-path\some-lib.js'
really exists in the file system?
No it doesn't. By external I wanted to say that the file does not exist in the project/file system. Finally managed to do it. If someone stumbles upon this use case: In config.js
paths: {
lib: "/some-path/some-lib.js"
},
meta: {
"/some-path/some-lib.js": {
build: false
}
}
@ahmedshuhel As I get it this config option is systemjs builder specific. I hope when/if the bundler stops using systemjs builder this scenario will be supported in some way.
@StrahilKazlachev Perhaps you would be interested in making a PR to our bundler docs with a note on this? They are in the framework repo, doc folder.
@ahmedshuhel Please make a note about this. Any future solutions definitely need to account for this use case.
@EisenbergEffect Will do, I'll try by the end of the week.
Some additional info. It tuns out that since systemjs builder 0.15.0 there is an option that automatically takes care of my use case. But for that to work one should not add the module in question to the excludes of the bundle config, as I was doing, because this causes the error from my first comment.
I may be doing this completely wrong to start with. So how should I map a "library" that is relative to the host and exclude it when bundling? This is my config: In config.js
In bundle config
"excludes": ["lib"]
But I get the following error: