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

Use rollup #91

Merged
merged 2 commits into from
Oct 26, 2023
Merged

Use rollup #91

merged 2 commits into from
Oct 26, 2023

Conversation

Tidyzq
Copy link
Contributor

@Tidyzq Tidyzq commented Sep 11, 2023

  1. Use rollup to build glass-easel
  2. Building result will be one single file (no dist/types/ folder)
  3. Add es-module format building result (with import export)
  4. Building result will target to ES6
  5. Upgrade typescript to 5.2.2
  6. Fix some linting issue (caused by upgrade typescript and eslint-typescript parser)

@Tidyzq Tidyzq added this to the v0.3 milestone Sep 14, 2023
@Tidyzq Tidyzq self-assigned this Sep 14, 2023
"scripts": {
"build": "wasm-pack build --target nodejs --out-dir pkg-nodejs"
"build": "wasm-pack build --target bundler && rollup -o pkg/glass_easel_template_compiler_bg.cjs.js -f cjs pkg/glass_easel_template_compiler_bg.js"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why remove --out-dir ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why remove --out-dir ?

Because it doesn't target to nodejs only any more, so use the default output folder pkg is a better choice i think.

@Tidyzq Tidyzq merged commit fbc40b5 into wechat-miniprogram:master Oct 26, 2023
4 checks passed
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.

None yet

2 participants