GithubHelp home page GithubHelp logo

parse-literals's People

Contributors

asyncliz avatar dependabot[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

parse-literals's Issues

virtual tag from comments /* html */

uses tags from comments:
innerHTML = /*html*/`Hello world!`

having result:
{ tag: 'html', parts: ... },

maybe:
{ tag: '/*html*/', parts: ... },

Allow for typescript pre-release peer dependencies

In Chrome DevTools, we tend to use beta/release candidates of TypeScript to catch errors early. Currently, we are depending on 4.3.1-rc. However, if we install rollup-plugin-minify-html-template-literals (which has a transitive dependency on this package), we now get a duplicate installation of TypeScript.

This behavior is sadly intentional by npm, as semver doesn't think that 4.3.1-rc matches ^4.0.0. Based on https://survivejs.com/maintenance/packaging/managing-dependencies/#understanding-version-ranges I think it should be possible to update the ^4.0.0 range to ^4.0.0-0 to also include beta releases of any TypeScript 4.x version.

Could we update the dependency version of typescript in this package to include pre-releases of TypeScript 4.x?

get script parts as well

Hi,

it would be nice if the library will also return the locations of scripts.
this way you could modify them as well, for example, add escaping.

10x!

Update TS dependency

We can update typescript to ^3.0.0 so that there aren't multiple copies of TS downloaded when using this library.

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.