Giter VIP home page Giter VIP logo

yoga-wasm-web's People

Contributors

cc-bbohlender avatar jackca avatar jeetiss avatar pinqy520 avatar shuding avatar shun-shobon avatar sukkaw avatar wsedlacek avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

yoga-wasm-web's Issues

yoga-wasm-web versus webpack

hello there, thanks for the great module. we are trying to integrate this into a webpack build. webpack isn't particularly happy with this module's use of import.meta.url -- it interprets this to be the location at build time, which, for webpack, is not going to be the same as the location at runtime.

have you given any thoughts to this problem? we tried a few things, such as import("./yoga.wasm"), and thus relying on webpack 5's direct support for webpack modules. but this kind of change will require some deeper modifications...

thanks!

CommonJS export

I'm trying to update ink to add gap support. The project hasn't been maintained for a long time, and adding ESM support doesn't seem feasible at this stage

Would it be possible to add a CJS build?

If anyone needed a workaround, you can do this in the mean time

import type Yoga from 'yoga-wasm-web';
import fs from 'fs';

const source = fs
	.readFileSync(require.resolve('yoga-wasm-web/asm'), 'utf-8')
	.replace(/export\s*\{(\w+)\s*as\s*default\}/, 'module.exports.default = $1');
const init = new Function('module', source);

const targetExports: any = {};
init({exports: targetExports});

export default targetExports.default() as any as ReturnType<typeof Yoga>;

export type {Node} from 'yoga-wasm-web';

Image src with Query String not passed through

Filing this bug with an initial hunch of what I'm seeing. I'll fill in this issue with more information as I narrow this down.

Given the following JSX:
<img src="http://example.com/image.png?param=true" />

The ?param=true isn't being passed along. It appears as though only http://example.com/image.png is being requested.

This wasn't an issue until we started using the WASM build. Thus I'm filing the issue here, but do let me know if this is better suited in the Satori repo.

Thanks!

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.