2

I was just checking the files generated by angular cli. I noticed that tsconfig.spec.json is using commonJs as module, and tsconfig.app.json is using es2015 as module.

Is there any reason for choosing different module implementations?

Angular CLI version: 1.1.1

1

1 Answer 1

1

tsconfig.spec.json is used for testing, which runs in node.js environment, while tsconfig.app.json is being used to prepare the app for browser based run, hence the different moduling implementations.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.