runnpm build-self(uses fresh local build) checkdistfor the expected changes runnpm build-selfagainto make sure plugin built by new version can still build itself Ifbuild-selfbreaks at some point, fix the problem and restart frombuildstep (a known good copy). ...
npmPackages: rollup: ^2.38.5 => 2.75.6 rollup-plugin-typescript2: ^0.31.1 => 0.31.1 typescript: ^4.7.3 => 4.7.3 rollup.config.js : vite.config.js const{defineConfig}=require('vite');const{createVuePlugin}=require('vite-plugin-vue2');constpath=require('path');consttypescript=requ...
npminstall--save-dev rollup-plugin-typescript2 1. 配置选项概览 下面是 Rollup Plugin Typescript2 的配置选项的概览: interfaceIOptions{abortOnError?:boolean;cacheRoot?:string;check?:boolean;clean?:boolean;compiler?:string;include?:string[];exclude?:string[];tsconfig?:string;tsconfigDefaults?:object;t...
# with npm npm install rollup-plugin-typescript2 typescript --save-dev # with yarn yarn add rollup-plugin-typescript2 typescript --dev Usage // rollup.config.js import typescript from 'rollup-plugin-typescript2'; export default { input: './main.ts', plugins: [ typescript(/*{ plugin...
npm ERR! @phoenix/topo-engine@0.1.0 build:aio: rollup -c config/rollup.config.aio.js npm ERR! Exit status 1 Environment Versions typescript: 3.7.3 rollup: v1.27.14 rollup-plugin-typescript2: 0.25.3 rollup.config.js var nodeResolve = require('rollup-plugin-node-resolve'); var commonjs...
Vue version 3.4.18 Link to minimal reproduction 3.4.18 (since 3.4.16) Steps to reproduce Clone repository npm install npm run build If I downgrade vue version to 3.4.15, it's okay, but not after upgrade to 3.4.16 or later (3.4.18) System...
What happens and why it is wrong Just try same way index.ts: import SomeComponent from '@common/SomeComponent'; and got error: Error: Unexpected character '@' (Note that you need plugins to import files that are not JavaScript) at error ...
For reference, I added a new vite config for the build script to use (I'm using the regular one for the docs pages already). This is what it has, and seems to be working as expected. Granted I have yet to actually test it as an npm package as it's wip, but the build does pa...
As you used a screenshot, I did have to manually transpose the text of the error here: [!] (plugin rpt2) RollupError: src/button/index.ts:6:1 - error TS2742: The inferred type of 'default' cannot be named without a reference to '.pnpm/registry.npmmirror.com+vue-types@3.0.2_vue...
https://github.com/alshdavid-sandbox/rollup-typescript-library npm install && make cat dist/a/index.d.ts | grep "~" catshould print nothing, however it currently prints import{B}from'~/b'; This illustrates that we are not applying path resolution to the declaration files....