-
-
Notifications
You must be signed in to change notification settings - Fork 114
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
Using babelify with new scoped packages #251
Comments
Here's my {
"presets": [
["@babel/env", {
"targets": {
"browser": [
"> 1%",
"last 10 versions",
"ie > 7"
]
}
}]
],
"plugins": [
"@babel/proposal-unicode-property-regex"
],
"env": {
"test": {
"plugins": ["istanbul"]
}
}
} |
Getting the same error after changing the `babel-core' to point to the new scoped packages:
|
I didn't even know you could do that. Does it work if you point it to |
Nope my bad, can't do that with npm... But I did investigate some farther, the issue is with this condition: Babel 7 remove the util object all together: #231 I wanted to try my initial approach (replacing the
I'm glade to say that this hack works! |
I've open PR for this issue: #252 Meanwhile you can replace the package with my package: "dependencies": {
"@babel/core": "^7.0.0-beta.3",
"@babel/preset-env": "^7.0.0-beta.32",
"babel-core": "^6.26.0",
"babelify": "git+https://github.com/noygal/babelify.git#feature/babel-7-support",
} And use the new options browserify().transform('babelify', {
presets: ['@babel/preset-env'],
babel: require('@babel/core')
}) |
I know *lify components are prehistoric, but please.. Merge this PR #252 . We are sadly using this. Thanks |
Can we get this merged please? Thanks! |
Today I installed the new scoped packages of babel, e.g.
@babel/core
etc., including the plugins, e.g.@babel/plugin-proposal-pipeline-operator
etc. However,babelify@8
still requires the 'old'babel-core
package, AFAICT. I first installedbabel-core@6
by accident, which had problems with the new.babelrc
plugin syntax (before it would prefixbabel-plugin-
to get the package, I think; now it'd need to addplugin-
between@babel/
and the plugin name).However,
[email protected]
, the latest I could find, gave the following error instead:Note: I'm not sure if it's possible to use babelify with the new scoped packages at all.
The text was updated successfully, but these errors were encountered: