Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow a dynamic entry point and fall back to main.js if no value is defined. #718

Open
ajbogh opened this issue Jan 23, 2020 · 0 comments · May be fixed by #736
Open

Allow a dynamic entry point and fall back to main.js if no value is defined. #718

ajbogh opened this issue Jan 23, 2020 · 0 comments · May be fixed by #736

Comments

@ajbogh
Copy link
Contributor

ajbogh commented Jan 23, 2020

For Typescript projects it'd be useful to allow main.ts as the entry point, instead of requiring main.js in all projects. One method of providing this functionality is to use the main property of package.json. This would allow developers to choose any main file, such as main.ts or main.coffee even.

If the main property in package.json isn't provided then the get-webpack-config could fall back to main.js.

Another option could be to add a new optional property to .fusionrc.js if we feel package.json's main property is not the right place.

const main = 'src/main.js';

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant