Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(create-app): native esm templates #2609

Merged
merged 1 commit into from
Jul 26, 2022

Conversation

AviVahl
Copy link
Collaborator

@AviVahl AviVahl commented Jul 13, 2022

  • use "type": "module" in all templates
  • prettier now formats cjs/mjs/cts/mts as well
  • rename stylable.config.js to stylable.config.cjs
  • remove "cjs": false from stylable config, as it's false by default
  • rename rollup.config.cjs to rollup.config.js
  • fix rollup sourcemap warning
  • convert webpack and rollup configs to esm

- use `"type": "module"` in all templates
- prettier now formats cjs/mjs/cts/mts as well
- rename `stylable.config.js` to `stylable.config.cjs`
- remove `"cjs": false` from stylable config, as it's `false` by default
- rename `rollup.config.cjs` to `rollup.config.js`
- fix rollup `sourcemap` warning
@tomrav tomrav self-requested a review July 13, 2022 13:09
@idoros
Copy link
Collaborator

idoros commented Jul 13, 2022

Doesn't type module has issues with our generated d.ts files? Maybe we should wait until we research the issue some more.

@AviVahl
Copy link
Collaborator Author

AviVahl commented Jul 13, 2022

Doesn't type module has issues with our generated d.ts files?

only in node16 module/moduleResolution mode, which we haven't touched yet.

@tomrav tomrav merged commit 1c1681a into master Jul 26, 2022
@tomrav tomrav deleted the avi/create-stylable-app-newer-formats branch July 26, 2022 09:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants