-
Notifications
You must be signed in to change notification settings - Fork 66
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
Require without file extension #397
Labels
bug
Something isn't working
Comments
how are you using the but I agree, that it should work w/o extension. |
tripodsan
added a commit
that referenced
this issue
Feb 14, 2019
tripodsan
added a commit
that referenced
this issue
Feb 14, 2019
this now works with |
tripodsan
added a commit
that referenced
this issue
Feb 28, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
In one of the latest releases, using
require
on a local file does not work anymore if the file extension is omitted. I need this functionality to allow the inclusion of jsx files. These files have the jsx extension in the source directory, but are renamed to js files inside the.hlx/build
directory and can therefore not be required anymore.To Reproduce
Steps to reproduce the behavior:
hlx demo test
src/test.js
with contentmodule.exports = "Test";
const test = require("./test");
at the beginning ofsrc/html.pre.js
hlx up
Expected behavior
Helix should build the project without complains.
Version:
0.10.10
The text was updated successfully, but these errors were encountered: