vite-plugin-dynamic-import
Advanced tools
Comparing version 0.6.0 to 0.6.1
@@ -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 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
47856
3
22
1081
+ Addedvite-plugin-utils@^0.1.0
+ Addedvite-plugin-utils@0.1.0(transitive)