Skip to content

Commit

Permalink
Fix running with Snowpack
Browse files Browse the repository at this point in the history
  • Loading branch information
Filyus committed Mar 18, 2021
1 parent 1e12bf9 commit 62d5b54
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions package/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,5 +67,8 @@
"dependencies": {
"dom7": "^3.0.0",
"ssr-window": "^3.0.0"
},
"peerDependencies": {
"svelte": "^3.x"
}
}
1 change: 1 addition & 0 deletions scripts/build-js-core.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ async function buildCore(components, format, cb) {
const outputDir = env === 'development' ? 'build' : 'package';
let coreContent = '';
if (format === 'esm') {
coreContent += `export const __esModule = true;\n`;
coreContent += `export { default as Swiper, default } from './components/core/core-class';\n`;
coreContent += components
.map(
Expand Down

0 comments on commit 62d5b54

Please sign in to comment.