Skip to content

Commit

Permalink
Migrate Remix template to ESM
Browse files Browse the repository at this point in the history
  • Loading branch information
connor-baer committed Nov 8, 2023
1 parent 7facc0d commit dadc501
Show file tree
Hide file tree
Showing 8 changed files with 6 additions and 6 deletions.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion packages/remix-template/app/components/DocCard/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export { DocCard } from './DocCard';
export { DocCard } from './DocCard.jsx';
2 changes: 1 addition & 1 deletion packages/remix-template/app/routes/_index/route.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { MetaFunction } from '@remix-run/node';
import { Title, BodyLarge } from '@sumup/circuit-ui';

import { DocCard } from '../../components/DocCard';
import { DocCard } from '../../components/DocCard/index.js';

import styles from './route.module.css';

Expand Down
3 changes: 2 additions & 1 deletion packages/remix-template/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@
"version": "1.1.3",
"private": true,
"sideEffects": false,
"type": "module",
"scripts": {
"build": "remix build",
"dev": "remix dev",
"start": "remix-serve build",
"start": "remix-serve ./build/index.js",
"typecheck": "tsc",
"lint": "foundry run eslint . --ext .js,.jsx,.json,.ts,.tsx",
"lint:fix": "npm run lint -- --fix"
Expand Down
File renamed without changes.
5 changes: 2 additions & 3 deletions packages/remix-template/remix.config.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
/** @type {import('@remix-run/dev').AppConfig} */
module.exports = {
export default {
ignoredRouteFiles: ['**/.*'],
// appDirectory: "app",
// assetsBuildDirectory: "public/build",
// serverBuildPath: "build/index.js",
// publicPath: "/build/",
serverModuleFormat: 'cjs',
// serverBuildPath: "build/index.js",
serverDependenciesToBundle: ['@sumup/circuit-ui', '@sumup/icons'],
};

1 comment on commit dadc501

@vercel
Copy link

@vercel vercel bot commented on dadc501 Nov 8, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.