
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
reacton-loader
Advanced tools
Loader for single-file Reacton components in Webpack
- Added example Webpack build for events:
<my-component>
<button #reverse>Reverse array</button>
<button #new>New array</button>
<button #clear>Clear array</button>
<script>
import { myEvent } from '../Events'
exports = class {
static connected() {
// add a "click" event handler for the button
this.$refs.reverse.addEventListener('click', () => {
// trigger "reverse" event on element myEvent
this.$event(myEvent, 'reverse')
})
// add a "click" event handler for the button
this.$refs.new.addEventListener('click', () => {
// trigger "new-colors" event on element myEvent
this.$event(myEvent, 'new-colors', {
// pass a new array to the event handler
detail: ['blue', 'orange', 'purple', 'gold']
})
})
// add a "click" event handler for the button
this.$refs.clear.addEventListener('click', () => {
// trigger "clear-colors" event on element myEvent
this.$event(myEvent, 'clear-colors')
})
}
}
</script>
</my-component>
npm i reacton-loader -D
A fragment of the working project is shown below:
webpack.config.js
module: {
rules: [
{
test: /\.htm$/,
loader: 'reacton-loader',
},
... // other rules
]
},
Mixins.js
export default class {
getStringInUpperCase(str) {
return str.toLocaleUpperCase()
}
}
MyComponent.htm
<my-component>
<h1>Hello, {{ getStringInUpperCase(message) }}!</h1>
<style>
h1 {
color: {{ color }};
}
</style>
<script>
import Mixins from '../Mixins'
exports = class extends Mixins {
constructor(props) {
super()
this.message = 'Reacton'
this.color = props.color
}
static mode = 'open' // add Shadow DOM
}
</script>
</my-component>
FAQs
Loader for single-file Reacton components in Webpack
The npm package reacton-loader receives a total of 2 weekly downloads. As such, reacton-loader popularity was classified as not popular.
We found that reacton-loader demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.