pika-plugin-build-web-babel
Advanced tools
Comparing version 0.12.1 to 0.12.2
{ | ||
"name": "pika-plugin-build-web-babel", | ||
"description": "A @pika/pack plugin: Adds an babel compiled ESM distribution to your package", | ||
"version": "0.12.1", | ||
"version": "0.12.2", | ||
"files": [ | ||
@@ -6,0 +6,0 @@ "src/" |
@@ -21,2 +21,3 @@ var path = (require('path')); | ||
const dirMap = { | ||
iife: 'dist-iife', | ||
umd: 'dist-umd', | ||
@@ -30,2 +31,3 @@ cjs: 'dist-node', | ||
umd: 'umd:main', | ||
iife: 'iife:main', | ||
}; | ||
@@ -84,3 +86,3 @@ function manifest(manifest, { options }) { | ||
].filter(Boolean); | ||
plugins.push(commonjs()); | ||
@@ -119,3 +121,3 @@ | ||
if (format === 'umd') { | ||
if (format === 'umd' || format === 'iife') { | ||
external = options.external || ['react', 'react-dom']; | ||
@@ -169,3 +171,3 @@ plugins.push(replace({ | ||
}; | ||
if (format === 'umd') { | ||
if (format === 'umd' || format === 'iife') { | ||
output = { | ||
@@ -172,0 +174,0 @@ ...output, |
20998
560