Skip to content

Commit

Permalink
solve renaming classes problem
Browse files Browse the repository at this point in the history
  • Loading branch information
metelkin committed Jun 24, 2024
1 parent 4eb5250 commit c669428
Show file tree
Hide file tree
Showing 4 changed files with 86 additions and 51 deletions.
126 changes: 81 additions & 45 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"dependencies": {
"@viz-js/viz": "^3.2.3",
"ajv": "^8.12.0",
"heta-compiler": "^0.8.4",
"heta-compiler": "github:hetalang/heta-compiler",
"jquery": "^3.7.0",
"js-yaml": "^4.1.0",
"jszip": "^3.10.1",
Expand All @@ -58,5 +58,6 @@
},
"engines": {
"node": ">=16.0.0"
}
},
"sideEffects": false
}
2 changes: 1 addition & 1 deletion src/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Container, ModuleSystem, HetaLevelError } from 'heta-compiler/src/webpa
import path from 'path';
import declarationSchema from 'heta-compiler/src/builder/declaration-schema.json';
import Ajv from 'ajv';
import hetaCompilerPackage from 'heta-compiler/package.json';
import hetaCompilerPackage from 'heta-compiler/package';
import semver from 'semver';
import { load as yamlLoad } from 'js-yaml';

Expand Down
4 changes: 1 addition & 3 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,7 @@ module.exports = () => {
config.optimization = {
minimize: true,
minimizer: [
new TerserPlugin({
terserOptions: {keep_classnames: true} // important because of Classes in heta-compiler, fix there first
}),
new TerserPlugin(),
new CssMinimizerPlugin(),
],
splitChunks: {
Expand Down

0 comments on commit c669428

Please sign in to comment.