Skip to content

Conversation

balping
Copy link
Contributor

@balping balping commented Mar 30, 2018

#40

I realised that String.prototype.replace() already has the capability of using callbacks, so only the option validation had to be modified.

I would normally add a test, but I couldn't set up testing. It needs a certain test/build/build.js file that I have no idea how to generate.

@Va1
Copy link
Owner

Va1 commented Apr 12, 2018

hi @balping

you can run tests by executing npm test

what i see is that your code might not work due to the fact that webpack is serializing options to JSON and back and therefore any callbacks will be lost. try it yourself and add tests to PR if it works, i might be wrong

thank you

@balping
Copy link
Contributor Author

balping commented Apr 12, 2018

Yes, I can run npm test, but all tests fail, because the lack of the build directory.

Uncaught AssertionError: expected [Error: ENOENT: no such file or directory, open '/tmp/string-replace-loader/test/build/build.js'] to equal null

@balping
Copy link
Contributor Author

balping commented May 23, 2018

@Va1 bump

@CyberNika
Copy link

when will this be released?

@lightpohl
Copy link

@Va1 - Hello! Tested these changes locally and they appear to be working well in our app. We’re altering the string replacement depending on the build environment.

Anything I can do to help with this change?

@balping
Copy link
Contributor Author

balping commented Aug 13, 2018

@joshuapohl

You could help to figure it out, how to run npm test

@fregante
Copy link

I hope to see this landing at some point

@Va1 Va1 changed the base branch from master to develop June 13, 2019 14:44
@Va1 Va1 merged commit c200a9f into Va1:develop Jun 13, 2019
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 this pull request may close these issues.

5 participants