Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

rollup-plugin-web-worker-loader

Package Overview
Dependencies
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rollup-plugin-web-worker-loader - npm Package Compare versions

Comparing version 1.4.0 to 1.4.1

2

package.json
{
"name": "rollup-plugin-web-worker-loader",
"version": "1.4.0",
"version": "1.4.1",
"description": "Rollup plugin to handle Web Workers",

@@ -5,0 +5,0 @@ "main": "src/index.js",

@@ -81,3 +81,9 @@ const fs = require('fs');

state.exclude.delete(target);
bundle.generate({format: 'iife', name: 'worker_code', sourcemap: true}).then(result => {
const bundleOptions = {
format: 'iife',
name: 'worker_code',
sourcemap: true,
inlineDynamicImports: true,
};
bundle.generate(bundleOptions).then(result => {
resolve(handleBundleGenerated(state, config, addWatchFile, id, workerID, result));

@@ -84,0 +90,0 @@ }).catch(reject);

@@ -18,3 +18,3 @@ const path = require('path');

for (let i = 0; i < map.sources.length; ++i) {
const full = findFullPath(map.sources[i], map.sourcesContent[i].length, chunk.modules);
const full = map.sourcesContent[i] && findFullPath(map.sources[i], map.sourcesContent[i].length, chunk.modules);
if (full) {

@@ -21,0 +21,0 @@ const relative = path.relative(basePath, full);

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc