@nativescript/webpack
TypeScript icon, indicating that this package has built-in type declarations

5.0.21 • Public • Published

@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'
    

Readme

Keywords

none

Package Sidebar

Install

npm i @nativescript/webpack

Weekly Downloads

5,571

Version

5.0.21

License

Apache-2.0

Unpacked Size

234 kB

Total Files

134

Last publish

Collaborators

  • nativescript-user
  • tns-bot
  • lini
  • tachev
  • rosen-vladimirov
  • stoskov
  • rosen_vladimirov
  • walkerrunpdx
  • bradmartin
  • davecoffin
  • rigor789
  • nativescript-bot
  • multishiv19
  • eddyverbruggen
  • edusperoni
  • facetious
  • tdermendjiev
  • sis0k0