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

vite-plugin-dynamic-import

Package Overview
Dependencies
Maintainers
1
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vite-plugin-dynamic-import - npm Package Compare versions

Comparing version 0.6.0 to 0.6.1

8

dist/index.js

@@ -9,4 +9,4 @@ "use strict";

const fast_glob_1 = __importDefault(require("fast-glob"));
const vite_plugin_utils_1 = require("vite-plugin-utils");
const utils_1 = require("./utils");
const sort_plugin_1 = require("./sort-plugin");
const alias_1 = require("./alias");

@@ -131,3 +131,7 @@ const dynamic_import_vars_1 = require("./dynamic-import-vars");

};
return (0, sort_plugin_1.sortPlugin)(dyImpt);
return (0, vite_plugin_utils_1.sortPlugin)({
plugin: dyImpt,
names: Object.values(vite_plugin_utils_1.OfficialPlugins).flat(),
enforce: 'post',
});
}

@@ -134,0 +138,0 @@ exports.default = dynamicImport;

{
"name": "vite-plugin-dynamic-import",
"version": "0.6.0",
"version": "0.6.1",
"description": "Enhance Vite builtin dynamic import",

@@ -14,7 +14,8 @@ "main": "dist/index.js",

"acorn-walk": "^8.2.0",
"fast-glob": "^3.2.11"
"fast-glob": "^3.2.11",
"vite-plugin-utils": "^0.1.0"
},
"devDependencies": {
"@types/node": "^17.0.21",
"typescript": "^4.6.2",
"@types/node": "^17.x.x",
"typescript": "^4.x.x",
"vite": "^2.x"

@@ -21,0 +22,0 @@ },

@@ -5,2 +5,3 @@ import path from 'path'

import fastGlob from 'fast-glob'
import { sortPlugin, OfficialPlugins } from 'vite-plugin-utils'
import {

@@ -15,3 +16,2 @@ hasDynamicImport,

} from './utils'
import { sortPlugin } from './sort-plugin'
import type { AcornNode, DynamicImportOptions } from './types'

@@ -165,3 +165,7 @@ import { AliasContext, AliasReplaced } from './alias'

return sortPlugin(dyImpt)
return sortPlugin({
plugin: dyImpt,
names: Object.values(OfficialPlugins).flat(),
enforce: 'post',
})
}

@@ -168,0 +172,0 @@

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