Control: forwarded -1 https://github.com/ai/autoprefixer-rails/issues/199

On Fri, 25 Dec 2020 14:51:34 +0530 Pirate Praveen <prav...@onenetbeyond.org> wrote: > Even though the build now succeed, it is producing a broken output. Size of autoprefixer.js dropped from 4.5 mb to 900 kb. It should bundle postcss and polyfills.
>
> It may be because newer versions of browsers supporting new features without polyfills. But we need to confirm it.
>
> One way could be building the upstream code with build dependencies matching the versions in debian. rollup, its plugins or caniuse-db/browserslist update may have caused this change.

This seems to be caused by @rollup/plugin-node-resolve 10. Running build in upstream repo with updated @rollup/plugin-node-resolve throws a similar error.

With upsteam yarn.lock and yarnpkg install,

(debian-sid)pravi@ilvala2:~/forge/js-team/autoprefixer-rails-10.1.0.0/build$ yarnpkg run rollup -c
yarn run v1.22.10
$ /home/pravi/forge/js-team/autoprefixer-rails-10.1.0.0/build/node_modules/.bin/rollup -c

autoprefixer.js → ../vendor/autoprefixer.js...
created ../vendor/autoprefixer.js in 8s
Done in 8.47s.

Now with updated @rollup/plugin-node-resolve

(debian-sid)pravi@ilvala2:~/forge/js-team/autoprefixer-rails-10.1.0.0/build$ yarnpkg upgrade @rollup/plugin-node-resolve@^10.0.0
yarn upgrade v1.22.10
[1/4] Resolving packages...
[2/4] Fetching packages...
info fsevents@2.1.3: The platform "linux" is incompatible with this module. info "fsevents@2.1.3" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
[4/4] Rebuilding all packages...
success Saved lockfile.
success Saved 1 new dependency.
info Direct dependencies
└─ @rollup/plugin-node-resolve@10.0.0
info All dependencies
└─ @rollup/plugin-node-resolve@10.0.0
Done in 3.75s.

$ yarnpkg run rollup -c
yarn run v1.22.10
$ /home/pravi/forge/js-team/autoprefixer-rails-10.1.0.0/build/node_modules/.bin/rollup -c

autoprefixer.js → ../vendor/autoprefixer.js...
[!] Error: Could not load process (imported by node_modules/postcss/lib/postcss.js): ENOENT: no such file or directory, open 'process' Error: Could not load process (imported by node_modules/postcss/lib/postcss.js): ENOENT: no such file or directory, open 'process'

error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Reply via email to