Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ All notable changes to [bpmn-js-element-templates](https://github.com/bpmn-io/bp

___Note:__ Yet to be released changes appear here._

## 2.0.0

* `DEPS`: update to `[email protected]`

## 1.5.0

* `FEAT`: support `camunda:executionListener` with `implementationType` ([#13](https://github.com/bpmn-io/bpmn-js-element-templates/issues/13))
Expand Down
35 changes: 5 additions & 30 deletions karma.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@

const path = require('path');
const {
DefinePlugin,
NormalModuleReplacementPlugin
DefinePlugin
} = require('webpack');

const basePath = '.';
Expand Down Expand Up @@ -75,7 +74,7 @@ module.exports = function(karma) {
options: {
plugins: [
[ '@babel/plugin-transform-react-jsx', {
'importSource': '@bpmn-io/properties-panel/preact',
'importSource': 'preact',
'runtime': 'automatic'
} ]
].concat(coverage ? [
Expand All @@ -95,30 +94,7 @@ module.exports = function(karma) {

// @barmac: process.env has to be defined to make @testing-library/preact work
'process.env': {}
}),
new NormalModuleReplacementPlugin(
/^preact(\/[^/]+)?$/,
function(resource) {

const replMap = {
'preact/hooks': path.resolve('node_modules/@bpmn-io/properties-panel/preact/hooks/dist/hooks.module.js'),
'preact/jsx-runtime': path.resolve('node_modules/@bpmn-io/properties-panel/preact/jsx-runtime/dist/jsxRuntime.module.js'),
'preact': path.resolve('node_modules/@bpmn-io/properties-panel/preact/dist/preact.module.js')
};

const replacement = replMap[resource.request];

if (!replacement) {
return;
}

resource.request = replacement;
}
),
new NormalModuleReplacementPlugin(
/^preact\/hooks/,
path.resolve('node_modules/@bpmn-io/properties-panel/preact/hooks/dist/hooks.module.js')
)
})
],
resolve: {
mainFields: [
Expand All @@ -127,9 +103,8 @@ module.exports = function(karma) {
'main'
],
alias: {
'preact': '@bpmn-io/properties-panel/preact',
'react': '@bpmn-io/properties-panel/preact/compat',
'react-dom': '@bpmn-io/properties-panel/preact/compat'
'react': 'preact/compat',
'react-dom': 'preact/compat'
},
modules: [
'node_modules',
Expand Down
Loading