electron-userland / electron-userland/electron-webpack

Fail to transpile other js files next to src/main/index.js file

Open
#433 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
902
Forks
168
PR merge metrics
No merged PRs in 30d

Description

* **Version**: 22.9.1

* **Target**: Windows, Mac

Failed to transpile other js files like `preload.js` which are also sitting inside `src/main` folder. Throws an error: `Cannot use import statement outside a module`

![Screen Shot 2021-03-06 at 5 49 58 PM](https://user-images.githubusercontent.com/13145522/110206195-6dfd8680-7ea4-11eb-87ac-bf60851fde6b.png)

The main `src/main/index.js` seems fine for transpilation but rest of other files have an issue transpiling it.
Do we need to handle this from a custom webpack file i.e. `custom.webpack.additions.js`. Or am i missing something?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.