Skip to content

Commit

Permalink
Merge pull request #4351 from Filyus/master
Browse files Browse the repository at this point in the history
Fix running with Snowpack
  • Loading branch information
nolimits4web committed Mar 22, 2021
2 parents 1e12bf9 + 62d5b54 commit b2d60e7
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
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
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 b2d60e7

Please sign in to comment.