Giter VIP home page Giter VIP logo

Comments (3)

frankwallis avatar frankwallis commented on June 10, 2024

I have been getting around that by removing the "x" -> "lib/x.js" mapping in config.js. This is the issue I was referring in the original thread where systemjs is maybe a bit over-zealous about all files getting a '.js' extension. (it's kind of related to systemjs/systemjs#113 & ModuleLoader/es-module-loader#169 I think)

In my opinion if you are in a '.ts' file then require("./a") should go to require("./a.ts"). If you are in a ".js" file then it should go to "./a.js". I will be trying out requiring .js files from a .ts file soon.

from plugin-typescript.

guybedford avatar guybedford commented on June 10, 2024

Yes that functionality will be added in the next version of SystemJS - you can follow this at systemjs/systemjs#319.

from plugin-typescript.

frankwallis avatar frankwallis commented on June 10, 2024

I've put that into the locate and it's working well. Fixed in 0.5.7.

from plugin-typescript.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.