Giter Site home page Giter Site logo

denisstasyev / rollup-plugin-inline-code Goto Github PK

View Code? Open in Web Editor NEW
5.0 3.0 0.0 586 KB

Rollup plugin to inline JavaScript code with TypeScript support based on prefix

License: MIT License

JavaScript 4.37% TypeScript 95.63%
rollup rollup-plugin build build-tool inline inline-code inline-javascript insert insert-code insert-javascript

rollup-plugin-inline-code's Introduction

Hi there ๐Ÿ‘‹

Years Badge Repos Badge Visits Badge Page Views GitHub followers

My name is Denis Stasyev, and I am Web Developer, currently pursuing my MSc in Computer Science at The Moscow Institute of Physics and Technology. Here are some facts about me:

  • ๐Ÿ”ญ Working as a Software Engineer.
  • ๐Ÿ‘จโ€๐Ÿ’ป๏ธ Like TypeScript / JavaScript, Svelte and had experience with React, Redux, as well as writing code on Python and C++.
  • โšก Fun fact: worked with pure V8 Engine, without Node.js environment.

๐Ÿ”— Links

I am always open to collaborate on projects and innovative/disruptive ideas. Find out more about me and feel free to connect with me here:

Gmail Github Repositories NPM Packages Medium Habr LinkedIn

๐Ÿ“ˆ Stats

My GitHub stats

rollup-plugin-inline-code's People

Contributors

denisstasyev avatar semantic-release-bot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

rollup-plugin-inline-code's Issues

Basic import does not work

Here is a part of rollup.config.js:

import inlineCode from 'rollup-plugin-inline-code'
console.log(inlineCode);
console.log(inlineCode());

Actual result:

> npx rollup -c rollup.config.js --bundleConfigAsCjs

{ default: [Function (anonymous)] }
[!] TypeError: inlineCode is not a function

Expected result:

> npx rollup -c rollup.config.js --bundleConfigAsCjs

[Function (anonymous)]
{
  name: 'rollup-plugin-inline-code',
  resolveId: [Function: resolveId],
  transform: [Function: transform]
}

I can get the expected output using inlineCode.default, but that is clearly not the way it is supposed to work.

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.