mirror of
https://github.com/meteor/meteor.git
synced 2026-01-10 08:08:24 -05:00
Symlink from @babel/runtime/helpers/builtin to @babel/runtime/helpers.
https://github.com/babel/babel/pull/8266#issuecomment-410713225 Should fix #10129, since the vue-component build plugin registered by akryum:vue-component depends on the @babel/runtime package installed in dev_bundle/lib/node_modules.
This commit is contained in:
@@ -151,9 +151,24 @@ cp -R node_modules/.bin "${DIR}/lib/node_modules/"
|
||||
|
||||
cd "${DIR}/lib"
|
||||
|
||||
# Clean up some bulky stuff.
|
||||
cd node_modules
|
||||
|
||||
# @babel/runtime@7.0.0-beta.56 removed the @babel/runtime/helpers/builtin
|
||||
# directory, since all helpers are now implemented in the built-in style
|
||||
# (meaning they do not import core-js polyfills). Generated code in build
|
||||
# plugins might still refer to the old directory layout (at least for the
|
||||
# time being), but we can accommodate that by symlinking to the parent
|
||||
# directory, since all the module names are the same.
|
||||
if [ -d @babel/runtime/helpers ] &&
|
||||
[ ! -d @babel/runtime/helpers/builtin ]
|
||||
then
|
||||
pushd @babel/runtime/helpers
|
||||
ln -s . builtin
|
||||
popd
|
||||
fi
|
||||
|
||||
## Clean up some bulky stuff.
|
||||
|
||||
# Used to delete bulky subtrees. It's an error (unlike with rm -rf) if they
|
||||
# don't exist, because that might mean it moved somewhere else and we should
|
||||
# update the delete line.
|
||||
|
||||
Reference in New Issue
Block a user