Skip to content

Commit

Permalink
Merge pull request #32 from Adyen/develop
Browse files Browse the repository at this point in the history
Add support for unpkg
  • Loading branch information
vergilfromadyen authored Mar 8, 2024
2 parents e941052 + 413cee5 commit cceaf11
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"viewer",
"adyen-document-viewer"
],
"version": "1.0.1",
"version": "1.0.2",
"description": "Adyen Document Viewer",
"main": "./dist/adyen-document-viewer.min.umd.cjs",
"module": "./dist/adyen-document-viewer.min.js",
Expand Down Expand Up @@ -51,8 +51,8 @@
"url": "https://github.com/Adyen/adyen-document-viewer.git"
},
"files": [
"dist/adyen-document-viewer.min.mjs",
"dist/adyen-document-viewer.min.js",
"dist/adyen-document-viewer.min.umd.cjs",
"dist/adyen-document-viewer.min.css",
"dist/index.d.ts",
"dist/types/index.d.ts",
Expand All @@ -62,8 +62,8 @@
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/adyen-document-viewer.min.js",
"require": "./dist/adyen-document-viewer.min.umd.cjs"
"import": "./dist/adyen-document-viewer.min.mjs",
"require": "./dist/adyen-document-viewer.min.js"
},
"./dist/adyen-document-viewer.min.css": "./dist/adyen-document-viewer.min.css"
},
Expand Down
3 changes: 2 additions & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ export default defineConfig(() => {
name: 'AdyenDocumentViewer',
entry: resolve(__dirname, 'src/index.tsx'),
formats: ['es', 'umd'],
fileName: 'adyen-document-viewer.min',
fileName: (format) =>
format === 'es' ? 'adyen-document-viewer.min.mjs' : 'adyen-document-viewer.min.js',
},
rollupOptions: {
output: {
Expand Down

0 comments on commit cceaf11

Please sign in to comment.