Socket
Socket
Sign inDemoInstall

vite

Package Overview
Dependencies
Maintainers
1
Versions
575
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vite - npm Package Compare versions

Comparing version 0.20.3 to 0.20.4

15

CHANGELOG.md

@@ -0,1 +1,16 @@

## [0.20.4](https://github.com/vuejs/vite/compare/v0.20.3...v0.20.4) (2020-06-05)
### Bug Fixes
* fix html accept check ([#353](https://github.com/vuejs/vite/issues/353)) ([ef0b453](https://github.com/vuejs/vite/commit/ef0b453d50709b21ce99695325951d5b3cfb9ecf))
* ignore certain types of dynamic import plugin warnings ([88b41de](https://github.com/vuejs/vite/commit/88b41de8a193f04a08941dab7f417e6a19ce0a89))
### Features
* **dev:** merge source map for vue script block with `lang='ts'` ([#345](https://github.com/vuejs/vite/issues/345)) ([6174e33](https://github.com/vuejs/vite/commit/6174e3328fe70c38a53763bb431a79656535fae1))
## [0.20.3](https://github.com/vuejs/vite/compare/v0.20.2...v0.20.3) (2020-06-04)

@@ -2,0 +17,0 @@

@@ -28,3 +28,11 @@ "use strict";

const warningIgnoreList = [`CIRCULAR_DEPENDENCY`, `THIS_IS_UNDEFINED`];
const dynamicImportWarningIgnoreList = [
`Unsupported expression`,
`statically analyzed`
];
exports.onRollupWarning = (spinner) => (warning, warn) => {
if (warning.plugin === 'rollup-plugin-dynamic-import-variables' &&
dynamicImportWarningIgnoreList.some((msg) => warning.message.includes(msg))) {
return;
}
if (!warningIgnoreList.includes(warning.code)) {

@@ -31,0 +39,0 @@ // ora would swallow the console.warn if we let it keep running

2

dist/server/serverPluginServeStatic.js

@@ -25,3 +25,3 @@ "use strict";

// handle possible user request -> file aliases
const expectsHtml = ctx.headers.accept.includes('text/html');
const expectsHtml = ctx.headers.accept && ctx.headers.accept.includes('text/html');
if (!expectsHtml) {

@@ -28,0 +28,0 @@ const filePath = resolver.requestToFile(ctx.path);

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

const serverPluginModuleRewrite_1 = require("./serverPluginModuleRewrite");
const merge_source_map_1 = __importDefault(require("merge-source-map"));
const debug = require('debug')('vite:sfc');

@@ -281,4 +282,7 @@ const getEtag = require('etag');

if (descriptor.script.lang === 'ts') {
// TODO merge lang=ts source map
content = (await esbuildService_1.transform(content, publicPath, { loader: 'ts' })).code;
const { code, map } = await esbuildService_1.transform(content, publicPath, {
loader: 'ts'
});
content = code;
descriptor.script.map = merge_source_map_1.default(descriptor.script.map, JSON.parse(map));
}

@@ -285,0 +289,0 @@ // rewrite export default.

{
"name": "vite",
"version": "0.20.3",
"version": "0.20.4",
"license": "MIT",

@@ -82,2 +82,3 @@ "author": "Evan You",

"magic-string": "^0.25.7",
"merge-source-map": "^1.1.0",
"mime-types": "^2.1.27",

@@ -84,0 +85,0 @@ "minimist": "^1.2.5",

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