-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(feat): Multi platform bundle with babel (#63)
Signed-off-by: norbert-kulus-arianelabs <norbert.kulus@arianelabs.com> Co-authored-by: Michiel Mulders <michielmulders1@gmail.com>
- Loading branch information
1 parent
abe89e9
commit b9c9194
Showing
31 changed files
with
18,949 additions
and
9,452 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
const sharedPresets = ['@babel/typescript']; | ||
const shared = { | ||
presets: sharedPresets, | ||
}; | ||
|
||
module.exports = { | ||
env: { | ||
esmUnbundled: shared, | ||
esmBundled: { | ||
...shared, | ||
presets: [['@babel/env', { | ||
targets: "> 0.25%, not dead" | ||
}], ...sharedPresets], | ||
}, | ||
cjs: { | ||
...shared, | ||
presets: [['@babel/env', { | ||
modules: 'commonjs' | ||
}], ...sharedPresets], | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.