Codesandbox-client: Alias support?

Created on 18 Jan 2018  路  5Comments  路  Source: codesandbox/codesandbox-client

Is there a way to define alias ? Like webpack config:

image

Or just simply alias react and react-dom to inferno

Most helpful comment

Heya! We already have support for aliases (we use them eg. in Vue and Preact), though we don't expose them yet.

I'm releasing an update somewhere next week that allows you to set your own aliases in a 'custom' template, this would also make it easier to have Dio.js, 'Inferno.js' sandboxes etc.

All 5 comments

I'm +1 to this, but they would probably have to be aliased to inferno-compat though. I have the same use case. Sometime I'd like to report issues to React-like alternatives such as Dio.js, Inferno.js, Preact and NervJS and it would be awesome if CodeSandbox could support alias to allow some libraries to be easily tested against the React-compatible alternative libraries.

Heya! We already have support for aliases (we use them eg. in Vue and Preact), though we don't expose them yet.

I'm releasing an update somewhere next week that allows you to set your own aliases in a 'custom' template, this would also make it easier to have Dio.js, 'Inferno.js' sandboxes etc.

Oh, that would be awesome :) Please let us know once it's out :)

853 Will allow you to create your own aliases by defining them on the alias field in package.json on the vanilla template!

Great job! keep up the good work. 馃憤

Was this page helpful?
0 / 5 - 0 ratings

Related issues

k15a picture k15a  路  3Comments

supersonicclay picture supersonicclay  路  3Comments

wojciechczerniak picture wojciechczerniak  路  3Comments

waruyama picture waruyama  路  3Comments

CompuIves picture CompuIves  路  3Comments