With microbundle set up according to README I receive the following deprecation warning from node-resolve (which I believe is a dependency of rollup in this case):
node-resolve: setting options.module is deprecated, please override options.mainFields instead
node-resolve: setting options.jsnext is deprecated, please override options.mainFields instead
node-resolve: setting options.module is deprecated, please override options.mainFields instead
On the documentation page of rollup-plugin-node-resolve we can see what options should be used instead:
// DEPRECATED: use "mainFields" instead
// use "module" field for ES6 module if possible
module: true, // Default: true
// DEPRECATED: use "mainFields" instead
// use "jsnext:main" if possible
// legacy field pointing to ES6 module in third-party libraries,
// deprecated in favor of "pkg.module":
// - see: https://github.com/rollup/rollup/wiki/pkg.module
jsnext: true, // Default: false
// DEPRECATED: use "mainFields" instead
// use "main" field or index.js, even if it's not an ES6 module
// (needs to be converted from CommonJS to ES6)
// – see https://github.com/rollup/rollup-plugin-commonjs
main: true, // Default: true
It does not (yet) break the build, but I assume after a while this will cause issues.
With
microbundleset up according to README I receive the following deprecation warning fromnode-resolve(which I believe is a dependency of rollup in this case):On the documentation page of
rollup-plugin-node-resolvewe can see what options should be used instead:It does not (yet) break the build, but I assume after a while this will cause issues.