JSPM

@nativescript/webpack

5.0.8-alpha.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 6070
  • Score
    100M100P100Q122280F
  • License Apache-2.0

Package Exports

  • @nativescript/webpack
  • @nativescript/webpack/dist/bin/index.js
  • @nativescript/webpack/dist/index.js
  • @nativescript/webpack/dist/plugins/PlatformSuffixPlugin
  • @nativescript/webpack/dist/plugins/PlatformSuffixPlugin.js
  • @nativescript/webpack/dist/transformers/NativeClass
  • @nativescript/webpack/dist/transformers/NativeClass/index.js
  • @nativescript/webpack/package.json

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@nativescript/webpack) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@nativescript/webpack rewrite

The rewrite allows us to simplify things, and introduce some breaking changes. Listing them here, so we can keep track of them - will be in the merge commit, and the release notes once we are ready.

BREAKING CHANGES:

  • package.json main should now use a relative path to the package.json instead of the app directory

    For example (given we have a src directory where our app is):

    "main": "app.js" becomes "main": "src/app.js" OR "main": "src/app.ts" (whether using JS or TS)

    This simplifies things, and will allow ctrl/cmd + clicking on the filename in some editors.

  • postinstall scripts have been removed.

    The configuration will not need to change in the user projects between updates.

    For existing projects we will provide an easy upgrade path, through ns migrate and a binary in the package.

    For new projects ns create should create the config file by invoking a binary in the package.

  • removed resolutions for short imports - use full imports instead.

    For example:

    import http from 'http'
    // becomes
    import { http } from '@nativescript/core'