pika-plugin-build-web-babel
Advanced tools
Comparing version 0.7.6 to 0.7.7
{ | ||
"name": "pika-plugin-build-web-babel", | ||
"description": "A @pika/pack plugin: Adds an babel compiled ESM distribution to your package", | ||
"version": "0.7.6", | ||
"version": "0.7.7", | ||
"files": [ | ||
@@ -6,0 +6,0 @@ "src/" |
@@ -43,3 +43,2 @@ var path = (require('path')); | ||
}) { | ||
const pkg = require(path.join(cwd, 'package.json')); | ||
const writeToWeb = path.join(out, 'dist-web', 'index.js'); | ||
@@ -50,5 +49,8 @@ const extensions = options.extensions || defaultExtensions; | ||
let input = path.join(src, 'index'); | ||
const result = await rollup.rollup({ | ||
input, | ||
external: Object.keys(pkg.dependencies || {}), | ||
external: function(s) { | ||
return !(s.startsWith('/') || s.startsWith('./') || s.startsWith('../')); | ||
}, | ||
plugins: [ | ||
@@ -55,0 +57,0 @@ resolve({ |
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
3120
73
1