Closed shaoahs closed 8 years ago
js extensions are optional for packages via the SystemJS configuration defaultExtension
. For all other requires extensions are required. This is because if you do import 'https://cdn.com/file'
we can't assume if you do or do not want to add a .js
extension, so will not do it by default unless it is an explicitly defined package through package configuration.
os: linux mageia 5 nodejs : 4.4.0 jspm : 0.16.x and 0.17beta
if "jspm_packages" and "node_modules" are in the project root directory, the js source code don't add '.js' on the import file name, but if "jspm_packages" is not in the root directory, the import file need to add ".js".
Case1 : in the root directory:
Case 2: "jspm_packages" is not in the root directory.
Why case 2 can not auto parse ".js" file ?