Skip to content

Commit

Permalink
chore: Set type module
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeldowseza authored and Johannes Weber committed Feb 11, 2025
1 parent 89e8c18 commit 13cfde2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions build-tools/tasks/package-json.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ module.exports = parallel([
theme.outputPath,
{
...theme.packageJson,
type: 'module',
files: ['*'],
main: './index.js',
exports: getComponentsExports(),
Expand Down
6 changes: 6 additions & 0 deletions pages/webpack.config.base.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,12 @@ module.exports = ({
cache: isLocal ? { type: 'filesystem' } : false,
module: {
rules: [
{
test: /\.m?js$/,
resolve: {
fullySpecified: false,
},
},
{
test: /\.tsx?$/,
loader: 'ts-loader',
Expand Down

0 comments on commit 13cfde2

Please sign in to comment.