Skip to content
This repository has been archived by the owner on Nov 7, 2022. It is now read-only.

Remove "module" from package.json #16

Merged
merged 2 commits into from
Apr 18, 2018
Merged

Remove "module" from package.json #16

merged 2 commits into from
Apr 18, 2018

Conversation

yuku
Copy link

@yuku yuku commented Apr 18, 2018

TypeScript imports the "module" file. Since TypeScript doesn't transform imported files, our assets includes ES2015 syntax.

Yuku TAKAHASHI added 2 commits April 18, 2018 17:42
since our src/*.js is written in ES2015
@yuku yuku merged commit fed9c62 into master Apr 18, 2018
@yuku yuku deleted the fix-import branch April 18, 2018 09:13
@jorgebucaran
Copy link
Contributor

@yuku-t Could you explain these changes in more detail? For example, why is the output format cjs?

@yuku
Copy link
Author

yuku commented Apr 18, 2018

why is the output format cjs?

It is because there is no need to support AMD. We are using rollup-plugin-commonjs, not require.js 😄 .
(In my understanding, UMD = CJS + AMD)

@jorgebucaran
Copy link
Contributor

The UMD build exists for the CDN bundle. If qiita-slide-mode is not going to be distributed over a CDN, then it's fine. In fact, we don't even need to bundle anything since we can assume users will bundle their application with this package by themselves using their own build configuration.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants