You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Given that nodejs has come a long way and async/await and other modern ES features have long been released, I decided to remove the babel project. Babel was causing more trouble than solving at this point and makes the maintenance of this package difficult.
However after reading the code it is still unclear how migrate-mongoose can now be used with ES6 files containing import and export statements without a transpiler. Can you please add an example or explain how can you now run migrations with ES6 files as stated in the current README.md file here:
I was able to get ES6 imports to work in my migrations by wrapping the cli within the module. I could never get the migrate binary the project ships with to work with them.
Create a new file in your project that imports "cli" from the module: import cli from 'migrate-mongoose/src/cli'
Execute with esm or add as a yarn script, ie: node -r esm db/src/migrate.js
In the 4.0.0's version info it says:
However after reading the code it is still unclear how
migrate-mongoose
can now be used with ES6 files containingimport
andexport
statements without a transpiler. Can you please add an example or explain how can you now run migrations with ES6 files as stated in the currentREADME.md
file here:https://github.com/balmasi/migrate-mongoose/blob/master/README.md#migrations1459287720919-my-migrationjs
The text was updated successfully, but these errors were encountered: