Skip to content

Commit

Permalink
add sourceType in Babel config
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh-Cena committed May 14, 2022
1 parent 91952c1 commit 9855a3f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/docusaurus/src/babel/preset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ function getTransformOptions(isServer: boolean): TransformOptions {
// All optional newlines and whitespace will be omitted when generating code
// in compact mode
compact: true,
sourceType: 'module',
presets: [
isServer
? [
Expand Down

0 comments on commit 9855a3f

Please sign in to comment.