Open
Description
Assuming I have application.js with
//= require dependency1.js.ts
//= require file1.js.ts
//= require file2.js.ts
And file1.js.ts is:
/// <reference path="dependency1.js.ts" />
class File1 {}
And file2.js.ts is:
/// <reference path="dependency1.js.ts" />
class File2 {}
When I do asset compilation I end up with dependency1
being included 3 times into the resulting file.
First time it's from application.js inclusion, second and third is from file1.js.ts and file2.js.ts respectively.
As far as I can tell this happens because of: https://github.com/typescript-ruby/typescript-rails#referenced-typescript-dependencies
Questions:
- Is it possible to include a dependency once? I want asset-pipeline handle this (because we have a big project where everything is setup using asset pipeline).
- If not, how can I change the inclusion/walking process? Should I use tsconfig.json for this or something else?
Thanks for your help
Metadata
Metadata
Assignees
Labels
No labels