Open donkeybanana opened 4 years ago
How often can you reproduce it?
Description:
https://stealjs.com/docs/StealJS.babel.html#specifying-version states:
If you have a code-base that needs a specific version of Babel you can include it using paths config.
I have tried doing so for both npm config and stealconfig.js approaches.
npm
stealconfig.js
Looks like this line is the culprit https://github.com/stealjs/steal/blob/master/steal.js#L6889 as replacing with the following results in the paths override working correctly:
paths
setIfNotPresent(this.paths,"babel", dirname+"/ext/babel.js");
Steps to reproduce:
npm install -S steal@2 babel-standalone
{ "steal": { "paths": { "babel": "node_modules/babel-standalone/babel.js" } } }
Expected results:
Babel is loaded from node_modules/babel-standalone/babel.js.
node_modules/babel-standalone/babel.js
Actual results:
Babel is loaded from node_modules/steal/ext/babel.js.
node_modules/steal/ext/babel.js
Environment:
"steal": "^2.2.4"
"steal-tools": "^2.2.6"
v12.16.3
6.14.4
5.4.40-1-MANJARO
How often can you reproduce it?
Description:
https://stealjs.com/docs/StealJS.babel.html#specifying-version states:
I have tried doing so for both
npm
config andstealconfig.js
approaches.Looks like this line is the culprit https://github.com/stealjs/steal/blob/master/steal.js#L6889 as replacing with the following results in the
paths
override working correctly:Steps to reproduce:
npm install -S steal@2 babel-standalone
paths
as per https://stealjs.com/docs/StealJS.babel.html#specifying-versionExpected results:
Babel is loaded from
node_modules/babel-standalone/babel.js
.Actual results:
Babel is loaded from
node_modules/steal/ext/babel.js
.Environment:
"steal": "^2.2.4"
"steal-tools": "^2.2.6"
v12.16.3
6.14.4
5.4.40-1-MANJARO