Giter VIP home page Giter VIP logo

little-byte-demo's Introduction

😃 About Me

  • Developer and Geek

  • Keep 3 Cats 🐱😽😺

  • Tech Blog

  • Career

    intel    alibaba    Heywhale    Byte-dance

⚡ Overview

Github Stats

Top Lang

🚣 Application

Repo: Thori-dal

Repo: open-ip-kvm

Repo: spa-renderer

🚀 Library

Repo: little-byte

Repo: nbconvert

🎮 Fun & Hack

Repo: gesture-gamepad

Repo: JumpHelper

Repo: LetMeRaid

Repo: perfect-loop

⛏️ Tools

Repo: loki-enhance-middleware

Repo: pageshot

Repo: libreoffice-portal

Repo: s3-sync

💡 Demo

Repo: proxy-reactive-demo

Repo: node-perf-demo

little-byte-demo's People

Contributors

nihiue avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

little-byte-demo's Issues

引入某些第三方包,会导致执行错误

通过webpack打包,对于某些第三方库,编译成字节码后,会报告 ReferenceError: require is not defined 错误
目前测试有问题的包:
fs-extra
source-map-support
这两个包只要引入任意一个,就会报 require not defineed 错误,执行 js 没有问题。

demo/hello.js 编译 字节码后,通过loader执行没有任何输出

非常感谢,这个项目对我帮助很大,之前一直用的pkg方案,我看您有计划讲讲这部分,非常期待啊。
例子hello-export.js 测试成功,hello.js 一直没有输出,下面是我的测试方法。

  1. 编译字节码
    node lib/compile.js demo/hello.js
  2. 执行字节码
    node lib/loader.js demo/hello.bytecode

无任何输出。

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.