![PyPI Now Supports iOS and Android Wheels for Mobile Python Development](https://cdn.sanity.io/images/cgdhsj6q/production/96416c872705517a6a65ad9646ce3e7caef623a0-1024x1024.webp?w=400&fit=max&auto=format)
Security News
PyPI Now Supports iOS and Android Wheels for Mobile Python Development
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
rollup-plugin-npm
Advanced tools
Find third party modules in node_modules
, so that they can be included in a Rollup bundle.
npm install --save-dev rollup-plugin-npm
import { rollup } from 'rollup';
import npm from 'rollup-plugin-npm';
rollup({
entry: 'main.js',
plugins: [
npm({
// use "jsnext:main" if possible
// – see https://github.com/rollup/rollup/wiki/jsnext:main
jsnext: true,
// 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,
// if there's something your bundle requires that you DON'T
// want to include, add it to 'skip'
skip: [ 'some-big-dependency' ],
// by default, built-in modules such as `fs` and `path` are
// treated as external if a local module with the same name
// can't be found. If you really want to turn off this
// behaviour for some reason, use `builtins: false`
builtins: false
})
]
}).then( bundle => bundle.write({ dest: 'bundle.js', format: 'iife' }) );
// alongside rollup-plugin-commonjs, for using non-ES6 third party modules
import commonjs from 'rollup-plugin-commonjs';
rollup({
entry: 'main.js',
plugins: [
npm({ jsnext: true, main: true }),
commonjs()
]
}).then( bundle => bundle.write({ dest: 'bundle.js', format: 'iife' }) );
MIT
FAQs
rollup-plugin-npm is now [rollup-plugin-node-resolve](https://github.com/rollup/rollup-plugin-node-resolve)
The npm package rollup-plugin-npm receives a total of 0 weekly downloads. As such, rollup-plugin-npm popularity was classified as not popular.
We found that rollup-plugin-npm demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.