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

mescalito picture mescalito  路  65Comments

Saeris picture Saeris  路  115Comments

ryanpcmcquen picture ryanpcmcquen  路  23Comments

YarivGilad picture YarivGilad  路  22Comments

gautamarora picture gautamarora  路  50Comments