File tree Expand file tree Collapse file tree 8 files changed +59
-1
lines changed
tests/integration/rollup-test Expand file tree Collapse file tree 8 files changed +59
-1
lines changed Original file line number Diff line number Diff line change 5656 # https://github.com/webpack/webpack/issues/14532
5757 if : ${{ matrix.node-version != '17' }}
5858 run : |
59+ cd ./tests/integration/rollup-test && ./test.sh && cd -
5960 cd ./tests/integration/webpack-babel-test && ./test.sh && cd -
6061 cd ./tests/integration/webpack-test && ./test.sh && cd -
6162
Original file line number Diff line number Diff line change 11import { createNewLookupObject } from './create-new-lookup-object' ;
2- import * as logger from '../logger' ;
2+ import logger from '../logger' ;
33
44const loggedProperties = Object . create ( null ) ;
55
Original file line number Diff line number Diff line change 1+ module . exports = {
2+ root : true ,
3+ extends : [ 'eslint:recommended' , 'prettier' ] ,
4+ env : {
5+ browser : true
6+ } ,
7+ parserOptions : {
8+ sourceType : 'module' ,
9+ ecmaVersion : 6
10+ }
11+ } ;
Original file line number Diff line number Diff line change 1+ node_modules
2+ dist
3+ package-lock.json
Original file line number Diff line number Diff line change 1+ {
2+ "name" : " rollup-test" ,
3+ "description" : " Various tests with Handlebars and rollup" ,
4+ "version" : " 1.0.0" ,
5+ "scripts" : {
6+ "build" : " rollup --config rollup.config.js --failAfterWarnings"
7+ },
8+ "private" : true ,
9+ "devDependencies" : {
10+ "@rollup/plugin-node-resolve" : " ^13.1.1" ,
11+ "handlebars" : " file:../../.." ,
12+ "rollup" : " ^2.61.1"
13+ }
14+ }
Original file line number Diff line number Diff line change 1+ import { nodeResolve } from '@rollup/plugin-node-resolve' ;
2+
3+ export default {
4+ input : 'src/index.js' ,
5+ output : {
6+ file : 'dist/bundle.js' ,
7+ format : 'es'
8+ } ,
9+ plugins : [ nodeResolve ( ) ]
10+ } ;
Original file line number Diff line number Diff line change 1+ import Handlebars from 'handlebars/lib/handlebars' ;
2+
3+ const template = Handlebars . compile ( 'Author: {{author}}' ) ;
4+ const result = template ( { author : 'Yehuda' } ) ;
5+
6+ if ( result !== 'Author: Yehuda' ) {
7+ throw Error ( 'Assertion failed' ) ;
8+ }
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ set -e
4+
5+ # Cleanup: package-lock and "npm ci" is not working with local dependencies
6+ rm dist package-lock.json -rf
7+ npm install
8+ npm run build
9+
10+ node dist/bundle.js
11+ echo " Success"
You can’t perform that action at this time.
0 commit comments