From a1423e05b4eaba37764f4c3592be0e3515ac20f8 Mon Sep 17 00:00:00 2001 From: fisker Cheung Date: Mon, 18 Nov 2019 00:29:11 +0800 Subject: [PATCH] Switch `rollup-plugin-json` to `@rollup/plugin-json` (#6987) --- package.json | 2 +- scripts/build/bundler.js | 2 +- yarn.lock | 14 +++++++------- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/package.json b/package.json index 0fc1e0ccc..f9d921f45 100644 --- a/package.json +++ b/package.json @@ -77,6 +77,7 @@ "@babel/core": "7.7.2", "@babel/preset-env": "7.7.1", "@rollup/plugin-alias": "2.2.0", + "@rollup/plugin-json": "4.0.0", "@rollup/plugin-replace": "2.2.1", "babel-loader": "8.0.6", "benchmark": "2.1.4", @@ -101,7 +102,6 @@ "rollup": "1.26.3", "rollup-plugin-babel": "4.3.3", "rollup-plugin-commonjs": "10.1.0", - "rollup-plugin-json": "4.0.0", "rollup-plugin-node-globals": "1.4.0", "rollup-plugin-node-resolve": "5.2.0", "rollup-plugin-terser": "5.1.2", diff --git a/scripts/build/bundler.js b/scripts/build/bundler.js index 8d85bb8bb..b7a98e210 100644 --- a/scripts/build/bundler.js +++ b/scripts/build/bundler.js @@ -8,7 +8,7 @@ const resolve = require("rollup-plugin-node-resolve"); const alias = require("@rollup/plugin-alias"); const commonjs = require("rollup-plugin-commonjs"); const nodeGlobals = require("rollup-plugin-node-globals"); -const json = require("rollup-plugin-json"); +const json = require("@rollup/plugin-json"); const replace = require("@rollup/plugin-replace"); const { terser } = require("rollup-plugin-terser"); const babel = require("rollup-plugin-babel"); diff --git a/yarn.lock b/yarn.lock index 9df29de08..fb3c3a622 100644 --- a/yarn.lock +++ b/yarn.lock @@ -743,6 +743,13 @@ dependencies: slash "^3.0.0" +"@rollup/plugin-json@4.0.0": + version "4.0.0" + resolved "https://registry.yarnpkg.com/@rollup/plugin-json/-/plugin-json-4.0.0.tgz#4462e83c7ad5544bef4a601a6e8450daedc4b69b" + integrity sha512-Z65CtEVWv40+ri4CvmswyhtuUtki9yP5p0UJN/GyCKKyU4jRuDS9CG0ZuV7/XuS7zGkoajyE7E4XBEaC4GW62A== + dependencies: + rollup-pluginutils "^2.5.0" + "@rollup/plugin-replace@2.2.1": version "2.2.1" resolved "https://registry.yarnpkg.com/@rollup/plugin-replace/-/plugin-replace-2.2.1.tgz#94af20cb3d70cccdcec991d1f97dd373936ec544" @@ -5891,13 +5898,6 @@ rollup-plugin-commonjs@10.1.0: resolve "^1.11.0" rollup-pluginutils "^2.8.1" -rollup-plugin-json@4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/rollup-plugin-json/-/rollup-plugin-json-4.0.0.tgz#a18da0a4b30bf5ca1ee76ddb1422afbb84ae2b9e" - integrity sha512-hgb8N7Cgfw5SZAkb3jf0QXii6QX/FOkiIq2M7BAQIEydjHvTyxXHQiIzZaTFgx1GK0cRCHOCBHIyEkkLdWKxow== - dependencies: - rollup-pluginutils "^2.5.0" - rollup-plugin-node-globals@1.4.0: version "1.4.0" resolved "https://registry.yarnpkg.com/rollup-plugin-node-globals/-/rollup-plugin-node-globals-1.4.0.tgz#5e1f24a9bb97c0ef51249f625e16c7e61b7c020b"