Socket
Socket
Sign inDemoInstall

@web/dev-server-rollup

Package Overview
Dependencies
Maintainers
7
Versions
81
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@web/dev-server-rollup - npm Package Compare versions

Comparing version 0.2.8 to 0.2.9

6

CHANGELOG.md
# @web/dev-server-rollup
## 0.2.9
### Patch Changes
- 6949d03: fix serving generated rollup chunks
## 0.2.8

@@ -4,0 +10,0 @@

6

dist/rollupBundlePlugin.js

@@ -10,3 +10,2 @@ "use strict";

async function bundleEntrypoints(rollupConfig) {
var _a;
const bundle = await rollup_1.rollup(rollupConfig);

@@ -16,3 +15,3 @@ if (Array.isArray(rollupConfig.output)) {

}
return bundle.generate((_a = rollupConfig.output) !== null && _a !== void 0 ? _a : {});
return bundle.generate(Object.assign(Object.assign({}, rollupConfig.output), { chunkFileNames: '__rollup-generated__[name].js', assetFileNames: '__rollup-generated__[name][extname]' }));
}

@@ -59,2 +58,5 @@ function rollupBundlePlugin(pluginOptions) {

}
else if (context.path.includes('__rollup-generated__')) {
return servedFiles.get(`/${path_1.default.basename(context.path)}`);
}
},

@@ -61,0 +63,0 @@ };

{
"name": "@web/dev-server-rollup",
"version": "0.2.8",
"version": "0.2.9",
"publishConfig": {

@@ -5,0 +5,0 @@ "access": "public"

@@ -14,3 +14,8 @@ import { Plugin } from '@web/dev-server-core';

}
return bundle.generate(rollupConfig.output ?? {});
return bundle.generate({
...rollupConfig.output,
chunkFileNames: '__rollup-generated__[name].js',
assetFileNames: '__rollup-generated__[name][extname]',
});
}

@@ -61,2 +66,4 @@

return content;
} else if (context.path.includes('__rollup-generated__')) {
return servedFiles.get(`/${path.basename(context.path)}`);
}

@@ -63,0 +70,0 @@ },

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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