Skip to content

Commit be01c53

Browse files
authored
feat(vite): Use Vite for CedarJS's Cell transform (#124)
Starting to move away from babel as its require hook, which is what we use, is not compatible with ESM imports. > Note: @babel/register does not support compiling native Node.js ES modules on the fly, since currently there is no stable API for intercepting ES modules loading. – _https://babel.dev/docs/babel-register_
1 parent 97d7c19 commit be01c53

File tree

41 files changed

+1028
-9
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+1028
-9
lines changed

.eslintrc.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,10 @@ module.exports = {
5959
'packages/babel-config/src/__tests__/__fixtures__/**/*',
6060
'packages/codemods/**/__testfixtures__/**/*',
6161
'packages/cli/**/__testfixtures__/**/*',
62+
'packages/prerender/src/babelPlugins/__tests__/__fixtures__/**/*',
6263
'packages/storage/src/__tests__/prisma-client/*',
64+
'packages/testing/config/jest/babelPlugins/__tests__/__fixtures__/**/*',
65+
'packages/vite/src/plugins/__tests__/__fixtures__/**/*',
6366
],
6467
rules: {
6568
curly: 'error',

packages/babel-config/src/web.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -122,10 +122,6 @@ export const getWebSideOverrides = (
122122
// Have to use a readonly array here because of a limitation in TS
123123
// See https://stackoverflow.com/a/70763406/88106
124124
const overrides: readonly (false | TransformOptions)[] = [
125-
{
126-
test: /.+Cell.(js|tsx|jsx)$/,
127-
plugins: [require('./plugins/babel-plugin-redwood-cell').default],
128-
},
129125
// Automatically import files in `./web/src/pages/*` in to
130126
// the `./web/src/Routes.[ts|jsx]` file.
131127
{

0 commit comments

Comments
 (0)