Registry / web-framework / angulate2-scalajs-bundler

angulate2-scalajs-bundler

JSON →
library1.0.3jsnpmunverified

A webpack plugin that simplifies bundling scalajs projects using angulate2 (Angular 2 for Scala.js) with the scalajs-bundler. This package (v1.0.3, last release unknown) automates configuration of webpack to include required Angular 2 dependencies (e.g., @angular/core, rxjs, zone.js) and outputs the bundled application into a dist folder. It is a thin integration layer between scalajs-bundler and angulate2, requiring manual setup of sbt and webpack config files. Alternatives exist like manual webpack config or newer Scala.js bundling approaches.

npm install angulate2-scalajs-bundler
INSTALL
IMPORT
SIG · ANGULATE2-SCALAJS-
A
angulate2-scalajs-bundler
web-frameworkjavascriptv1.0.3
Install
Import
Disk
Pass rate
0/ 6
Env Coverage0 / 6
glibc
1822
musl
1822
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18226 runs
build_error
glibc
node 18226 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

angulate2ScalaJsBundler
const angulate2ScalaJsBundler = require('angulate2-scalajs-bundler');
import angulate2ScalaJsBundler from 'angulate2-scalajs-bundler';
This package is only usable as a CommonJS module in webpack.config.js; no ESM or TypeScript typings provided.

Configures webpack with scalajs-bundler and angulate2-scalajs-bundler plugin for an Angular 2 Scala.js project.

// In webpack.config.js const angulate2ScalaJsBundler = require('angulate2-scalajs-bundler'); // Assume scalajs.webpack.config is generated by scalajs-bundler module.exports = require('./scalajs.webpack.config'); module.exports.context = __dirname; // Apply the bundler plugin for your sbt project name angulate2ScalaJsBundler.apply('your-sbt-project-name', module); // Then add this to build.sbt: /* npmDependencies in Compile += "@angular/common" -> "~2.4.0" npmDependencies in Compile += "@angular/core" -> "~2.4.0" npmDevDependencies in Compile += "angulate2-scalajs-bundler" -> "1.0.3" webpackConfigFile in fastOptJS := Some(baseDirectory.value / "webpack.config.js") */ // Run: fastOptJS::webpack
Debug
Known issues
breakingPackage is unmaintained and uses outdated Angular 2 (v2.4.0) and rxjs v5; not compatible with Angular 4+ or newer Scala.js versions.
fix
Migrate to Scala.js bundler with manual webpack config for newer Angular versions or use a different Scala.js Angular binding.
affects: <=1.0.3
deprecatedAngular 2 has been superseded by Angular 4+, and rxjs v5 is deprecated; the dependencies in the README are outdated.
fix
Update to Angular 6+ and rxjs 6+ with corresponding Scala.js bindings, but this package is unlikely to work.
affects: <=1.0.3
gotchaThe plugin must be applied after requiring scalajs.webpack.config; order of operations in webpack.config.js matters.
fix
Follow the exact order: require config, set context, then apply plugin.
affects: >=0.0.0
gotchaThe project name argument to apply() must match the sbt project name exactly; mismatch causes bundling failure.
fix
Verify sbt project name (case-sensitive) in build.sbt and use the same string in apply().
affects: >=0.0.0
Errors
Common errors & fixes
Module not found: Error: Cannot resolve module 'angulate2-scalajs-bundler'
Package not installed or not listed in npmDevDependencies; webpack cannot find the module.
fix
Run 'npm install angulate2-scalajs-bundler --save-dev' or ensure it's added to npmDevDependencies in build.sbt and scalajs-bundler runs npm install.
Error: angulate2ScalaJsBundler.apply is not a function
Incorrect import or the variable is undefined; possibly wrong require statement.
fix
Use: const angulate2ScalaJsBundler = require('angulate2-scalajs-bundler'); (not import).
TypeError: Cannot read property 'apply' of undefined
The required module returned undefined; maybe package is not installed correctly or version mismatch.
fix
Reinstall the package: 'npm install angulate2-scalajs-bundler@1.0.3 --save-dev' and check node_modules exists.
Upgrade
Version history
1.0.3latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
32 hits · last 30 days
node
28
OpenAI (training)
1
Resources
angulate2-scalajs-bundler — npm install angulate2-scalajs-bundler · libregistry