vite-plugin-external-cdn 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -87,7 +87,7 @@ export default {
87
87
 
88
88
  ```js
89
89
  import vue from '@vitejs/plugin-vue'
90
- import importToCDN, { autoComplete } from 'vite-plugin-cdn-import'
90
+ import { importToCDN, autoComplete } from 'vite-plugin-cdn-import'
91
91
 
92
92
  export default {
93
93
  plugins: [
package/dist/index.d.mts CHANGED
@@ -135,4 +135,4 @@ declare const modulesConfig: {
135
135
  type ModuleName = keyof typeof modulesConfig;
136
136
  declare function autoComplete(name: ModuleName): (prodUrl: string) => Module;
137
137
 
138
- export { Options, transformExternalCDN as PluginExternalCDN, autoComplete, transformExternalCDN as default };
138
+ export { Options, autoComplete, transformExternalCDN as default, transformExternalCDN as importToCDN };
package/dist/index.d.ts CHANGED
@@ -135,4 +135,4 @@ declare const modulesConfig: {
135
135
  type ModuleName = keyof typeof modulesConfig;
136
136
  declare function autoComplete(name: ModuleName): (prodUrl: string) => Module;
137
137
 
138
- export { Options, transformExternalCDN as PluginExternalCDN, autoComplete, transformExternalCDN as default };
138
+ export { Options, autoComplete, transformExternalCDN as default, transformExternalCDN as importToCDN };
package/dist/index.js CHANGED
@@ -30,9 +30,9 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
30
30
  // src/index.ts
31
31
  var src_exports = {};
32
32
  __export(src_exports, {
33
- PluginExternalCDN: () => transformExternalCDN,
34
33
  autoComplete: () => autoComplete,
35
- default: () => src_default
34
+ default: () => src_default,
35
+ importToCDN: () => transformExternalCDN
36
36
  });
37
37
  module.exports = __toCommonJS(src_exports);
38
38
 
@@ -307,6 +307,6 @@ function autoComplete(name) {
307
307
  var src_default = transformExternalCDN;
308
308
  // Annotate the CommonJS export names for ESM import in node:
309
309
  0 && (module.exports = {
310
- PluginExternalCDN,
311
- autoComplete
310
+ autoComplete,
311
+ importToCDN
312
312
  });
package/dist/index.mjs CHANGED
@@ -268,7 +268,7 @@ function autoComplete(name) {
268
268
  // src/index.ts
269
269
  var src_default = transformExternalCDN;
270
270
  export {
271
- transformExternalCDN as PluginExternalCDN,
272
271
  autoComplete,
273
- src_default as default
272
+ src_default as default,
273
+ transformExternalCDN as importToCDN
274
274
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vite-plugin-external-cdn",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "A vite plugin to import dependencies as a CDN.",
5
5
  "files": [
6
6
  "dist"
@@ -52,5 +52,11 @@
52
52
  "eslint --cache --fix",
53
53
  "eslint"
54
54
  ]
55
+ },
56
+ "peerDependencies": {
57
+ "vite": ">=3"
58
+ },
59
+ "engines": {
60
+ "node": ">=14"
55
61
  }
56
62
  }