Skip to content

Commit

Permalink
feat(solid): keep solid components in .jsx
Browse files Browse the repository at this point in the history
  • Loading branch information
nolimits4web committed Oct 3, 2022
1 parent 0f1e5dd commit d7f7f65
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions scripts/build-solid.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ async function buildSolid() {
`npx babel --config-file ./scripts/babel/babel.config.solid.json src/solid --out-dir ${outputDir}/solid`,
);
await addBannerToFile(`./${outputDir}/solid/swiper-solid.js`, 'SolidJS');
await fs.copyFile('./src/solid/swiper.js', `./${outputDir}/solid/swiper.js`);
await fs.copyFile('./src/solid/swiper-slide.js', `./${outputDir}/solid/swiper-slide.js`);
await fs.copyFile('./src/solid/swiper.jsx', `./${outputDir}/solid/swiper.jsx`);
await fs.copyFile('./src/solid/swiper-slide.jsx', `./${outputDir}/solid/swiper-slide.jsx`);
}
export default buildSolid;
File renamed without changes.
4 changes: 2 additions & 2 deletions src/solid/swiper-solid.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export { Swiper } from './swiper.js';
export { SwiperSlide } from './swiper-slide.js';
export { Swiper } from './swiper.jsx';
export { SwiperSlide } from './swiper-slide.jsx';

export { useSwiperSlide, useSwiper } from './context.js';

0 comments on commit d7f7f65

Please sign in to comment.